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

Author Topic: Got errors building binaries for SFML 2.0  (Read 2298 times)

0 Members and 1 Guest are viewing this topic.

atac57

  • Newbie
  • *
  • Posts: 9
    • View Profile
Got errors building binaries for SFML 2.0
« on: May 17, 2013, 01:09:12 am »
I followed this tutorial to download 2.0...
http://onlyakiss.net/2013/04/how-to-install-sfml-2-0-into-ubuntu-12-04/

and I got these errors at step 3:

Quote
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:70 (MESSAGE):
  Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindJPEG.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/SFML/Graphics/CMakeLists.txt:104 (find_package)


Configuring incomplete, errors occurred!

The only thing I can think of is I'm running Ubuntu 10.04 and that tutorial is for 12.04. I have no idea where to go from here, I can't find any tutorials for installing on 10.04. Thanks for the help.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Got errors building binaries for SFML 2.0
« Reply #1 on: May 17, 2013, 06:01:27 am »
Have you installed libjpeg?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

atac57

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Got errors building binaries for SFML 2.0
« Reply #2 on: May 17, 2013, 07:04:50 am »
Thank you, that got me up to the linking stage. I'm trying out the sample program on the SFML tutorial, it compiled and appeared to link, but when I ran the exe ./sfml-app I got:
Quote
./sfml-app: error while loading shared libraries: libsfml-graphics.so.2: cannot open shared object file: No such file or directory
« Last Edit: May 17, 2013, 07:16:42 am by atac57 »

atac57

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Got errors building binaries for SFML 2.0
« Reply #3 on: May 18, 2013, 12:00:37 am »
Nevermind, I just needed to run sudo ldconfig. Thanks for the help.