Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Timothy M. Shead
Timothy M. Shead wrote: Michael Wild wrote: On 16. Jul, 2009, at 16:17, Bill Hoffman wrote: Michael Wild wrote: Actually, I'm planning on doing this with the .def files. But then, maintaining them might also become a nightmare. You can generate them if you use dumpbin and some scripting

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Timothy M. Shead
Michael Wild wrote: On 16. Jul, 2009, at 16:17, Bill Hoffman wrote: Michael Wild wrote: Actually, I'm planning on doing this with the .def files. But then, maintaining them might also become a nightmare. You can generate them if you use dumpbin and some scripting But, it is much easie

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Michael Wild
On 16. Jul, 2009, at 16:17, Bill Hoffman wrote: Michael Wild wrote: Actually, I'm planning on doing this with the .def files. But then, maintaining them might also become a nightmare. You can generate them if you use dumpbin and some scripting But, it is much easier to just use the

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Bill Hoffman
Michael Wild wrote: Actually, I'm planning on doing this with the .def files. But then, maintaining them might also become a nightmare. You can generate them if you use dumpbin and some scripting But, it is much easier to just use the declspec stuff -Bill __

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Michael Wild
On 16. Jul, 2009, at 15:46, Eric Noulard wrote: 2009/7/16 Michael Wild : GCC even supports that feature: http://gcc.gnu.org/wiki/Visibility in particular you may read "2.2 Export Control" in http://people.redhat.com/drepper/dsohowto.pdf I don't say that this is evil. I only say that REQUIR

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Eric Noulard
2009/7/16 Michael Wild : >> GCC even supports that feature: >> >> http://gcc.gnu.org/wiki/Visibility >> >> in particular you may read "2.2 Export Control" in >> http://people.redhat.com/drepper/dsohowto.pdf > > I don't say that this is evil. I only say that REQUIRING it is really bad. OK I missed

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Michael Wild
On 16. Jul, 2009, at 15:39, Andreas Pakulat wrote: On 16.07.09 15:26:16, Eric Noulard wrote: 2009/7/16 Michael Wild : May be there is some equivalent on Windows platform too http://msdn.microsoft.com/en-us/library/ms682586(VS.85).aspx [just pointing the link, I'm really no windows expert and

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Michael Wild
On 16. Jul, 2009, at 15:26, Eric Noulard wrote: 2009/7/16 Michael Wild : May be there is some equivalent on Windows platform too http://msdn.microsoft.com/en-us/library/ms682586(VS.85).aspx [just pointing the link, I'm really no windows expert and don't want to become one :-) ] Serious

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Andreas Pakulat
On 16.07.09 15:26:16, Eric Noulard wrote: > 2009/7/16 Michael Wild : > >> > >> May be there is some equivalent on Windows platform too > >> http://msdn.microsoft.com/en-us/library/ms682586(VS.85).aspx > >> [just pointing the link, I'm really no windows expert and > >> don't want to become one

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Eric Noulard
2009/7/16 Michael Wild : >> >> May be there is some equivalent on Windows platform too >> http://msdn.microsoft.com/en-us/library/ms682586(VS.85).aspx >> [just pointing the link, I'm really no windows expert and >> don't want to become one :-) ] > > Seriously, that platform is just plain broke

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Michael Wild
On 16. Jul, 2009, at 14:45, Eric Noulard wrote: 2009/7/16 Hendrik Sattler : Zitat von Michael Wild : Setting CMAKE_INSTALL_RPATH to "$ORIGIN/../lib/mcrl2" solves the problem, as the binaries are located in "${CMAKE_INSTALL_PREFIX}/bin/mcrl2". On Mac you can set the INSTALL_NAME_DIR prope

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Eric Noulard
2009/7/16 Hendrik Sattler : > Zitat von Michael Wild : >>> >>> Setting CMAKE_INSTALL_RPATH  to "$ORIGIN/../lib/mcrl2" solves the >>> problem, as the binaries are located in >>> "${CMAKE_INSTALL_PREFIX}/bin/mcrl2". >>> >> >> On Mac you can set the INSTALL_NAME_DIR property (or the >> CMAKE_INSTALL_N

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Hendrik Sattler
Zitat von Michael Wild : Setting CMAKE_INSTALL_RPATH to "$ORIGIN/../lib/mcrl2" solves the problem, as the binaries are located in "${CMAKE_INSTALL_PREFIX}/bin/mcrl2". On Mac you can set the INSTALL_NAME_DIR property (or the CMAKE_INSTALL_NAME_DIR variable) to something starting with @executab

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Michael Wild
On 16. Jul, 2009, at 9:26, Frank Stappers wrote: Hendrik Sattler wrote: Am Mittwoch 15 Juli 2009 17:20:25 schrieb Frank Stappers: With the help of CPack we would like to make packages. Currently, we can make packages for MAC OSX (DMG, TSGZ, GZ) and UNIX (RPM, DEB, STGZ, GZ). For static builds

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Frank Stappers
Hendrik Sattler wrote: > Am Mittwoch 15 Juli 2009 17:20:25 schrieb Frank Stappers: >> With the help of CPack we would like to make packages. Currently, >> we can make packages for MAC OSX (DMG, TSGZ, GZ) and UNIX (RPM, DEB, >> STGZ, GZ). For static builds (so no shared libraries) these packages >>

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-15 Thread Hendrik Sattler
Am Mittwoch 15 Juli 2009 17:20:25 schrieb Frank Stappers: > With the help of CPack we would like to make packages. Currently, > we can make packages for MAC OSX (DMG, TSGZ, GZ) and UNIX (RPM, DEB, > STGZ, GZ). For static builds (so no shared libraries) these packages > can be deployed in any direct

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-15 Thread Eric Noulard
2009/7/15 Frank Stappers : > With the help of CPack we would like to make packages. Currently, > we can make packages for MAC OSX (DMG, TSGZ, GZ) and UNIX (RPM, DEB, > STGZ, GZ). For static builds (so no shared libraries) these packages > can be deployed in any directory, without any problems. For

[CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-15 Thread Frank Stappers
With the help of CPack we would like to make packages. Currently, we can make packages for MAC OSX (DMG, TSGZ, GZ) and UNIX (RPM, DEB, STGZ, GZ). For static builds (so no shared libraries) these packages can be deployed in any directory, without any problems. For builds that use shared libraries, t