I'm trying to compile cryptonotecoinwallet repo using CMake with VS2010 compiler (according to the comments I got for this question)
I tried to add the below line to the CMake file and the cache file, but no luck.
set (CMAKE_PREFIX_PATH "C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\Lib\\x64")
I tried to compile it using the command line, but got the same error.
D:\My Documents\Fiverr\C++ and Qt\FitsoCoin\cryptonotewallet>cmake.exe -DBOOST_ROOT=C:\\boost_1_66_0 -DBOOST_LIBRARYDIR=C:\\boost_1_66_0\\lib32-msvc-1
0.0:C:\\boost_1_66_0\\libs -G "Visual Studio 10 2010" .
CMake Error at C:/Qt/Qt5.2.0/5.2.0/msvc2010_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:16 (message):
Failed to find "glu32" in "" with CMAKE_CXX_LIBRARY_ARCHITECTURE "".
Call Stack (most recent call first):
C:/Qt/Qt5.2.0/5.2.0/msvc2010_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:52 (_qt5gui_find_extra_libs)
C:/Qt/Qt5.2.0/5.2.0/msvc2010_opengl/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:152 (include)
CMakeLists.txt:19 (find_package)
Any ideas how to fix this?
Thanks.
If you want to point CMake (and Find*
scripts) to directory with a libraries, set CMAKE_LIBRARY_PATH variable:
set(CMAKE_LIBRARY_PATH "C:/Program Files/Microsoft SDKs/Windows/v7.1/Lib/x64")
Variable CMAKE_PREFIX_PATH, which you are trying to set, is expected to point to installation prefix. This prefix is used when search a library, but only with subdirectories like lib/
appended to it.