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

Author Topic: KDevelop  (Read 3687 times)

0 Members and 1 Guest are viewing this topic.

Rimdeker

  • Newbie
  • *
  • Posts: 4
    • MSN Messenger - qaghan@live.de
    • View Profile
KDevelop
« on: May 20, 2012, 04:05:59 am »
Hello, do you gents know how to link SFML KDevelop 4.X ?

I did install SFML according to the installation manual in the Linux package and KDevelop seems to find the header-files ( http://dl.dropbox.com/u/61926969/snapshot4.jpg ).

However, when I try to build the (bad) testcode I get an error (http://dl.dropbox.com/u/61926969/snapshot5.jpg) and I think it's a linking error.

Thanks in advance.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: KDevelop
« Reply #1 on: May 20, 2012, 09:22:45 am »
Quote
Hello, do you gents know how to link SFML KDevelop 4.X ?
The exact same way as you link to any other library.
Laurent Gomila - SFML developer

model76

  • Full Member
  • ***
  • Posts: 231
    • View Profile
Re: KDevelop
« Reply #2 on: May 21, 2012, 02:18:43 am »
You could also take a look at Code::Blocks, Netbeans, and Eclipse. All of those have an auto complete feature, if that is all you are looking for.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: KDevelop
« Reply #3 on: May 21, 2012, 08:04:10 am »
When you use an IDE, the first thing to do is to learn how to include and link a library. I'm surprised that nobody explains that for KDevelop on the whole internet.
Laurent Gomila - SFML developer

jDralliam

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: KDevelop
« Reply #4 on: May 22, 2012, 04:19:12 pm »
KDevelop uses cmake, just add to your CMakeFiles.txt:
target_link_libraries(
     your_target_name
     -lsfml-graphics
     -lsfml-window
     -lsfml-system
 
OR, if you installed the FindSFML.cmake script,
find_package(SFML REQUIRED COMPONENTS SYSTEM WINDOW GRAPHICS)
...
target_link_libraries(your_target_name {SFML_LIBRARIES})
 

 

anything