Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
KDevelop
KDevelop
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 28
    • Merge Requests 28
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • KDevelop
  • KDevelopKDevelop
  • Merge Requests
  • !109

Closed
Opened Mar 01, 2020 by Igor Kushnir@igorkushnirDeveloper
  • Report abuse
Report abuse

Fix a cmake test linker error with Qt 5.9

  • Overview 1
  • Commits 1
  • Pipelines 1
  • Changes 1

I got the following error while trying to make a full Release build in openSUSE Leap 15.1:

[ 71%] Linking CXX executable ../../../bin/test_cmakefileapi
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/test_cmakefileapi.dir/test_cmakefileapi.cpp.o: in function `TestCMakeFileApi::testConfigure()':
test_cmakefileapi.cpp:(.text._ZN16TestCMakeFileApi13testConfigureEv[_ZN16TestCMakeFileApi13testConfigureEv]+0x916): undefined reference to `bool QTest::qCompare<QString, char [4]>(QString const&, char const (&) [4], char const*, char const*, char const*, int)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: test_cmakefileapi.cpp:(.text._ZN16TestCMakeFileApi13testConfigureEv[_ZN16TestCMakeFileApi13testConfigureEv]+0xdcb): undefined reference to `bool QTest::qCompare<QString, char [4]>(QString const&, char const (&) [4], char const*, char const*, char const*, int)'
collect2: error: ld returned 1 exit status
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: kdevelop/kdevelop!109
Source branch: fix-qt59-linker-error