Select to view content in your preferred language

Undefined reference to `QRTImpl::* in cmake project

1476
1
Jump to solution
09-16-2020 07:29 AM
RobLefebvre
Occasional Contributor

We are not using Qtcreator for this application.  We have included the necessary .h files, and added the following libraries

EsriCommonQt
runtimecore
EsriRuntimeQt

We have no compile errors, but are getting a million undefined references to QRTImpl::everythingunderthesun.
I'm guessing that there is some magic that happens when we are running a Qtcreator project on the same machine (where it links just find).

We have run the postInstall for the SDK for both creator and gcc.

Is there anything else, in a cmake project that we have to link to resolve these symbols?

e.g. Part.cpp:(.text+0x1d5): undefined reference to `QRTImpl::PartImpl::startPointIndexFromSegmentIndex(int) const'

There are literally thousands of them, it seems.

0 Kudos
1 Solution

Accepted Solutions
RobLefebvre
Occasional Contributor

Library order in cmake, fixed it.

View solution in original post

0 Kudos
1 Reply
RobLefebvre
Occasional Contributor

Library order in cmake, fixed it.

0 Kudos