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

Pages: [1]
1
General / Re: Can't find sfml DLLs
« on: April 15, 2020, 01:29:50 pm »
Thank you for your help! Surely I'm doing something stupid and don't realize it, I'll post here when I get this to work.

2
General / Re: Can't find sfml DLLs
« on: April 15, 2020, 12:21:58 am »
You mean like this?

find_package(SFML COMPONENTS system graphics audio REQUIRED)
 

I've had it like that and still no success.

3
General / Re: Can't find sfml DLLs
« on: April 14, 2020, 01:18:12 am »
Yes I'm sure I placed them in the correct directory, and I placed all the DLL's in there so no chance it were the wrong ones.

4
General / Can't find sfml DLLs
« on: April 12, 2020, 09:58:58 pm »
Hey there,

I'm trying to run a simple program using SFML, it has been done without any issues on Linux but can't get it to work on Windows.

I've tried placing the DLLs in the same directory as the executable, but still no success.

This is my cmake:

cmake_minimum_required(VERSION 3.5)

project(QuadTreeCulling)

cmake_policy(SET CMP0074 NEW)

add_executable(QuadTreeCulling main.cpp)

target_compile_features(QuadTreeCulling PRIVATE cxx_std_17)

target_include_directories(QuadTreeCulling
    PUBLIC
        $<INSTALL_INTERFACE:include>    
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}../../include>
    PRIVATE
                ${CMAKE_CURRENT_SOURCE_DIR}/../../source/
)

target_link_libraries(QuadTreeCulling
        PUBLIC
                ${CMAKE_CURRENT_SOURCE_DIR}/../../SFML/Windows/sfml-graphics-d-2.dll
                ${CMAKE_CURRENT_SOURCE_DIR}/../../SFML/Windows/sfml-window-d-2.dll
                ${CMAKE_CURRENT_SOURCE_DIR}/../../SFML/Windows/sfml-system-d-2.dll
)
 

The CMake generates the executable with no problems but then i get an error message when running it:

"The code execution cannot proceed because sfml-system-d-2.dll was not found. Reinstalling the program may fix this problem."
I get one of these for each DLL.

Thank you in advance, I hope I've detailed my issue clearly enough,
HoC

Pages: [1]