Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL32.Lib issues #1

Open
bwbeall opened this issue Nov 4, 2016 · 1 comment
Open

OpenGL32.Lib issues #1

bwbeall opened this issue Nov 4, 2016 · 1 comment

Comments

@bwbeall
Copy link

bwbeall commented Nov 4, 2016

Hi,

I'm trying to build your version of meshlab using Qt 5.7 and VS2013 for Windows x64, and I am having an issue with linking in the OpenGL32 library.

This is the error message I'm getting (about 39 more just like it, as well)
meshmodel.obj:-1: error: LNK2019: unresolved external symbol __imp_glBegin referenced in function "public: bool __cdecl MeshLabRenderMesh::renderSelectedFace(void)" (?renderSelectedFace@MeshLabRenderMesh@@QEAA_NXZ)

I don't know a thing about Qt or qmake, but from what I can find in Qt help and stackoverflow.com, it looks like you have what is needed:

QT += opengl

Are you aware of anything else that I can do?

Thanks for doing a great job updating the meshlab project on your GitHub page, and for any assistance you can provide.

Brook Beall

@bwbeall
Copy link
Author

bwbeall commented Nov 10, 2016

I think I have figured out what the issue is (at least for me) - I have about a dozen compilers listed in the Qt Creator Tools, Options, Build & Run, Compiler tab, and most of them need to go. After configuring the (single) compiler I will be using, I Save All and close the Qt Creator. Reopen and load the project, go to the Compiler tab, and delete the compilers that are not used. Next, add the following to common.pro:

win32:LIBS += opengl32.lib

Click Apply and/or OK, and Build, Rebuild All. Now, the common folder builds fine, but unfortunately, the common.dll file is not being referenced in the meshlab_full project, so I now have a set of 225 (entirely new) unresolved symbols. Tried the same process in meshlab_mini project, with the same results.
There are two sets of meshlab files in the archive, with some differences. Unfortunately, both sets build with the same results.

The problem is that the common.dll that was created first (and was causing my 40 unresolved externals) is not being used by the meshlab_full (or meshlab_mini) project files.

Any ideas on that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant