Ah I think I know why your QT libs are not in the right spot. That being the FUNCTION(install_qt_libs qtliblist componentname) Macro in ParaViewBrandingCPack.cmake is using ${PV_INSTALL_LIB_DIR} which probably isn&#39;t defined in your case. We&#39;ll get this fixed up.<br>
<br><div class="gmail_quote">On Fri, Jan 15, 2010 at 11:11 AM, Eric E. Monson <span dir="ltr">&lt;<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hey Utkarsh,<br>
<br>
We&#39;re getting closer... Your new instructions got me past a lot of the problems, but I was still missing the Qt libraries. I copied the &quot;Add install rules...&quot; section from Applications/ParaView/CMakeLists.txt so I would have an example for the install_qt_libs() macro, and it sort of worked, but in my binary package it put all of the Qt libraries in the package root rather than in {package_root}/lib/paraview-3.7/. After I moved the Qt libraries to that spot, all it was missing was libaudio.so.2 (which is a link to libaudio.so.2.4 on my system). If I also copy that to the correct package lib directory it runs on a clean Ubuntu system!<br>

<br>
So, if you know how to get the Qt libraries to end up in the correct spot, and how to get libaudio to show up, too, let me know.<br>
<br>
Oh, and when I copied the whole &quot;Add install rules&quot; section, cmake complained when it ran into the &quot;Install the .plugins configuration file&quot; section, saying &quot;install FILES given no DESTINATION!&quot;. I guess maybe it doesn&#39;t know the ${PV_INSTALL_LIB_DIR} variable, but I&#39;m not sure if I&#39;ll need that, or what to replace it with in my script.<br>

<br>
Next I need to see if I can get my plugins to compile and install along with my branded app. As you can tell, I&#39;m not exactly a CMake master! :)<br>
<br>
Thanks again for all the help,<br>
<font color="#888888">-Eric<br>
</font><div><div></div><div class="h5"><br>
<br>
On Jan 14, 2010, at 5:08 PM, Utkarsh Ayachit wrote:<br>
<br>
&gt; Eric,<br>
&gt;<br>
&gt; I&#39;ve updated the Wiki:<br>
&gt;<br>
&gt; <a href="http://www.paraview.org/Wiki/Writing_Custom_Applications#Packaging" target="_blank">http://www.paraview.org/Wiki/Writing_Custom_Applications#Packaging</a><br>
&gt;<br>
&gt; Here are the highlights:<br>
&gt; * Build ParaView with VTK_USE_RPATH:OFF and BUILD_SHARED: ON<br>
&gt; * Build your app with CMAKE_SKIP_RPATH:ON and BUILD_SHARED: ON<br>
&gt;<br>
&gt; Utkarsh<br>
&gt;<br>
&gt; On Thu, Jan 14, 2010 at 5:06 PM, Eric E. Monson &lt;<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>&gt; wrote:<br>
&gt;&gt; Hey Utkarsh,<br>
&gt;&gt;<br>
&gt;&gt; Thanks for the quick response -- that worked perfectly for generating the package.<br>
&gt;&gt;<br>
&gt;&gt; The problem I&#39;m running into now, on Ubuntu at least (which is probably a generic install/package problem, not specific to the branding) is that the executable can&#39;t find the proper libraries. I can run from the {package}/build directory if I make a source package, but that seems to be because it&#39;s still finding the libraries in my original ParaView build -- ldd on the executable lists the original library build location, not the new {package}/lib/paraview-3.7 library location. I tried building ParaView with VTK_USE_RPATH turned OFF, too, but that didn&#39;t seem to solve it.<br>

&gt;&gt;<br>
&gt;&gt; Sorry for the ignorance on this part -- I usually just build and run in place rather than doing an &quot;install&quot;.<br>
&gt;&gt;<br>
&gt;&gt; Thanks again,<br>
&gt;&gt; -Eric<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Jan 14, 2010, at 4:25 PM, Utkarsh Ayachit wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; Eric,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; That&#39;s something that needs to be fixed. For now, you can do this:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; cpack -G TGZ --config CPack{PackageName}Config.cmake<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; You can change the generator (-G) suitable for your platform. Look at<br>
&gt;&gt;&gt; cpack --help for details.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Note: this is still under development. I committed this code just<br>
&gt;&gt;&gt; yesterday :), so there may be issues. But we&#39;d love any feedback that<br>
&gt;&gt;&gt; we can get.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Utkarsh<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Thu, Jan 14, 2010 at 4:16 PM, Eric E. Monson &lt;<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt; Hello,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I&#39;ve never tried to package PV binaries before, but I&#39;ve been enjoying exploring the new branding capabilities and started trying to see if I could package my custom PV to supply for my users. I added the appropriate lines to my CMakeList.txt file by looking at the one for the Spreadsheet app. I&#39;m building out of the PV source tree, and the build goes fine.<br>

&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Even though there were cpack options when configuring in ccmake for both binary and source packaging, I can run &quot;make package_source&quot; after my build but there is no target for &quot;make package&quot;. Is there some other configuration I can do to package the binaries without all of the source files?<br>

&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; (I&#39;m building 64-bit versions with CVS CMake and ParaView, and Qt 4.6.0 on both Mac OS X 10.6.2 and Ubuntu 9.10)<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thanks for the help,<br>
&gt;&gt;&gt;&gt; -Eric<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; ------------------------------------------------------<br>
&gt;&gt;&gt;&gt; Eric E Monson<br>
&gt;&gt;&gt;&gt; Duke Visualization Technology Group<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt;&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br>