Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Cannot link to my own libraries in Qt 5.2.0 OSX w/clang++

$
0
0
I’ve been updating some of my code run under Qt5 on OSX and have come across an issue whereby I seem unable to link to libraries that I have created. One of my build scripts works in three stages, firstly it builds a core library that contains some basic classes that aren’t GUI dependant. It then builds a library containing custom widgets which relies on the first library. The final stage builds some designer plugins. The first stage seems to build successfully and the resulting .dylibs are installed in /usr/lib. But when the second build reaches the linking stage, clang++ says it cannot find the library. ld: library not found for -labcsCore The same code compiles cleanly in linux using the same version of Qt 5.2.0 although obviously using gcc instead of clang. I have the following in the second stage project file: LIBS += -L/usr/lib -labcsCore Any ideas?

Viewing all articles
Browse latest Browse all 2113

Trending Articles