[CMake] works when I build using XCode, but not with CMake makefile

Peter Steinbach steinbach at scionics.de
Tue Sep 6 05:03:16 EDT 2016


Hi Mr. Cotton ;),
is the location of libmysqlclient* available through DYLD_LIBRARY_PATH 
at runtime of your code?
Best,
P

On 09/06/2016 10:56 AM, Cotton Candy wrote:
> Hi,
> I have a project that I originally coded up using XCode. It builds and runs
> just fine using XCode. Now I have tried to set up the same project using
> CMake to generate a makefile. The project builds 100% without any errors
> using 'make', but the resulting code doesn't work. I get error:
> dyld: Library not loaded: libmysqlclient.18.dylib
>   Referenced from: /Users/schurger/tmp/test_CMake2/./skedmo-solver
>   Reason: image not found
> Trace/BPT trap: 5
>
> Any idea how it could build OK without any errors if there was a missing
> library?
>
> Thanks!
> Aaron
>
>
>


More information about the CMake mailing list