On Wednesday, September 04, 2013 03:01:06 PM Laurent Chauvin wrote:
> Thank you for your help Clint.
>
> I identified the problem. When I compile my library with
> CMAKE_MACOSX_RPATH, the library created is linked with
> @rpath/libMyLib.dylib.
> When I was recompiling (make) it was updating the li
Thank you for your help Clint.
I identified the problem. When I compile my library with
CMAKE_MACOSX_RPATH, the library created is linked with
@rpath/libMyLib.dylib.
When I was recompiling (make) it was updating the library in the build
directory but it was not re-installing (copying in the MyLibr
On Wednesday, September 04, 2013 01:22:11 PM Laurent Chauvin wrote:
> Does your example still works if you replace this line:
>
> target_link_libraries(app ${CMAKE_CURRENT_LIST_DIR}/../lib/liblib.dylib)
>
> by this one:
>
> target_link_libraries(app lib)
No. It doesn't work. I get "ld: librar
Does your example still works if you replace this line:
target_link_libraries(app ${CMAKE_CURRENT_LIST_DIR}/../lib/liblib.dylib)
by this one:
target_link_libraries(app lib)
?
Thank you.
-Laurent
On Wed, Sep 4, 2013 at 1:18 PM, Clinton Stimpson wrote:
> On Wednesday, September 04, 2013 12:48
On Wednesday, September 04, 2013 12:48:41 PM Laurent Chauvin wrote:
> Yes I'm using 2.8.12-rc2 for the library and the example.
>
> But my example is not in the same directory as my library.
Neither was my example.
>
> I can see in your example you specify the full path in
> target_link_librari
Yes I'm using 2.8.12-rc2 for the library and the example.
But my example is not in the same directory as my library.
I can see in your example you specify the full path in
target_link_libraries of your library, which I could probably do.
The problem is, if later on my library I want to put the .
On Wednesday, September 04, 2013 12:02:55 PM Laurent Chauvin wrote:
> Thank you for you help Clint.
>
> I actually relinked, but as you said I still had the LINK_DIRECTORIES.
> However, if I remove it, I have a linking error telling me it cannot find
> the library.
>
> Should I keep the library i
On Wednesday, September 04, 2013 11:30:51 AM Laurent Chauvin wrote:
> Thank you very much for your answer.
>
> I will try to use the MACOSX_RPATH.
>
> However, I have some questions. As the flag suggests, it's only for mac. Is
> there anything similar for Linux (and eventually Windows systems) ?
On Wednesday, September 04, 2013 11:53:45 AM Laurent Chauvin wrote:
> Hello,
>
> I just tried to set the MACOSX_RPATH 1 in the top CMakeLists of MyLib, and
> when I now do otool -L libMyLib.dyld, I can indeed see @rpath/libMyLib.dyld.
> However, my executable "MyExample" is still not able to find
Hello,
I just tried to set the MACOSX_RPATH 1 in the top CMakeLists of MyLib, and
when I now do otool -L libMyLib.dyld, I can indeed see @rpath/libMyLib.dyld.
However, my executable "MyExample" is still not able to find the library at
runtime. When I do otool -L MyExample, I still have libMyLib.dy
Thank you for you help Clint.
I actually relinked, but as you said I still had the LINK_DIRECTORIES.
However, if I remove it, I have a linking error telling me it cannot find
the library.
Should I keep the library in Target_Link_Libraries, or with new flags,
dependency will automatically find the
Thank you very much for your answer.
I will try to use the MACOSX_RPATH.
However, I have some questions. As the flag suggests, it's only for mac. Is
there anything similar for Linux (and eventually Windows systems) ?
Also, the problem to set the full path of the library is, if I compile on
Windo
I'm not an expert, but I think this wiki could help:
http://www.cmake.org/Wiki/CMake_RPATH_handling
On Tue, Sep 3, 2013 at 10:47 PM, Laurent Chauvin
wrote:
> Hello everyone,
>
> I'm working on a library, and I would like the users be able to create
> their own program and liking to my library (b
On Tuesday, September 03, 2013 09:47:45 PM Laurent Chauvin wrote:
> Hello everyone,
>
> I'm working on a library, and I would like the users be able to create their
> own program and liking to my library (by specifying path in cmake).
>
> I created the library and an example to test it.
> Everyth
Hello everyone,
I'm working on a library, and I would like the users be able to create their
own program and liking to my library (by specifying path in cmake).
I created the library and an example to test it.
Everything compiles.
However, when I try to run my example I have this error:
MyExam
15 matches
Mail list logo