Skip to main content
Participant
June 15, 2008
Question

documentation - setup on linux

  • June 15, 2008
  • 1 reply
  • 485 views
I loved "if you're a linux geek you don't need handholding"<br /><br />but i like to help out the other geeks, so here's something for http://opensource.adobe.com/wiki/display/flexsdk/Setup+on+Linux<br /><br />b INSTALL<br /><br />to build the trunk (Flex4)<br />ensure you have Ant 1.7.0, java JDK (not JRE), and subversion <br /><br />Create a folder for the source code, and change to that directory. Checkout the latest version of the source (you'll be getting all branches, which could take a while. if you just want a particular branch, see elsewhere in these docs for links to the skeleton and the branch structure)<br />>svn checkout http://opensource.adobe.com/svn/opensource/flex/sdk<br /><br />b CONFIGURE <br /><br />In the trunk and/or the branch you wish to build, run<br />>source setup.sh<br /><br />you should get two lines "Setting default ANT_HOME" and "Setting default JAVA_HOME", with no errors.<br />If setup reports an error, work out for your own distribution what they are and edit the section just after<br /><br />>elif [ $OS = "Linux" ];<br /><br />on gentoo, i have:<br /><br />>ANT_HOME=/usr/share/ant-core<br /><br />>JAVA_HOME=`java-config -J | sed -n 's/[\\\/]bin[\\\/]java//p'`<br /><br />FlashPlayerTrust<br />to allow flash player to access files on your local filesystem, add one or more flash player trust files (thanks to Abdul Qabiz: http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/flash_player_trust_f.php)<br />For individual users:<br />>/home/<user>/.macromedia/Flash_Player/#Security/FlashPlayerTrust/<filename>.cfg<br /><br />or<br />>/home/<user>/.macromedia/Macromedia/Flash_Player/#Security/FlashPlayerTrust/<filename>.cfg<br /><br />For all users:<br />>/etc/adobe/FlashPlayerTrust/<filename>.cfg<br /><br />The config file needs only have one line, the name of your directory you want trusted (ie. "/usr/<companyName>/flash"). The documenation for Windows and Mac suggest that this file must be named with a ".cfg" suffix but it seems to reads all files in that directory.<br /><br />mm.cfg<br />To debug the flash player, you need an mm.cfg file in your home directory, containing at least these two lines:<br />>TraceOutputFileEnable=1<br /><br />>ErrorReportingEnable=1<br /><br />(thanks Chris Hill http://zomgforeelz.blogspot.com/2007/04/trace-output-on-linux-with-flash-player.html)<br /><br />b BUILD<br /><br />Finally, do a test build of the flex sdk with<br />>ant main checkintests<br /><br />after a lot of debugging output, you should see a flash player window with lots of controls being activated in turn. if you get a mustellaresultsparser error, remember that you're using in-development software - the build was successful, but the application isn't finished.<br /><br />now read "how to build and test" - note that you'll find the standalone flash player in trunk/in/player/lnx/flashplayer
This topic has been closed for replies.

1 reply

Participating Frequently
June 16, 2008
Thanks, Andrew! I've integrated the instructions on http://opensource.adobe.com/wiki/display/flexsdk/Setup+on+Linux

Let me know if you'd like any changes made to it or its presentation.

Jono