Ok I double checked everything and then changed the path for Qt in my Environment Variables from C:\Qt to C:\Qt\5.15.2\msvc2019_64\bin and that error disappeared. That seems to have solved the issue for now. Thanks!
Thanks @jnbrunet
I put that into the CMakeLists.txt you specified and am still getting the same error. Is there something else I can try?
Here is what my CMakeLists.txt looks like:
include(${SOFA_CMAKE_DIR}/preProject.cmake)
set(HEADER_FILES
#NewOmniDriverEmu.h
OmniDriverEmu.h
pthread/pthread.h
)
set(SOURCE_FILES
OmniDriverEmu.cpp
initSensableEmulation.cpp
)
if(MSVC)
list(APPEND SOURCE_FILES "pthread/pthread.h")
endif()
set(README_FILES
PluginSensableEmulation.txt
)
IF(WIN32)
set(THREADS_USE_PTHREADS_WIN32 true)
ENDIF()
find_package(Threads REQUIRED)
include_directories(${THREADS_PTHREADS_INCLUDE_DIR})
add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${SOURCE_FILES} ${README_FILES})
AddCompilerDefinitions("SOFA_BUILD_SENSABLEEMULATIONPLUGIN")
AddLinkerDependencies(SofaGuiQt SofaComponentGeneral SofaHaptics ${CMAKE_THREAD_LIBS_INIT})
include(${SOFA_CMAKE_DIR}/postProject.cmake)
Thanks,
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.