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

Author Topic: Can't create 64-bit SFML applications  (Read 693 times)

0 Members and 1 Guest are viewing this topic.

giowuu

  • Newbie
  • *
  • Posts: 2
    • View Profile
Can't create 64-bit SFML applications
« on: August 18, 2014, 10:27:11 pm »
I have wasted so many hours on this problem.
I have compiled SFML 64 bit myself using cmake and visual studio.
My own project also uses cmake and I have set SFML_ROOT to "C:/Program Files/SFML".
CMake CORRECTLY generates SFML_INCLUDE_DIR "C:/Program Files/SFML/include"

The problem is CMake generates library paths "C:\Program Files (x86)\SFML\lib\sfml-system-d.lib"

Where the **** does cmake get "C:\Program Files (x86)\SFML\" from? That directory does not exist.
I tried updating to cmake 3 but it didn't help. Is there someone else who is creating 64 bit applications with a 64 bit compiled version of SFML and manages to get this to work?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Can't create 64-bit SFML applications
« Reply #1 on: August 18, 2014, 10:35:01 pm »
CMake will install SFML at ${CMAKE_INSTALL_PREFIX}. Set it to whatever you want before configuring, and it should be fine.
Laurent Gomila - SFML developer

 

anything