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

Author Topic: Problem with compiling SFML project in 2008  (Read 2558 times)

0 Members and 1 Guest are viewing this topic.

cristaloleg

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Email
Problem with compiling SFML project in 2008
« on: May 05, 2013, 05:08:19 pm »
Ok, I have created SFML solution 2008 with CMake. Now I want to build it, but I get errors like this:

Error   25   error LNK2019: unresolved external symbol __imp__glEnable@4 referenced in function "private: void __thiscall sf::priv::GlContext::initialize(void)" (?initialize@GlContext@priv@sf@@AAEXXZ)   GlContext.obj   sfml-window

and so on. I understand that it can't find external libraries, but how can I fix this?

full build log:
http://pastebin.com/M1m24hMY

Thank's for help.
PS Windows 7 x64(but I'm using SFML for x32 platform), CMake 2.8.10.2, latest SFML source,
« Last Edit: May 05, 2013, 05:11:30 pm by cristaloleg »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Problem with compiling SFML project in 2008
« Reply #1 on: May 05, 2013, 07:21:33 pm »
Why don't you use the 2.0 precompiled binaries?
Laurent Gomila - SFML developer

cristaloleg

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Email
Re: Problem with compiling SFML project in 2008
« Reply #2 on: May 06, 2013, 07:25:52 am »
After finding this ticket for testing idea CDS_RESET
https://github.com/SFML/SFML/issues/306

BTW: I have finished building with CMake for Visual Studio 2012, but I had some problems because I didn't run CMake with admininistrator permission, maybe adding this hint in tutorial would be very nice. =)
http://www.sfml-dev.org/tutorials/2.0/compile-with-cmake.php
« Last Edit: May 06, 2013, 07:36:53 am by cristaloleg »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Problem with compiling SFML project in 2008
« Reply #3 on: May 06, 2013, 07:53:07 am »
You don't need to run CMake with admin privileges.
Laurent Gomila - SFML developer

cristaloleg

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Email
Re: Problem with compiling SFML project in 2008
« Reply #4 on: May 06, 2013, 07:56:00 am »
But without admin privileges it doesn't found that I have Visual Studio 11 compiler. Sounds weird but it is a fact.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Problem with compiling SFML project in 2008
« Reply #5 on: May 06, 2013, 07:58:59 am »
There's something wrong in your environment. Maybe you installed VS in a directory that requires admin priviledges to be accessed.
Laurent Gomila - SFML developer

cristaloleg

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Email
Re: Problem with compiling SFML project in 2008
« Reply #6 on: May 06, 2013, 08:02:15 am »
I installed by default in "Program Files (x86)". Everything in installation was default too.

offtop: check my solution https://github.com/SFML/SFML/issues/306 =)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Problem with compiling SFML project in 2008
« Reply #7 on: May 06, 2013, 08:52:28 am »
Where did you choose to create the build tree, and what was the exact error message?
Laurent Gomila - SFML developer

cristaloleg

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Email
Re: Problem with compiling SFML project in 2008
« Reply #8 on: May 06, 2013, 02:06:34 pm »
Error about unsupported architecture: http://pastebin.com/ZqkFxWNh
As I said running as administrator solves this problem.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10777
    • View Profile
    • development blog
    • Email
AW: Problem with compiling SFML project in 2008
« Reply #9 on: May 06, 2013, 02:14:38 pm »
Have you tried reinstalling CMake?
Sometimes it gets screwed up. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

cristaloleg

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Email
Re: Problem with compiling SFML project in 2008
« Reply #10 on: May 06, 2013, 02:28:55 pm »
I already seen before your advices about reinstall in another threads, but it didn't work for me.
This is weird, anyway.