SFML community forums

Help => General => Topic started by: maximumkj on February 27, 2020, 05:54:40 am

Title: SFML Wont work at Code::blocks Ubuntu 16.04
Post by: maximumkj on February 27, 2020, 05:54:40 am
The errors i get is something about the libraries not found, and above that it says about incompability and something, if you need the full error to help me i will write it, right now i cant.

i downloaded the SFML GCC 5.1.0 TDM (SJLJ) - Code::Blocks - 32-bit

and for include and lib i wrote the ones inthe sfml folder. i didnt install it from terminal or anything,
i follow the steps on the tutorial but it still wont work



I would appreciate your help.
Title: Re: SFML Wont work at Code::blocks Ubuntu 16.04
Post by: Laurent on February 27, 2020, 08:02:24 am
Quote
if you need the full error to help me i will write it
Yes, please.
Title: Re: SFML Wont work at Code::blocks Ubuntu 16.04
Post by: maximumkj on February 27, 2020, 12:20:04 pm
g++ -Wall -std=c++14 -O2 -I/home/USER/SFML-2.5.1/include -c /home/USER/Documentos/SFML/SFML/main.cpp -o obj/Release/main.o
g++ -L/home/USER/SFML-2.5.1/lib -o bin/Release/SFML obj/Release/main.o  -s  -lsfml-graphics -lsfml-window -lsfml-system
/usr/bin/ld: skips /home/USER/SFML-2.5.1/lib/libsfml-graphics.a incompatible while searching for -lsfml-graphics
/usr/bin/ld: couldn't find -lsfml-graphics
/usr/bin/ld: skips /home/USER/SFML-2.5.1/lib/libsfml-window.a incompatible while searching for -lsfml-window
/usr/bin/ld: couldn't find -lsfml-window
/usr/bin/ld: skips /home/USER/SFML-2.5.1/lib/libsfml-system.a incompatible while searching for -lsfml-system
/usr/bin/ld: couldn't find -lsfml-system
collect2: error: ld returned 1 exit status
Title: Re: SFML Wont work at Code::blocks Ubuntu 16.04
Post by: Laurent on February 27, 2020, 12:56:01 pm
Aren't you mixing 32 and 64 bits?
Title: Re: SFML Wont work at Code::blocks Ubuntu 16.04
Post by: maximumkj on February 27, 2020, 01:35:09 pm
Im not sure, im new to CodeBlocks
 :-\
Title: Re: SFML Wont work at Code::blocks Ubuntu 16.04
Post by: Laurent on February 27, 2020, 01:40:15 pm
But wait... you're on Linux? You downloaded a Windows release.
Title: Re: SFML Wont work at Code::blocks Ubuntu 16.04
Post by: maximumkj on February 27, 2020, 01:43:41 pm
Oh. I thought that version could work, since it didnt say anything about windows in it

im gonna try with the linux version  :D
Title: Re: SFML Wont work at Code::blocks Ubuntu 16.04
Post by: maximumkj on February 27, 2020, 01:47:03 pm
Yeah that was the problem i was using a Windows version, thanks for helping me! :)