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

Author Topic: SFML Wont work at Code::blocks Ubuntu 16.04  (Read 2046 times)

0 Members and 2 Guests are viewing this topic.

maximumkj

  • Newbie
  • *
  • Posts: 7
    • View Profile
SFML Wont work at Code::blocks Ubuntu 16.04
« 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML Wont work at Code::blocks Ubuntu 16.04
« Reply #1 on: February 27, 2020, 08:02:24 am »
Quote
if you need the full error to help me i will write it
Yes, please.
Laurent Gomila - SFML developer

maximumkj

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: SFML Wont work at Code::blocks Ubuntu 16.04
« Reply #2 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML Wont work at Code::blocks Ubuntu 16.04
« Reply #3 on: February 27, 2020, 12:56:01 pm »
Aren't you mixing 32 and 64 bits?
Laurent Gomila - SFML developer

maximumkj

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: SFML Wont work at Code::blocks Ubuntu 16.04
« Reply #4 on: February 27, 2020, 01:35:09 pm »
Im not sure, im new to CodeBlocks
 :-\

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML Wont work at Code::blocks Ubuntu 16.04
« Reply #5 on: February 27, 2020, 01:40:15 pm »
But wait... you're on Linux? You downloaded a Windows release.
Laurent Gomila - SFML developer

maximumkj

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: SFML Wont work at Code::blocks Ubuntu 16.04
« Reply #6 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

maximumkj

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: SFML Wont work at Code::blocks Ubuntu 16.04
« Reply #7 on: February 27, 2020, 01:47:03 pm »
Yeah that was the problem i was using a Windows version, thanks for helping me! :)

 

anything