CLI FPC on Amiga (Emulator) can't include directories?

MarcusF · 3271

MarcusF

  • Junior Member
  • **
    • Posts: 55
    • Karma: +11/-0
I'm getting back into things and just got an Amiga 500 with extras.
Also running Amiga Forever and set up FPC on an emulated machine.
It works and I can compile and all, but I can't get it to include files when compiling.

I'm trying to use ALB's MUIClass wrapper which should be simple to include but no matter what I do, I get an error.
"Can't find unit MUIClass.Window" even though I've included the path in the Directories / Options dialog.

Anyone run into this?



MarcusF

  • Junior Member
  • **
    • Posts: 55
    • Karma: +11/-0
Reply #1 on: July 19, 2023, 04:10:58 PM
It worked when I copied the src directory into the units directory for the FPC setup. Maybe it just doesn't like it being on a different drive...
Anyway, it worked now, lol.

I swear I've been trying to fix this for the last half hour before posting XD



magorium

  • Moderator
  • Legendary Member
  • *****
    • Posts: 634
    • Karma: +62/-0
  • Convicted non contributor
Reply #2 on: July 19, 2023, 08:48:53 PM
Maybe it just doesn't like it being on a different drive...
That shouldn't be a problem though using another filesystem on that different drive or having a drive name or path with spaces in their name might be an issue. Note that things could also be different depending on whether you use a global or local configuration file for fp-ide.

I usually use the makefile to compile the units (but can be done manually as well) and copy the compiled units over to my 3th party units directory (to not mix with FPC distribution related files for an easier update). The 'normal' route would be to use the fppkg package manager from Free Pascal (allows you to automatic build and install things) but seems nobody uses that  :)

Anyhows, if you go to your menu/options/compiler tab verbose there there is an option named "used tried info". If you select that then the message window will spit out some details on what paths it tried to locate files and if they where found or not. That is very informative when you receive "can't find' messages. Alternatively you can use the option "All" in that same options list to achieve the same (it will just spit out even more detailed information on other topics as well).

You good now ? or do you require further assistance regarding this topic ?

PS: nice to see you again  :)


MarcusF

  • Junior Member
  • **
    • Posts: 55
    • Karma: +11/-0
Reply #3 on: July 19, 2023, 08:52:00 PM
I will check out the User Tried Info, that sounds super helpful.
This is the first time I'm using fp-ide, so far so good

I'm good for now! I got my little test to compile.

Thanks it's good to be back :)