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

Build octomap with octovis fails windows11 (octovis-shared Qt linking) #383

Open
TheNevim opened this issue Sep 27, 2022 · 0 comments
Open

Comments

@TheNevim
Copy link

Hi, I got this error while building octomap-distribution.sln after building octomap and octovis GQLViewer. QGLViewer2.(dll,lib) are in GQLViewer folder :

Build started... 1>------ Build started: Project: octovis-shared, Configuration: Release x64 ------ 1>SelectionBox.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl QObject::event(class QEvent *)" (?event@QObject@@UEAA_NPEAVQEvent@@@Z) 1>SelectionBox.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl QObject::eventFilter(class QObject *,class QEvent *)" (?eventFilter@QObject@@UEAA_NPEAV1@PEAVQEvent@@@Z) 1>SelectionBox.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl QObject::timerEvent(class QTimerEvent *)" (?timerEvent@QObject@@MEAAXPEAVQTimerEvent@@@Z) 1>SelectionBox.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl QObject::childEvent(class QChildEvent *)" (?childEvent@QObject@@MEAAXPEAVQChildEvent@@@Z) 1>SelectionBox.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl QObject::customEvent(class QEvent *)" (?customEvent@QObject@@MEAAXPEAVQEvent@@@Z) 1>SelectionBox.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl QObject::connectNotify(class QMetaMethod const &)" (?connectNotify@QObject@@MEAAXAEBVQMetaMethod@@@Z) 1>SelectionBox.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl QObject::disconnectNotify(class QMetaMethod const &)" (?disconnectNotify@QObject@@MEAAXAEBVQMetaMethod@@@Z) 1>C:\Users\pukdo\Desktop\DP\octomap\bin\octovis.dll : fatal error LNK1120: 7 unresolved externals 1>Done building project "octovis-shared.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 36 up-to-date, 0 skipped ==========

What I have found is that I shoud add additional library when building vcxproj octovis files. I added additional library directory and additional dependencies in Linker properties(both only name and full path). Nothing worked. Im using windows11, cmake, tried MSVC 143,141, tried QT 5 and 6, nothing worked. Any idea ?

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

No branches or pull requests

2 participants