Bug report #8577

Build error with testqgisappclipboard

Added by Larry Shaffer about 11 years ago. Updated about 11 years ago.

Status:Closed
Priority:Normal
Assignee:Radim Blazek
Category:-
Affected QGIS version:master Regression?:No
Operating System:Mac OS X Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed
Crashes QGIS or corrupts data:No Copied to github as #:17320

Description

Scanning dependencies of target qgis_qgisappclippboard
[100%] Building CXX object tests/src/app/CMakeFiles/qgis_qgisappclippboard.dir/testqgisappclipboard.cpp.o
Linking CXX executable ../../../output/bin/qgis_qgisappclippboard
Undefined symbols for architecture x86_64:
  "_GetCurrentProcess", referenced from:
      QgisApp::bringAllToFront() in libqgis_app.a(qgisapp.cpp.o)
  "_LSOpenCFURLRef", referenced from:
      QgisApp::openURL(QString, bool) in libqgis_app.a(qgisapp.cpp.o)
  "_SetFrontProcess", referenced from:
      QgisApp::bringAllToFront() in libqgis_app.a(qgisapp.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [output/bin/qgis_qgisappclippboard] Error 1
make[1]: *** [tests/src/app/CMakeFiles/qgis_qgisappclippboard.dir/all] Error 2

Commenting out the test in <src>/tests/src/app/CMakeLists.txt, and the app builds:

ADD_QGIS_TEST(qgisappclippboard testqgisappclipboard.cpp)

Associated revisions

Revision 9ebf1fee
Added by Radim Blazek about 11 years ago

add OS X specific lib to app tests, hopefully fixes #8577

History

#1 Updated by Radim Blazek about 11 years ago

  • Status changed from Open to Closed

#2 Updated by Radim Blazek about 11 years ago

  • Status changed from Closed to Feedback

Please try with 9ebf1fe, I added the same what is used for main app.

#3 Updated by Larry Shaffer about 11 years ago

Hi Radim,

Yes, that compiled and the following passed:

ctest --verbose --tests-regex qgisappclippboard

All tests ran as well (13/74 failures, but that's not uncommon). Thanks!

#4 Updated by Larry Shaffer about 11 years ago

  • Resolution set to fixed
  • Status changed from Feedback to Resolved

#5 Updated by Larry Shaffer about 11 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF