SFML community forums

Help => General => Topic started by: panithadrum on November 19, 2009, 09:28:51 am

Title: Compiling SFML2 binaries using build.bat
Post by: panithadrum on November 19, 2009, 09:28:51 am
I make build.bat work (just had to add codeblocks path to the PATH), but it seems not to compile sfml-main. Build.bat looks fine... maybe it fails somewhere copying files.
Is it just me? :o

EDIT: Also, I can't link with the static libraries
Code: [Select]
n\sfml2\lib\mingw\libsfml-graphics-s.a(RenderTarget.o):RenderTarget.cpp:(.text+0x289)||undefined reference to `_glClearColor@16'| and more than 50 lines like this...

Any idea? (the console window tells me that it couldn't copy some files because they were in use)
Title: Compiling SFML2 binaries using build.bat
Post by: OniLinkPlus on November 20, 2009, 04:24:05 am
sfml-main is not in build.bat, I don't think. Also, if you are on Linux, you don't need sfml-main.
For linking with static libraries, add -lGL to your Linker options for Linux, and -lopengl32 for Win32.
Title: Compiling SFML2 binaries using build.bat
Post by: Laurent on November 20, 2009, 08:11:16 am
Quote
sfml-main is not in build.bat

It should, build.bat just uses the Code::Blocks project files so the targets are the same.

Quote
For linking with static libraries, add -lGL to your Linker options for Linux, and -lopengl32 for Win32.

No, build.bat is supposed to take care of that.

I really don't know why it's not working for you, I have no problem with the batch build.