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

Pages: [1]
1
Audio / Re: Using sfml-audio on Windows
« on: November 24, 2019, 10:49:14 am »
I'll change that then, thanks for your help

2
General / Linking the SFML using Conan on Linux
« on: November 24, 2019, 05:28:30 am »
Hi,

I'm trying to use the SFML with Conan so I have a conanfile that looks like that:
[requires]
sfml/2.5.1@bincrafters/stable

[options]
sfml:graphics=True

[generators]
cmake
And the following cmake:
cmake_minimum_required(VERSION 3.1)
project(RythmHero)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()

if(MSVC)
    SET(CMAKE_CXX_FLAGS "/W4 /EHsc /std:c++17")
else()
    SET(CMAKE_CXX_FLAGS "-Wall -Wextra -std=c++17 -L.")
endif()
file(GLOB_RECURSE SRCS "src/*.cpp")
include_directories(inc build/irrKlang/include)
add_executable(${PROJECT_NAME} ${SRCS})
target_link_libraries(${PROJECT_NAME} ${CONAN_LIBS} IrrKlang)
 
I'm launching it this way:
#!/bin/sh
mkdir -p build                  
cd build
conan remote add SFML https://api.bintray.com/conan/bincrafters/public-conan
set -e
conan install .. --build=missing
cmake ..
cmake --build . --config RELEASE
 
On Windows it's working fine but on Linux I have the following error:
undefined reference to `sf::String::String(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::locale const&)'
 
I saw on the tutorial that I may have to link the SFML with -lsfml-graphics -lsfml-window -lsfml-system but since it's installed with Conan I don't know the path to use -L

Would someone please know how I can link the SFML on Linux with conan?

3
Audio / Re: Using sfml-audio on Windows
« on: November 22, 2019, 05:37:40 pm »
Hi,

Sorry for the late reply, I created this small project to show the issue: https://github.com/Xwilarg/sfml-audio-bug
Just launch build.sh to build, then launch test.exe and it should crash.

4
Audio / Using sfml-audio on Windows
« on: November 21, 2019, 02:29:38 am »
Hi,

I'm trying to use the SFML 2.5.1 on Windows and everything was working until I tried to use sfml audio.
When I'm trying to use sf::Music and I launch my program I have a segfault.

I already added openal32.dll next to my executable (I compiled the SFML on my computer to have it so it should be the right version).
I tried to launch my program on Visual Studio (2019) to have more information about it but I just got this:
Exception thrown at 0x00007FFD4023B40D (ntdll.dll) in RythmHero.exe: 0xC0000005: Access violation writing location 0x0000000000000008. occurred

Would someone please know how I could fix that?

Thanks in advance,

Pages: [1]