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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - adomas

Pages: [1]
1
General / Re: SFML on VC++ 2015 (x64)
« on: January 24, 2016, 07:20:23 pm »
Linker error does not change, with SFML_STATIC defined and not defined. It does not have impact on error :(

2
General / Re: SFML on VC++ 2015 (x64)
« on: January 23, 2016, 05:18:27 pm »
I tried to define SFML_STATIC, but it did not help, I still get same error. I also tried using static libs, but I got even more linker errors. Any ideas?

3
General / SFML on VC++ 2015 (x64)
« on: January 22, 2016, 07:56:43 pm »
Hello,
I have this strange issue. I use SFML 2.3.2 on Visual Studio Enterprise 2015. With Win32 (x86) configuration everything is OK, but when I try to compile on x64 I get errors. I use shared configurations and accordingly 32bit or 64bit SFML. On 64bit Release I get these Linker errors:

Severity   Code   Description   Project   File   Line   Suppression State
Error   LNK2001   unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)   GameTest103   D:\Workbench\Software\Dev\GameTest103\GameTest103\main.obj   1   
Error   LNK2001   unresolved external symbol "public: static class sf::Color const sf::Color::Green" (?Green@Color@sf@@2V12@B)   GameTest103   D:\Workbench\Software\Dev\GameTest103\GameTest103\main.obj   1   

How to I solve this? I use Console subsystem on both. x86 compiles fine with 32bit SFML and runs smoothly. But does not compile and link in x64 version and with 64bit SFML. What to do? Might be an error for SFML 2.3.2 VC++ 14 (2015) 64bit? BTW running Windows 10 Enterprise 64bit

4
General / CMakeLists.txt
« on: February 28, 2013, 07:19:36 pm »
Hello,
How do I configure my project to link SFML correctly via CMake? I'm using QT Creator on Linux. I get these errors:

-- Configuring done
-- Generating done
-- Build files have been written to: /home/adomas/SFMLTest-build
make[2]: Warning: File `CMakeFiles/SFMLTest.dir/flags.make' has modification time 6238 s in the future
Scanning dependencies of target SFMLTest
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/SFMLTest.dir/flags.make' has modification time 6238 s in the future
[100%] Building CXX object CMakeFiles/SFMLTest.dir/main.cpp.o
Linking CXX executable SFMLTest
CMakeFiles/SFMLTest.dir/main.cpp.o: In function `main':
main.cpp:(.text+0x6b): undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'
main.cpp:(.text+0x92): undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, std::string const&, unsigned int, sf::ContextSettings const&)'
main.cpp:(.text+0xc6): undefined reference to `sf::CircleShape::CircleShape(float, unsigned int)'
main.cpp:(.text+0xd2): undefined reference to `sf::Color::Green'
main.cpp:(.text+0xda): undefined reference to `sf::Shape::setFillColor(sf::Color const&)'
main.cpp:(.text+0xf5): undefined reference to `sf::Window::close()'
main.cpp:(.text+0x10b): undefined reference to `sf::Window::pollEvent(sf::Event&)'
main.cpp:(.text+0x130): undefined reference to `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'
main.cpp:(.text+0x14a): undefined reference to `sf::RenderTarget::clear(sf::Color const&)'
main.cpp:(.text+0x161): undefined reference to `sf::RenderStates::Default'
main.cpp:(.text+0x16c): undefined reference to `sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&)'
main.cpp:(.text+0x17b): undefined reference to `sf::Window::display()'
main.cpp:(.text+0x18a): undefined reference to `sf::Window::isOpen() const'
main.cpp:(.text+0x1b5): undefined reference to `sf::RenderWindow::~RenderWindow()'
main.cpp:(.text+0x1e1): undefined reference to `sf::RenderWindow::~RenderWindow()'
main.cpp:(.text+0x224): undefined reference to `sf::RenderWindow::~RenderWindow()'
CMakeFiles/SFMLTest.dir/main.cpp.o: In function `sf::CircleShape::~CircleShape()':
main.cpp:(.text._ZN2sf11CircleShapeD2Ev[_ZN2sf11CircleShapeD5Ev]+0x13): undefined reference to `vtable for sf::CircleShape'
main.cpp:(.text._ZN2sf11CircleShapeD2Ev[_ZN2sf11CircleShapeD5Ev]+0x1f): undefined reference to `vtable for sf::CircleShape'
main.cpp:(.text._ZN2sf11CircleShapeD2Ev[_ZN2sf11CircleShapeD5Ev]+0x2b): undefined reference to `sf::Shape::~Shape()'
collect2: error: ld returned 1 exit status
make[2]: *** [SFMLTest] Error 1
make[1]: *** [CMakeFiles/SFMLTest.dir/all] Error 2
make: *** [all] Error 2
20:10:59: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project SFMLTest (kit: Desktop)
When executing step 'Make'

When I compile via terminal like this:g++ main.cpp -o sfml-app -lsfml-graphics -lsfml-window -lsfml-system

Everything is OK. What do I need to write to CMakeLists.txt to get linked with SFML 2?

5
General / Re: Compiling SFML for VS2012
« on: January 13, 2013, 01:48:41 am »
The link seems to be broken. Can anyone please give me a new link?

Pages: [1]