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

Author Topic: [SOLVED]Compiling 32 Bit SFML On 64 Bit System?  (Read 3533 times)

0 Members and 1 Guest are viewing this topic.

Rukiryo

  • Newbie
  • *
  • Posts: 2
    • View Profile
[SOLVED]Compiling 32 Bit SFML On 64 Bit System?
« on: October 20, 2013, 07:06:01 am »
Hi,
I am using the CodeLite IDE and I got SFML 64 bit (TDM) to work. I want my game to be able to run on 32 bit systems so I switched to the 32 bit TDM SFML. It won't compile and is giving me the following errors:
C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 8 -e -f  Makefile"
"----------Building project:[ BitTanks - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/Users/Alex/Desktop/BitTanksProject/BitTanks'
g++ -o ./Debug/BitTanks @"BitTanks.txt" -L. -LC:/Users/Alex/Desktop/BitTanksProject/SFML-2.1/lib  -lsfml-graphics -lsfml-window -lsfml-audio -lsfml-network -lsfml-system
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/Alex/Desktop/BitTanksProject/SFML-2.1/lib/libsfml-graphics.a when searching for -lsfml-graphics
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/Alex/Desktop/BitTanksProject/SFML-2.1/lib\libsfml-graphics.a when searching for -lsfml-graphics
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/Alex/Desktop/BitTanksProject/SFML-2.1/lib/libsfml-graphics.a when searching for -lsfml-graphics
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-graphics
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/Alex/Desktop/BitTanksProject/SFML-2.1/lib/libsfml-window.a when searching for -lsfml-window
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/Alex/Desktop/BitTanksProject/SFML-2.1/lib\libsfml-window.a when searching for -lsfml-window
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/Alex/Desktop/BitTanksProject/SFML-2.1/lib/libsfml-window.a when searching for -lsfml-window
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-window
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/Alex/Desktop/BitTanksProject/SFML-2.1/lib/libsfml-audio.a when searching for -lsfml-audio
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/Alex/Desktop/BitTanksProject/SFML-2.1/lib\libsfml-audio.a when searching for -lsfml-audio
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/Alex/Desktop/BitTanksProject/SFML-2.1/lib/libsfml-audio.a when searching for -lsfml-audio
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-audio
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/Alex/Desktop/BitTanksProject/SFML-2.1/lib/libsfml-network.a when searching for -lsfml-network
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/Alex/Desktop/BitTanksProject/SFML-2.1/lib\libsfml-network.a when searching for -lsfml-network
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/Alex/Desktop/BitTanksProject/SFML-2.1/lib/libsfml-network.a when searching for -lsfml-network
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-network
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/Alex/Desktop/BitTanksProject/SFML-2.1/lib/libsfml-system.a when searching for -lsfml-system
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/Alex/Desktop/BitTanksProject/SFML-2.1/lib\libsfml-system.a when searching for -lsfml-system
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/Alex/Desktop/BitTanksProject/SFML-2.1/lib/libsfml-system.a when searching for -lsfml-system
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-system
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [Debug/BitTanks] Error 1
BitTanks.mk:77: recipe for target 'Debug/BitTanks' failed
mingw32-make.exe[1]: Leaving directory 'C:/Users/Alex/Desktop/BitTanksProject/BitTanks'
mingw32-make.exe: *** [All] Error 2
Makefile:4: recipe for target 'All' failed
0 errors, 0 warnings
 

I'm not sure how to fix this. I installed TDM 32 and 64 bit. The bin folder of the TDM MinGW install in in my path variable. It compiled SFML 64 bit but not the 32 bit.

The only similar post I found was for linux so I'm not sure if it is the same, but it mentions needing a -m32 flag, which I'm not sure what is.

The post is: http://en.sfml-dev.org/forums/index.php?topic=11584

Any help appreciated, thanks!
« Last Edit: October 21, 2013, 05:59:02 am by Rukiryo »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10838
    • View Profile
    • development blog
    • Email
AW: Compiling 32 Bit SFML On 64 Bit System?
« Reply #1 on: October 20, 2013, 07:57:31 am »
First you need to make sure that the right compiler is called. If you have both of them in PATH, you might want to change that.
Next you need to compile SFML for your compiler, i.e. you can't use your x64 SFML binaries with your 32 bit compiler.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Rukiryo

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Compiling 32 Bit SFML On 64 Bit System?
« Reply #2 on: October 20, 2013, 05:48:26 pm »
It seems to work now. I restarted my PC, and did a clean build. Works now.

Thanks for the help though, it made me reinstall the TDM MinGW and that's probably what fixed it!

Thanks..just figuring out how to mark as solved..

 

anything