Plex Forums: Building a complete releasable Plex.app - Plex Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Building a complete releasable Plex.app

#1 User is offline   jv4779 Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 10-March 09

Posted 10 March 2009 - 10:58 PM

I can't figure out how to build a Plex.app that can be run on a non-development environment. There is a lot of stuff in the Plex.app that are not included in an Xcode release combile ($PLEX_HOME) and the Plex executable also seems to be compiled to use libraries from "@executable_path/../Frameworks" instead of /opt/local.

I want to use my Mac Mini as a test platform for my source changes. I would prefer to do that without installing ports and other development software on it to keep the platform as pure as possible.

Jeremy
0

#2 User is offline   jv4779 Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 10-March 09

Posted 13 March 2009 - 03:53 PM

Some assistance on this would be appreciated.
0

#3 User is online   elan Icon

  • Sheriff of Plexville
  • PipPipPip
  • Group: Sheriff Of Plexville
  • Posts: 2,663
  • Joined: 26-May 08
  • Gender:Male
  • Location:Maui

Posted 20 March 2009 - 09:08 AM

Sorry to not answer more quickly. Download the latest build of Plex, and point PLEX_HOME at that app (e.g. /Applications/Plex.app/Contents/Resources/Plex)

Let me know if you have any other questions!
The Plex blog.
The wife's photography site.
The dog's twitter feed.
0

#4 User is offline   Jam Icon

  • Plex Dev Team
  • PipPipPip
  • Group: Code Monkeys
  • Posts: 2,407
  • Joined: 13-August 08
  • Gender:Male
  • Location:Manchester, UK

Posted 20 March 2009 - 05:27 PM

Unless I'm mistaken, even after setting PLEX_HOME the compiled binary will still be linked against the MacPorts libraries.
0

#5 User is online   elan Icon

  • Sheriff of Plexville
  • PipPipPip
  • Group: Sheriff Of Plexville
  • Posts: 2,663
  • Joined: 26-May 08
  • Gender:Male
  • Location:Maui

Posted 20 March 2009 - 10:30 PM

My bad, I totally misread the original question. For releases I run a script containing the following:

install_name_tool -change /opt/local/lib/libGLEW.1.5.1.dylib @executable_path/../Frameworks/libGLEW.1.5.1.dylib ../Plex.app/Contents/MacOS/Plex 
install_name_tool -change /opt/local/lib/libcdio.6.dylib @executable_path/../Frameworks/libcdio.6.dylib ../Plex.app/Contents/MacOS/Plex 
install_name_tool -change /opt/local/lib/libfreetype.6.dylib @executable_path/../Frameworks/libfreetype.6.dylib ../Plex.app/Contents/MacOS/Plex 
install_name_tool -change /opt/local/lib/libfribidi.0.dylib @executable_path/../Frameworks/libfribidi.0.dylib ../Plex.app/Contents/MacOS/Plex 
install_name_tool -change /opt/local/lib/liblzo.1.dylib @executable_path/../Frameworks/liblzo.1.dylib ../Plex.app/Contents/MacOS/Plex
install_name_tool -change /opt/local/lib/libmad.0.dylib @executable_path/../Frameworks/libmad.0.dylib ../Plex.app/Contents/MacOS/Plex
install_name_tool -change /opt/local/lib/libogg.0.dylib @executable_path/../Frameworks/libogg.0.dylib ../Plex.app/Contents/MacOS/Plex
install_name_tool -change /opt/local/lib/libjpeg.62.dylib @executable_path/../Frameworks/libjpeg.62.dylib ../Plex.app/Contents/MacOS/Plex
install_name_tool -change /opt/local/lib/libvorbis.0.dylib @executable_path/../Frameworks/libvorbis.0.dylib ../Plex.app/Contents/MacOS/Plex

#install_name_tool -change python24-osx.so @executable_path/../Frameworks/libpython2.4.dylib ../Plex.app/Contents/MacOS/Plex
install_name_tool -change /opt/local/lib/libpcre.0.dylib @executable_path/../Frameworks/libpcre.0.dylib ../Plex.app/Contents/MacOS/Plex
install_name_tool -change /opt/local/lib/libfontconfig.1.dylib @executable_path/../Frameworks/libfontconfig.1.3.0.dylib ../Plex.app/Contents/MacOS/Plex
install_name_tool -change /opt/local/lib/libiconv.2.dylib /usr/lib/libiconv.2.dylib ../Plex.app/Contents/MacOS/Plex
install_name_tool -change /opt/local/lib/libz.1.dylib /usr/lib/libz.1.dylib ../Plex.app/Contents/MacOS/Plex
install_name_tool -change /opt/local/lib/libbz2.1.0.dylib /usr/lib/libbz2.1.0.dylib ../Plex.app/Contents/MacOS/Plex
install_name_tool -change /opt/local/lib/libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib ../Plex.app/Contents/MacOS/Plex

install_name_tool -change /opt/local//lib/libSDL-1.2.0.dylib @executable_path/../Frameworks/libSDL-1.2.0.dylib ../Plex.app/Contents/MacOS/Plex
install_name_tool -change /opt/local/lib/libSDL_image-1.2.0.dylib @executable_path/../Frameworks/libSDL_image-1.2.0.dylib ../Plex.app/Contents/MacOS/Plex
install_name_tool -change /opt/local/lib/libSDL_mixer-1.2.0.dylib @executable_path/../Frameworks/libSDL_mixer-1.2.0.dylib ../Plex.app/Contents/MacOS/Plex
install_name_tool -change /opt/local/lib/mysql5/mysql/libmysqlclient.15.dylib @executable_path/../Frameworks/libmysqlclient.16.dylib ../Plex.app/Contents/MacOS/Plex
install_name_tool -change /opt/local/lib/samba3/libsmbclient.dylib @executable_path/../Frameworks/libsmbclient.dylib ../Plex.app/Contents/MacOS/Plex

The Plex blog.
The wife's photography site.
The dog's twitter feed.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic



1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users