[Paraview] Build .app bundle on Mac OS X

Michael Wild themiwi at gmail.com
Wed Apr 2 11:12:36 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for your work!

Just for the records:
- - In addition to that I also had to change the references to all Qt  
libraries (also for the libraries itself). Funny thing is, the I  
didn't have to fiddle with the install_names themselves, as they were  
changed. Just the references were off.
- - Further was the QtSQL.framework missing. I had to add that one  
myself, and there change the references and the install_name with the  
install_name_tool.

This is a bit off topic, but another issue I ran across: When I try to  
build with CMAKE_OSX_SYSROOT set to /Developer/SDKs/MacOSX10.4u.sdk  
under OS X 10.5, things didn't work out of the box:
- - CMAKE_EXE_LINKER_FLAGS:STRING=-Wl,-syslibroot,/Developer/SDKs/ 
MacOSX10.4u.sdk -Wl,-macosx_version_min,10.4
- - CMAKE_MODULE_LINKER_FLAGS:STRING=-Wl,-syslibroot,/Developer/SDKs/ 
MacOSX10.4u.sdk -Wl,-macosx_version_min,10.4
- - CMAKE_SHARED_LINKER_FLAGS:STRING=-Wl,-syslibroot,/Developer/SDKs/ 
MacOSX10.4u.sdk -Wl,-macosx_version_min,10.4
- - CMAKE_CXX_FLAGS:STRING=-mmacosx-version-min=10.4
- - CMAKE_C_FLAGS:STRING=-mmacosx-version-min=10.4

Further I needed to patch up a tiny thing:

Index: VTK/Utilities/vtkfreetype/src/base/ftmac.c
===================================================================
RCS file: /cvsroot/ParaView3/ParaView3/VTK/Utilities/vtkfreetype/src/ 
base/ftmac.c,v
retrieving revision 1.6
diff -u -r1.6 ftmac.c
- --- VTK/Utilities/vtkfreetype/src/base/ftmac.c	3 Jan 2008 18:36:44  
- -0000	1.6
+++ VTK/Utilities/vtkfreetype/src/base/ftmac.c	2 Apr 2008 15:07:46 -0000
@@ -78,7 +78,7 @@
  #endif

    /* The ResourceIndex type was only added in the 10.5 SDK */
- -#ifndef MAC_OS_X_VERSION_10_5
+#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050
  typedef short ResourceIndex;
  #endif


I hope this helps

Michael



On 2Apr, 2008, at 16:23, David Cole wrote:
> I am working on this again this week...... I expect that in the near  
> future, creating the standalone bundle for ParaView will be part of  
> make install and should work on any Mac.
>
>
> David
>
>
> On Wed, Apr 2, 2008 at 10:20 AM, Michael Wild <themiwi at gmail.com>  
> wrote:
> Thanks, this worked, at least partially. I do get the .app with the  
> frameworks included, but unfortunately, the install_name's of the  
> libraries in the MacOS directory are the ones in the build tree, and  
> not something like @executable_path/libxxx.dylib. I fixed this with:
>
> cd paraview-3.3.0/paraview.app/Contents/MacOS
> for l in *.dylib paraview; do for f in $(otool -L $l | grep  
> "something_matching_your_build_dir" | awk '{print $1}'); do  
> ff=@executable_path/$(basename $f); install_name_tool -change $f $ff  
> $l; done; done
>
>
> Michael
>
>
>
> On 2Apr, 2008, at 14:28, Mike Jackson wrote:
> If you do a "make install" the .app bundle should be built and  
> include Qt and Python properly. There is some ongoing work to make  
> this smoother but it should work with the current cvs, although I  
> have not tried recently.
>
>
> David Cole and myself were working on some new scripts but I don't  
> think the scripts are ready for "prime time" yet. They do work on my  
> particular setup, which is OS X 10.4.11 with Qt 4.3.4 as Frameworks.  
> Python should be included on each OS X installation and there is  
> some concern about including it in the app bundle that we have not  
> worked out yet.
>
> David can chime in with some more info..
>
> -- 
> Mike Jackson   Senior Research Engineer
> Innovative Management & Technology Services
>
>
> On Apr 2, 2008, at 8:08 AM, Michael Wild wrote:
> Hi all
>
> I have trouble building a Mac OS X app bundle of ParaView CVS.
>
> I can't seem to find any way to get CMake/CPack to include the Qt  
> and Python frameworks in the .app bundle. However, I do not want to  
> require that my users install a full Qt. When I download the current  
> ParaView beta .dmg (3.2.0) and look inside paraview.app, the  
> frameworks are included, so there must be a way to achieve this (and  
> I hope it is not doing it manually and fixing all dependencies up  
> with install_name_tool, that would be a pain!).
>
> I'd welcome any pointers in the right direction.
>
> Regards
>
> Michael
>
> BTW: I'm using CMake CVS.
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iEYEARECAAYFAkfzomQACgkQyAe0BK8NufONrQCeO4esli/T/9uHtT0K/faYzfg+
kg0An3HX7dG709Jfm0fd3O+MTVTHsrFH
=ZD1Z
-----END PGP SIGNATURE-----


More information about the ParaView mailing list