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

Recent Posts

Pages: 1 ... 8 9 [10]
91
General / Re: Unable to link statically compiled SFML with clang
« Last post by ebots on November 08, 2024, 11:01:18 am »
I did recompile SFML using the CMake GUI when I got that error, but regardless I tried recompiling SFML again with SFML_USE_STATIC_STD_LIBS on and BUILD_SHARED_LIBS off, and I am still getting the same linker error saying that the SFML static library has value MD_DynamicRelease. Also I checked and I am linking against the updated libraries
92
General / Re: Unable to link statically compiled SFML with clang
« Last post by eXpl0it3r on November 08, 2024, 10:56:39 am »
Did you actually rebuild SFML or just rerun CMake?

Code: [Select]
>>> sfml-graphics-s.lib(CircleShape.cpp.obj) has value MD_DynamicRelease
This is clearly not updated to use the static runtime, so either SFML wasn't rebuilt or you're still pointing to the old files.
93
General / Re: Unable to link statically compiled SFML with clang
« Last post by ebots on November 08, 2024, 10:51:24 am »
Code: [Select]
lld-link: error: /failifmismatch: mismatch detected for 'RuntimeLibrary':
>>> C:\Users\\AppData\Local\Temp\test-af06e4.o has value MT_StaticRelease
>>> sfml-graphics-s.lib(CircleShape.cpp.obj) has value MD_DynamicRelease
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
94
General / Re: Unable to link statically compiled SFML with clang
« Last post by eXpl0it3r on November 08, 2024, 10:46:13 am »
Make sure you're using the newly produced library files.

What's the exact new error?
95
General / Re: Unable to link statically compiled SFML with clang
« Last post by ebots on November 08, 2024, 10:29:40 am »
I tried compiling SFML with BUILD_SHARED_LIBS off and SFML_USE_STATIC_STD_LIBS on, but I am still getting the same linker error when trying to compile my code
96
General / Re: Unable to link statically compiled SFML with clang
« Last post by eXpl0it3r on November 08, 2024, 10:26:42 am »
Not on its own, for that you need to set BUILD_SHARED_LIBS to OFF.

See also the CMake tutorial: https://www.sfml-dev.org/tutorials/2.6/compile-with-cmake.php
97
General / Re: Unable to link statically compiled SFML with clang
« Last post by ebots on November 08, 2024, 10:25:31 am »
So does that mean that building with SFML_USE_STATIC_STD_LIBS will produce static libraries?
98
General / Re: Compiling Windows Programs on Linux Using MinGW-w64
« Last post by eXpl0it3r on November 08, 2024, 10:22:46 am »
Personally, I don't recommend cross-compilation, since it's tricky to get it working and there are plenty of other options available.
You can use some GitHub Action or any other CI system, spin up a Windows instance and build it natively.

but am getting some errors
Errors aren't just random strings of text, but they usually tell you exactly what went wrong. May be that you don't understand it, but if you don't share it, nobody else will be able to help you either. ;)
99
General / Re: Unable to link statically compiled SFML with clang
« Last post by eXpl0it3r on November 08, 2024, 10:18:49 am »
Using static runtime with shared libraries is not a flow that SFML supports and neither one that you should ever be using, because you end up duplicating the runtime for each shared library (i.e. every DLL would have its own copy of the runtime), which can will cause issues.
100
General / Compiling Windows Programs on Linux Using MinGW-w64
« Last post by byronvoyle on November 08, 2024, 10:16:56 am »
Hello, I am trying to compile a program for Windows on a Linux system using the x86_64-w64-mingw32-g++ tool, but am getting some errors. How to do this correctly? What are the steps required to install and use MinGW-w64 on Linux?

Thanks.
Pages: 1 ... 8 9 [10]