Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Compiling SFML2 binaries using build.bat  (Read 2383 times)

0 Members and 1 Guest are viewing this topic.

panithadrum

  • Sr. Member
  • ****
  • Posts: 304
    • View Profile
    • Skyrpex@Github
    • Email
Compiling SFML2 binaries using build.bat
« 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)

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
Compiling SFML2 binaries using build.bat
« Reply #1 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.
I use the latest build of SFML2

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Compiling SFML2 binaries using build.bat
« Reply #2 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.
Laurent Gomila - SFML developer