所以我更改了以下几行:
LIBS += \
/usr/local/lib/libOpenMeshCore.so \
/usr/local/lib/libOpenMeshTools.so
LIBS += \
-lglut -lGLU
收件人:
LIBS += \
-lglut32 -lOpenMeshCored -lOpenMeshToolsd
然后我遇到这些错误:
QGLViewerWidget.obj:-1: error: LNK2019: unresolved external symbol __imp_glutWireTeapot referenced in function "protected: virtual void __cdecl QGLViewerWidget::draw_scene(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)"
QGLViewerWidget.obj:-1: error: LNK2019: unresolved external symbol __imp_glutSolidTeapot referenced in function "protected: virtual void __cdecl QGLViewerWidget::draw_scene(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)"
meshviewer.obj:-1: error: LNK2019: unresolved external symbol __imp___glutInitWithExit referenced in function glutInit_ATEXIT_HACK
答案 0 :(得分:1)
您的OpenMesh库似乎是64位的,并且您正试图将其与32位的glut库链接,这是不可能的。您有两种选择:
i386
体系结构(有关更多信息,请参见here)。