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

Author Topic: Unknown CMake command "sfml_add_library" (Linux)  (Read 4086 times)

0 Members and 1 Guest are viewing this topic.

Aureti

  • Newbie
  • *
  • Posts: 5
    • View Profile
Unknown CMake command "sfml_add_library" (Linux)
« on: January 06, 2013, 03:22:49 am »
While trying to prepare sfml for compiling with cmake, I get the following error:

Code: [Select]
CMake Error at CMakeLists.txt:124 (sfml_add_library):
  Unknown CMake command "sfml_add_library".


-- Configuring incomplete, errors occurred!

I downloaded sfml from http://github.com/LaurentGomila/SFML/tarball/master.
I am using version 2.8.9 of cmake. I could not find any solution to this, the only results I get when searching for a solution is in an old thread about OS X.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Unknown CMake command "sfml_add_library" (Linux)
« Reply #1 on: January 06, 2013, 10:37:59 am »
Make sure you follow the installation tutorial step by step. Everything is explained in details...

From which directory are you launching CMake?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Aureti

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Unknown CMake command "sfml_add_library" (Linux)
« Reply #2 on: January 06, 2013, 01:54:04 pm »
I did follow the instructions step by step. I still get the error.
I ran the cmake command in the sfml folder.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10927
    • View Profile
    • development blog
    • Email
AW: Unknown CMake command "sfml_add_library" (Linux)
« Reply #3 on: January 06, 2013, 02:02:41 pm »
What exacte OS are you using (and no Linux itself is not an OS)? ;)

Are you using an outdated CMake version?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Aureti

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Unknown CMake command "sfml_add_library" (Linux)
« Reply #4 on: January 07, 2013, 01:49:56 pm »
I know that linux is not an operating system, but shouldn't the kernel only matter(much)?
I am using Lubuntu 12.10.

The latest version of cmake is 2.8.10. I have 2.8.9, and I don't think that already counts as an outdated version.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Unknown CMake command "sfml_add_library" (Linux)
« Reply #5 on: January 07, 2013, 01:52:12 pm »
Can you please show us the (exact) commands that you ran, from the download of SFML to the CMake configuration?
Laurent Gomila - SFML developer

Aureti

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Unknown CMake command "sfml_add_library" (Linux)
« Reply #6 on: January 07, 2013, 02:23:22 pm »
I installed all the dependencies.
Then
Code: [Select]
wget -c https://github.com/SFML/SFML/tarball/masterI extracted it to my home folder, then ran
Code: [Select]
cmake . inside the extracted folder. That is when it gives the error.


I will try using the latest version of cmake when I can, and I'll post the results tomorrow.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Unknown CMake command "sfml_add_library" (Linux)
« Reply #7 on: January 07, 2013, 02:43:03 pm »
Quote
I will try using the latest version of cmake when I can, and I'll post the results tomorrow.
It won't change anything. You're doing something wrong but we don't see what yet ;)
Laurent Gomila - SFML developer

Aureti

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Unknown CMake command "sfml_add_library" (Linux)
« Reply #8 on: January 08, 2013, 10:24:22 am »
Doesn't work. At least we now know I don't need the latest version of cmake for it :P
Well, since the only reason I need sfml is for a certain program, and that program is also for Windows, and I happen to have Windows on another computer, I will stop trying to get sfml to work for a while. I don't have anything else that I would want to install that requires it.

Sorry for wasting your time?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Unknown CMake command "sfml_add_library" (Linux)
« Reply #9 on: January 08, 2013, 10:43:16 am »
I got the same error when trying to run cmake from ./src/SFML instead of the root folder.
Laurent Gomila - SFML developer