Hi,

what exactly do I have to do to successfully build my applilcation as a MacOS X bundle? So far I used the parameter "MACOSX_BUNDLE" for the ADD_EXECUTABLE command and set a lot of properties using the MACOSX_BUNDLE_* variables. The result is indeed a directory with an ".app" extension with my application inside. But this is where my problems begin: My application is dependand on several libraries (Qt, ITK, VTK) and these libraries are not found when executing my application.

While digging in the internet I found out that the problem is related to the "install_name" option of the linker that tells the application where to find the libraries and some rpath issues. I discovered a lot of controversary hints on this topic so now I'm completely clueless.

Isn't all I have to do telling the linker to let my application search for the libraries in a certain path, say "@executable_path/../Frameworks"? If it is, how do I do it? If it is not, what do I have to do to get my aplication finding the libraries?


Matthias




--
Dipl.-Inform. Matthias Riechmann
Institut für Prozessrechentechnik, Automation und Robotik
Medizin-Gruppe
Universität Karlsruhe (TH)
Gebäude 40.28, Zimmer 103
Engler-Bunte-Ring 8
76131 Karlsruhe

Fon: +49 (721) 608-4049
Fax: +49 (721) 608-7141

Web: http://wwwipr.ira.uka.de/~richmann
begin:vcard
fn:Matthias Riechmann
n:Riechmann;Matthias
org;quoted-printable;quoted-printable:Universit=C3=A4t Karlsruhe (TH);Institut f=C3=BCr Prozessrechentechnik, Automation und Robotik - Medizin-=
	Gruppe
adr;quoted-printable;quoted-printable:Engler-Bunte-Ring 8;;Geb=C3=A4ude 40.28, Zimmer 103;Karlsruhe;Baden-W=C3=BCrttemberg;76131;Germany
email;internet:[EMAIL PROTECTED]
title:Dipl.-Inform.
tel;work:+49 (721) 608-4049
tel;fax:+49 (721) 608-7141
url:http://wwwipr.ira.uka.de/~richmann
version:2.1
end:vcard

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to