Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
These errors exist in QGLViewerWidget.obj

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 &)"


While this error exists in meshviewer.obj

meshviewer.obj:-1: error: LNK2019: unresolved external symbol __imp___glutInitWithExit referenced in function glutInit_ATEXIT_HACK


What I have tried:

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


I have glut.lib , OpenMeshCored.lib, and OpenMeshToolsd.lib and move to C:/Qt/.../lib folder but I don't have glu.lib. I tried to download online but it is not available and didn't found any. Please help alternative solutions for the error.
Posted
Comments
Richard MacCutchan 31-Aug-18 6:39am    
If you are trying to call a function in a library that does not exist then you will continue to receive this error message. Change the code so it does not try to reference non-existent functions.
Member 13927363 31-Aug-18 22:11pm    
No, I'm not trying to call any function. Just what I have mentioned, what I have only done is changed the

LIBS += \
/usr/local/lib/libOpenMeshCore.so \
/usr/local/lib/libOpenMeshTools.so

LIBS += \
-lglut -lGLU

to

LIBS += \
-lglut32 -lOpenMeshCored -lOpenMeshToolsd

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900