Compiler built from source and not installed cannot find BI files

Linux specific questions.
Post Reply
Roland Chastain
Posts: 1022
Joined: Nov 24, 2011 19:49
Location: France
Contact:

Compiler built from source and not installed cannot find BI files

Post by Roland Chastain »

Hello everybody.

I could compile the compiler from source. I extracted the content of FreeBASIC-1.10.1-source.tar.gz and simply launched the make command.

But when I tried to compile an SDL2 example, the compiler complains that it cannot find BI file:

hello.bas(4) error 23: File not found, "SDL2/SDL.bi" in '#include "SDL2/SDL.bi"'

I can solve that issue by using -i option. But is there a better solution?

Maybe I should have launched also make install, but if possible I would have prefered to keep the compiler where it has been built.
adeyblue
Posts: 360
Joined: Nov 07, 2019 20:08

Re: Compiler built from source and not installed cannot find BI files

Post by adeyblue »

I have built it on Linux but that was ages ago so I've forgotten but on Windows, if you want your built compiler to behave like the premade ones in terms of includes, you have to build the compiler with ENABLE_STANDALONE=1 on the make line or in config.mk

Code: Select all

make ENABLE_STANDALONE=1 FBC=/usr/local/bin/freebasic MULTILIB=64 compiler
for example
Roland Chastain
Posts: 1022
Joined: Nov 24, 2011 19:49
Location: France
Contact:

Re: Compiler built from source and not installed cannot find BI files

Post by Roland Chastain »

@adeyblue

Thank you for the command example.

So I built the compiler with:

make ENABLE_STANDALONE=1

Now, when I try to use it I get this error:

error 91: Executable not found: "/home/roland/Documents/sources/freebasic/1_10_1/bin/linux-x86_64/gcc"
srvaldez
Posts: 3655
Joined: Sep 25, 2005 21:54

Re: Compiler built from source and not installed cannot find BI files

Post by srvaldez »

I remember that I tried to do that on the Mac years ago, I wound up creating symlinks of the needed files/directories but that solution is dirty
Roland Chastain
Posts: 1022
Joined: Nov 24, 2011 19:49
Location: France
Contact:

Re: Compiler built from source and not installed cannot find BI files

Post by Roland Chastain »

srvaldez wrote: Feb 16, 2025 15:32 I remember that I tried to do that on the Mac years ago, I wound up creating symlinks of the needed files/directories but that solution is dirty
I went back to my first solution (use the -i option), and it works well.
Post Reply