c++ - 无法创建 Meshlab Visual Studio 2013 项目

标签 c++ qt cmake qmake meshlab

我正在尝试打开 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 "".

我确实谷歌了那个错误并找到了这个答案:

To solve the problem use this line : set (CMAKE_LIBRARY_PATH “C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x64”)

现在我不知道在哪里可以添加这一行?请帮助我!

最佳答案

将它添加到 CMakeList.txt 中,该文件显然位于您尝试运行 CMake 的更高级别目录中。

关于c++ - 无法创建 Meshlab Visual Studio 2013 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38481863/

相关文章:

c++ - 在不破坏多字节序列的情况下找到最长的 UTF-8 序列

c++ - 在不知道类型的情况下将基类的指针转换为派生模板类

c++ - 如何针对自定义 gcc 库强制 cmake 链接

c++ - CMake 正在删除项目 c++

c++ - C++03 中的模板函数返回类型推导

c++ - 为什么我总是必须除以 49 才能得到二进制转换器 + cout 歧义的正确答案?

qt - 使用样式表设置QGroupBox标题字体大小

c++ - 在 CMake 中找不到带有 'include_directories' 的 header

c++ - 删除的 Windows 服务仍在运行

c++ - 如何检查网络地址是否在Qt中是本地的