Hello Mr.Noulard!<div><br></div><div>Sorry for the late in reply. I had a 'miss configured' filter in my e-mail dropping all mails.</div><div><br></div><div>1) Thanks for the explanation! I will take a look at the "BundleUtilities", once this is exactly what i need: a autonomous application.</div>
<div><br></div><div>2) I'm using CMake version '2.8.7'.</div><div><br></div><div>In Linux, i don't have problems with dependencies, once i'm generating 'Deb' and 'RPM' packages with CPack, and the dependencies are solved by the package manager of the OS.</div>
<div><br></div><div>But in Windows i'm having troubles, specially because i'm using 'Pthreads-Win32' instead the Threads implemented by the Windows API, and, once there isn't a proper installer to 'Pthreads-Win32' (OpenSSL has!), i can't rely in a library installed elsewhere then the Installation directory.</div>
<div><br></div><div>Thanks in advance for your attention!</div><div><br><div class="gmail_quote">On Mon, Feb 27, 2012 at 7:47 PM, Eric Noulard <span dir="ltr"><<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2012/2/27 Mauricio Klein <<a href="mailto:mauricio.klein.msk@gmail.com">mauricio.klein.msk@gmail.com</a>>:<br>
<div class="im">> Hello everybody!<br>
><br>
> I'm creating a NSIS package using CPack to install my software.<br>
><br>
> The code is compilled using Visual Studio 9, and the compilation + packing<br>
> is working well.<br>
><br>
> But, once i install the software using the generated NSIS package, the<br>
> program doesn't start because NSIS did't installed the required libraries.<br>
><br>
> The strange is that in my CMakeLists.txt, i tell that my binary requires<br>
> these libraries.<br>
><br>
> The libraries are:<br>
> * OpenSSL<br>
> * Pthreads<br>
> (both found using find macros)<br>
><br>
><br>
> The piece of configuration that defines these relashionship is showed<br>
> bellow:<br>
> -------------------------------------------------------------------------------------<br>
> find_package(Pthreads REQUIRED)<br>
> find_package(OpenSSL REQUIRED)<br>
><br>
> include_directories(${OPENSSL_INCLUDE_DIR})<br>
> include_directories(${PTHREADS_INCLUDE_DIR})<br>
><br>
> install(TARGETS MyBin DESTINATION "MyBin1-0/bin")<br>
<br>
<br>
> install(TARGETS ${PTHREADS} DESTINATION "MyBin1-0/bin")<br>
> install(TARGETS ${OPENSSL} DESTINATION "MyBin1-0/bin")<br>
<br>
</div>${PTHREADS} and ${OPENSSL} seems wrong<br>
usually those are:<br>
${PTHREADS_LIBRARIES}<br>
${OPENSSL_LIBRARIES}<br>
<br>
moreover you cannot use install(TARGETS ....) for those<br>
because they are not TARGET unless you somehow define<br>
them as IMPORTED library.<br>
<br>
Usually "third party" libs (those which are not built in your project)<br>
are not installed because they may be found on the host where<br>
your software is installed already.<br>
<br>
If you are interested in creating "autonomous" bundle<br>
have a look at the BundleUtilities module.<br>
<div class="im"><br>
> The "MyBin" binary is installed well, but the libraries of Pthreads and<br>
> OpenSSL not!<br>
><br>
> Any hint??<br>
><br>
> Thanks in advance for your attention, and any help is very welcome!<br>
<br>
</div>May be you can tell us which version of CMake you are using<br>
and which system you are targeting (Windows, Linux, MacOS Xetc...)<br>
<span class="HOEnZb"><font color="#888888">--<br>
Erk<br>
Le gouvernement représentatif n'est pas la démocratie --<br>
<a href="http://www.le-message.org" target="_blank">http://www.le-message.org</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best regards,<br><br>Maurício Souza Klein.<br>
</div>