[osg-users] osgQT - Windows 10 pthread.h - not found
Paul McIntosh
paul.mcintosh at internetscooter.com
Wed Nov 16 21:33:43 PST 2016
Here is a hacked solution, I am not sure if threads are even needed, there seems to be a few hangovers from the original osg CMakeLists...
Code:
# This should set CMAKE_USE_WIN32_THREADS_INIT = 1 if the CMAKE_SYSTEM = "Windows"...
# FIND_PACKAGE(Threads)
# However it doesn't even though we are Windows...
message("CMAKE_SYSTEM_NAME: ${CMAKE_SYSTEM_NAME}")
# and tries to find pthread.h...
# So we will just do it ourselves...
IF(CMAKE_SYSTEM MATCHES "Windows")
SET(CMAKE_USE_WIN32_THREADS_INIT 1)
ENDIF(CMAKE_SYSTEM MATCHES "Windows")
# and viola we have done what FIND_PACKAGE(Threads) failed to do...
message("CMAKE_USE_WIN32_THREADS_INIT: ${CMAKE_USE_WIN32_THREADS_INIT}")
Should FIND_PACKAGE(Threads) not be there at all?
I also get an error with Find3rdPartyDependencies but gather that is not needed either?
Code:
################################################################################
# 3rd Party Dependency Stuff
# paulmc IF(WIN32)
# paulmc INCLUDE(Find3rdPartyDependencies)
# paulmc ENDIF()
I am now at the point of building but getting...
Code:
C:\Users\internetscooter\xyaz\osgQt\build\PlatformSpecifics\Windows\OpenSceneGraphVersionInfo.rc(2): error RC2127: version WORDs separated by commas expected
Cheers,
Paul
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69411#69411
More information about the osg-users
mailing list