Bug report #8577
Build error with testqgisappclipboard
| Status: | Closed | ||
|---|---|---|---|
| Priority: | Normal | ||
| Assignee: | |||
| 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
add OS X specific lib to app tests, hopefully fixes #8577
History
#1
Updated by Radim Blazek about 12 years ago
- Status changed from Open to Closed
Fixed in changeset 9ebf1feea1c443cc34b3caf5a419e007f5a97923.
#2
Updated by Radim Blazek about 12 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 12 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 12 years ago
- Resolution set to fixed
- Status changed from Feedback to Resolved
#5
Updated by Larry Shaffer about 12 years ago
- Status changed from Resolved to Closed