Closed MarlikAlmighty closed 3 years ago
Hi! Are you building with MSVC or MinGW?
MinGW
https://www.google.com/search?q=mingw+libwinpthread should help but we can add this to the docs as well ;-)
Tnx.
I still haven't found how to compile this on Linux for Windows.
Has anyone resolved this issue?
set ( COMPILER_PREFIX "i686-w64-mingw32" )
# set ( COMPILER_PREFIX "x86_64-w64-mingw32" )
set ( CMAKE_CXX_STANDARD_LIBRARIES "-static-libgcc -static-libstdc++ -lwsock32 -lws2_32 ${CMAKE_CXX_STANDARD_LIBRARIES}" )
set ( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-Bstatic,--whole-archive -lwinpthread -Wl,--no-whole-archive" )
It's work.
When launched under windows 7, backchannel.exe says that there is no libwinpthread-1.dll. Can add instruction to cmake for statics?