Я пытаюсь открыть MeshLab Проект в Visual Studio 2013. Я сделал установку Cmake и Qt 5.3.0 на моем windows 10, а затем выполните эту команду:
cmake .. -G "Visual Studio 12 Win64"
и после запуска это:
-- The C compiler identification is MSVC 18.0.31101.0
-- The CXX compiler identification is MSVC 18.0.31101.0
-- Check for working C compiler using: Visual Studio 12 2013 Win64
-- Check for working C compiler using: Visual Studio 12 2013 Win64 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 12 2013 Win64
-- Check for working CXX compiler using: Visual Studio 12 2013 Win64 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
*** Configuring MeshLab Version 1.3.2 ****
-- Found OpenGL: opengl32
-- Looking for include file dlfcn.h
-- Looking for include file dlfcn.h - not found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - not found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - not found
-- Looking for cos in m
-- Looking for cos in m - not found
-- lmdemo will be linked against levmar;lapack;blas;f2c
CMake Error at E:/MyWorkSpace/Meshinator/Qt/Qt5.3.0/5.3/msvc2013_64_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:14 (message):
Failed to find "glu32" in "" with CMAKE_CXX_LIBRARY_ARCHITECTURE "".
Call Stack (most recent call first):
E:/MyWorkSpace/Meshinator/Qt/Qt5.3.0/5.3/msvc2013_64_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:50 (_qt5gui_find_extra_libs)
E:/MyWorkSpace/Meshinator/Qt/Qt5.3.0/5.3/msvc2013_64_opengl/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:152 (include)
E:/MyWorkSpace/Meshinator/Qt/Qt5.3.0/5.3/msvc2013_64_opengl/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:94 (find_package)
src/other/structuresynth/CMakeLists.txt:17 (find_package)-- Configuring incomplete, errors occurred!
See also "E:/MyWorkSpace/Meshinator/meshlab-master/_build/CMakeFiles/CMakeOutput.log".
See also "E:/MyWorkSpace/Meshinator/meshlab-master/_build/CMakeFiles/CMakeError.log".
Как вы видите, я получаю эту ошибку от cmak:
CMake Error at E:/MyWorkSpace/Meshinator/Qt/Qt5.3.0/5.3/msvc2013_64_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:14 (message):
Failed to find "glu32" in "" with CMAKE_CXX_LIBRARY_ARCHITECTURE "".
Я сделал Google эту ошибку и найти этот ответ:
Для решения проблемы используйте эту строку: set (CMAKE_LIBRARY_PATH «C: \ Program Files (x86) \ Windows Kits \ 8.0 \ Lib \ win8 \ um \ x64»)
Теперь я не знаю, где я могу добавить эту строку? Помогите мне, пожалуйста!
Добавьте его в файл CMakeList.txt, который явно находится в каталоге более высокого уровня, откуда вы пытаетесь запустить CMake.
Других решений пока нет …