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.
Compiler built from source and not installed cannot find BI files
-
- Posts: 1022
- Joined: Nov 24, 2011 19:49
- Location: France
- Contact:
Re: Compiler built from source and not installed cannot find BI files
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
for example
Code: Select all
make ENABLE_STANDALONE=1 FBC=/usr/local/bin/freebasic MULTILIB=64 compiler
-
- Posts: 1022
- Joined: Nov 24, 2011 19:49
- Location: France
- Contact:
Re: Compiler built from source and not installed cannot find BI files
@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"
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"
Re: Compiler built from source and not installed cannot find BI files
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
-
- Posts: 1022
- Joined: Nov 24, 2011 19:49
- Location: France
- Contact: