How to build fbc (svn)

New to FreeBASIC? Post your questions here.
Post Reply
PeterHu
Posts: 159
Joined: Jul 24, 2022 4:57

How to build fbc (svn)

Post by PeterHu »

I noticed on github fbc version is already up to 1.2.0. so I want to give it a try.I've already downloaded the source but failed to compile via:
mingw32-make makefile

Is there anybody would like to help on this kindly let me know the exact compiling command?

Thank you in advance.
SARG
Posts: 1768
Joined: May 27, 2005 7:15
Location: FRANCE

Re: How to build fbc (svn)

Post by SARG »

Use this link to find all the versions (Linux/Windows-32bit/64bit) built with the very last updates : https://users.freebasic-portal.de/stw/builds/

As I'm not comfortable with make I use a bat file to compile my own version. If you want I can provide it.
PeterHu
Posts: 159
Joined: Jul 24, 2022 4:57

Re: How to build fbc (svn)

Post by PeterHu »

SARG wrote: Oct 26, 2023 15:29 Use this link to find all the versions (Linux/Windows-32bit/64bit) built with the very last updates : https://users.freebasic-portal.de/stw/builds/

As I'm not comfortable with make I use a bat file to compile my own version. If you want I can provide it.
Yes,please.
This is one of those I'd like to learn.
https://users.freebasic-portal.de/stw/builds/
And,how do I use those mingw additional libs?

Thank you very much.
adeyblue
Posts: 300
Joined: Nov 07, 2019 20:08

Re: How to build fbc (svn)

Post by adeyblue »

I just followed this, don't remember having any problems with it.
https://freebasic.net/wiki/DevBuildWindows

The hardest part is knowing what things you can put on the make command line to change the build. But after you've set it all up, the basic compiler build is something like
32-bit compiler - make FBC=C:/freebasic32/fbc.exe MULTILIB=32 ENABLE_STRIPALL=1 compiler
64-bit compiler - make FBC=C:/freebasic/fbc.exe MULTILIB=64 ENABLE_STRIPALL=1 compiler
SARG
Posts: 1768
Joined: May 27, 2005 7:15
Location: FRANCE

Re: How to build fbc (svn)

Post by SARG »

You'll have to change the folder and exe names to match yours.
Anyway ask help if any problem

https://users.freebasic-portal.de/sarg/compil_all.zip
PeterHu
Posts: 159
Joined: Jul 24, 2022 4:57

Re: How to build fbc (svn)

Post by PeterHu »

Thank you all.
SARG
Posts: 1768
Joined: May 27, 2005 7:15
Location: FRANCE

Re: How to build fbc (svn)

Post by SARG »

To be precise :
- you only get the compiler (fbc.exe), not run time library (RTL) and not gfx lib.
- in case of new added modules (very rare) the bat files have to be completed.
Post Reply