LibVNC / libvncserver

LibVNCServer/LibVNCClient are cross-platform C libraries that allow you to easily implement VNC server or client functionality in your program.
GNU General Public License v2.0
1.11k stars 484 forks source link

libwinpthread-1.dll #482

Closed MarlikAlmighty closed 3 years ago

MarlikAlmighty commented 3 years ago

When launched under windows 7, backchannel.exe says that there is no libwinpthread-1.dll. Can add instruction to cmake for statics?

bk138 commented 3 years ago

Hi! Are you building with MSVC or MinGW?

MarlikAlmighty commented 3 years ago

MinGW

bk138 commented 3 years ago

https://www.google.com/search?q=mingw+libwinpthread should help but we can add this to the docs as well ;-)

MarlikAlmighty commented 3 years ago

Tnx.

MarlikAlmighty commented 11 months ago

I still haven't found how to compile this on Linux for Windows.

Has anyone resolved this issue?

MarlikAlmighty commented 11 months ago
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.