So I have changed the following lines:
LIBS += \
/usr/local/lib/libOpenMeshCore.so \
/usr/local/lib/libOpenMeshTools.so
LIBS += \
-lglut -lGLU
to:
LIBS += \
-lglut32 -lOpenMeshCored -lOpenMeshToolsd
and then I encounter these error:
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
It looks like your OpenMesh library is 64-bit and you are trying to link it with a 32-bit glut library, which is not possible. You have two options:
i386
architecture (see here for more info).