Mike,<br><br>Thank again for your answers. I checked your tool and it seems to work great here. I will add some more features (QT4 sublibs) to it and send you the patch asap.<br><br>I will follow your advices and concentrate my efforts on making my bundle &quot;the good way&quot;.
<br><br>Regards,<br>Félix C. Morency<br><br><div class="gmail_quote">On Dec 4, 2007 5:02 PM, Mike Jackson &lt;<a href="mailto:imikejackson@gmail.com">imikejackson@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div class="Ih2E3d"><div><br></div><div>On Dec 4, 2007, at 4:46 PM, Félix C. Morency wrote:</div></div><div><div class="Ih2E3d"><br><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
Mike,<br><br>Thank you for your precise answer. I will try this tomorrow. I have few other questions for you:<br><br>1.0) Why isn&#39;t CMake doing this automatically ?<span>&nbsp;</span></span></blockquote></div>&nbsp;&nbsp;CMake will set the &quot;install_path&quot; for you if you use the SET_TARGET_PROPERTIES macro. This just applies to libraries that CMake builds for you. Xcode would be no different in this respect
<div class="Ih2E3d"><br><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<br>1.1) Is is just a CMake&#39;s missing feature or is there any technical issues ? I think QMake does it for you isn&#39;t is ?<span>&nbsp;</span></span></blockquote></div>&nbsp;&nbsp; &nbsp;See above. Qmake _might_ do it the same way cmake does, by setting a bunch of link flags. check with qmake.&nbsp;
<div class="Ih2E3d"><br><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<br>2.0) I&#39;m sure Apple has plenty of reasons for doing libs handling this way but is it only me or this is completly retard ?<span>&nbsp;</span></span></blockquote></div><div>&nbsp;&nbsp; &nbsp;It is &quot;Different&quot;. Apple wants the user experience to be easy and straight forward. This also includes &quot;installing&quot; programs and applications. It should be a Drag-and-Drop process if at all possible. There are times when this is just not possible. For MOST programs out there, this is absolutely possible. Because Apple would like everything to be in a bundled app there needs to be &quot;special&quot; install_names (or rpaths) in the libraries. This is the need.
</div><div class="Ih2E3d"><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<br>2.1) I&#39;m not sure but I don&#39;t think linux is working this way isn&#39;t it ?</span></blockquote></div><div>No. Linux and to some extent windows do not work this way. Then again, windows has &quot;DLL Hell&quot; because all the dlls are just put in the same directory. So what happens when your installer puts version 1 of a library in /usr/local and my installer overwrites your lib with version 2? Your app stops working and a lot of finger pointing takes place. If you spend the time upfront as a developer to package your application properly you avoid having to deal with this problem.
</div><div class="Ih2E3d"><br><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<br>2.2) Wouldn&#39;t it be easier just to install all the libs with CPack in standard location (/usr/lib) if possible ?</span></blockquote><div><br></div></div>See above. NEVER install ANYTHING in /usr/lib on OS X. That is reserved for APPLE supplied stuff. If you have to put it somewhere, then /usr/local/lib is better. If you have frameworks then put those in /Library/Frameworks, but you better have a REALLY good reason for putting something in there. Package the App how Apple wants and you will find that you spend less time troubleshooting problems on OS X and more time coding. You can look at my examples to see how I am doing things. You are perfectly allowed to use any of my code in your projects. If you make them better I would appreciate knowing.
</div><div class="Ih2E3d"><div><br><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<br>Libs handling under OSX is a real PITA. I will give you my feedback soon.</span></blockquote></div><br></div><div>It is a PITA when your build system does not properly/easily support them. Even in Xcode, it is tricky to get things setup correctly so cmake isn&#39;t going to be any easier. Examples help. Look at mine. They take a lot of the burden off you and should be able to &quot;Do the right thing&quot; for your libs. That being said I do NOT warranty them against bugs. If you find a bug let me know. I&#39;ll do what I can to fix them.&nbsp;
</div><div><br></div><div>I am compiling on OS X 10.4.11 (Intel and PPC). The scripts seem to work for my setup.</div><div><br></div><div>Also, if you have control over how all your support libs are compiled you can always compile them as static and avoid these problems.
</div><div><br></div><div>Hope that answers your questions.</div><font color="#888888"><div>Mike Jackson</div></font></div></blockquote></div><br>