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 - marmal102

Pages: [1]
1
General / Re: undefined references to... On Windows
« on: April 30, 2017, 03:40:46 pm »
Yes... I really forgot about matching compiler to downloaded SFML..
Shame on me :) Thanks, works well.

2
General / Re: undefined references to... On Windows
« on: April 30, 2017, 11:11:27 am »
I got it from here: http://www.mingw.org/category/wiki/download
Then I downloaded Installer from: https://sourceforge.net/projects/mingw/files/Installer/
And installed gcc compiler from here.

3
General / Re: undefined references to... On Windows
« on: April 29, 2017, 01:30:03 pm »
But I wrote I am using CLion with MinGW.
GCC Version is 5.3.0.

4
General / undefined references to... On Windows
« on: April 29, 2017, 10:22:15 am »
Hello everyone,

I have encountered a strange problem recently while trying to configure CLion with SFML on Windows.
I did it many times and it worked perfectly but now I am getting many problems such:

undefined reference to `_imp___ZN2sf9VideoModeC1Ejjj'

Whole list of that problems. I know it is the problem with linking but I don't know why.
SFML is detected by CMake, the same version of SFML works in Visual Studio.

FindSFML.cmake is original from SFML package downloaded.

Here is my CMakeLists.txt:

Code: [Select]
cmake_minimum_required(VERSION 3.7)
project(untitled)

set(CMAKE_CXX_STANDARD 14)
set(SOURCE_FILES main.cpp)
set(SFML_ROOT "D:/Development/SFML-2.4.2")
add_executable(untitled ${SOURCE_FILES})

set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules")
find_package(SFML REQUIRED COMPONENTS audio graphics window system)
if (SFML_FOUND)
    include_directories(${SFML_INCLUDE_DIR})
    target_link_libraries(untitled ${SFML_LIBRARIES})
endif()


5
General / Re: Problem with Release build on Linux
« on: April 01, 2017, 01:19:12 pm »
After myself compilation and installation SFML library I have both the same files for debug and release in: /usr/local/include and lib.

But... There is no such file like: '/usr/lib/x86_64-linux-gnu/libsfml-system.so' whatever it is.

6
General / Re: Problem with Release build on Linux
« on: March 30, 2017, 12:38:03 pm »
No idea? :(

7
General / Re: Problem with Release build on Linux
« on: March 28, 2017, 12:50:37 pm »
cmake_minimum_required(VERSION 3.6)
project(Enyo)

set(CMAKE_CXX_STANDARD 14)
include_directories(include)

set(SOURCE_FILES main.cpp)
add_executable(Test ${SOURCE_FILES})

set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules")
find_package(SFML REQUIRED system window graphics network audio)
if (SFML_FOUND)
    include_directories(${SFML_INCLUDE_DIR})
    target_link_libraries(Enyo ${SFML_LIBRARIES})
endif ()

In directory cmake_modules there is file FindSFML.cmake that is included to source code of SFML.

8
General / Re: Problem with Release build on Linux
« on: March 27, 2017, 08:54:34 am »
Unfortunately not, there are both Debug and Release.

9
General / Problem with Release build on Linux
« on: March 26, 2017, 10:52:30 am »
Hello everyone,

I've had some problem with my SFML on Linux for some time.
I used SFML installed from my distro repository so far and everything worked well, but now I had to download the latest version of SFML so I downloaded source code and compiled it with CMake(since the already compiled didn't suit for me).

Now when I try to build my project using CLion in Debug mode - compilation goes successfully but when I try to build it in Release mode I get following error:
No rule to make target '/usr/lib/x86_64-linux-gnu/libsfml-system.so'.

My FindSFML.cmake is okay I guess, I used that one from source code, and it works in Debug Mode.

I would be grateful for any help.

Pages: [1]