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

Author Topic: Linux can't link ;/  (Read 1957 times)

0 Members and 1 Guest are viewing this topic.

Brainfuck

  • Newbie
  • *
  • Posts: 4
    • View Profile
Linux can't link ;/
« on: August 12, 2012, 10:50:48 am »
Hi there!
I have a little problem ;/
1.6 when I was using the 1.6 all was ok, yesterday I switched to 2.0 and I can not link anything under Linux (Debian 6 x32) ( VPS )

Logs :
Code: [Select]
root@94:/Game-Server# g++ Server.o -o Server -lsfml-system
/usr/bin/ld:/usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/libsfml-system.so: file format not recognized; treating as linker script
/usr/bin/ld:/usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/libsfml-system.so:1: syntax error

content of libsfml-system.so :
Code: [Select]
libsfml-system.so.2
content of libsml-system.so.2 :
Code: [Select]
libsfml-system.so.2.0I've try to change libsfml-system.so.2.0 to libsfml-system.so but then ;/
LOG :
Code: [Select]
root@94:/Game-Server# g++ -c Server.cpp
root@94:/Game-Server# g++ -o Server Server.o -lsfml-system -lsfml-network
/usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/libsfml-system.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status


Idk what im doing wrong :p compiles ok just cant link :f in 1.6 all was ok :F ( i rewrite my code to 2.0 ;p ( its working on windows ) all should be ok ;/ )

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Linux can't link ;/
« Reply #1 on: August 12, 2012, 12:36:24 pm »
Which archive did you download, and how did you install it?
Laurent Gomila - SFML developer

Brainfuck

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Linux can't link ;/
« Reply #2 on: August 12, 2012, 12:43:47 pm »
i download this archive : http://www.sfml-dev.org/download/2.0-rc/SFML-2.0-rc-linux-32.tar.bz2
I extracted it and put libraries and includes into usr/lib & usr/includes ( its working on 1.6 )

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Linux can't link ;/
« Reply #3 on: August 12, 2012, 03:35:04 pm »
Try to download it again, your files seem to be corrupt.

If nothing works, you can still recompile it.
Laurent Gomila - SFML developer

Brainfuck

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Linux can't link ;/
« Reply #4 on: August 12, 2012, 04:11:55 pm »
Its working now lol..
I change sfml-system.so.2.0 to sfml-system.so, copy it and set second file sfml-system.so.2 xD and now its working o.O Topic to close xd