Contenido
Running Flex Builder on Linux (native mode)
2007 - 04 -26
Esta es una traducción del artículo que escribí en Cristalab, mucho más completo y en español. El hecho de escribirlo en inglés es porque considero que puede ser un tema interesante para mucha gente y no hay mucha información por el momento, así que la idea es llegar a un público más amplio.
Running FlexBuilder on Linux (native mode).There is a guide on how-to run FB (FlexBuilder) on Linux with Wine, that way doesn’t work for me and let’s not talk about RAM usage. I prefer to run Eclipse in native mode not through Wine.
A Chinesse Blogger (perhaps she/he isn’t Chinesse nor blogger) has made a patch for Flex Builder by modifying some of the files of FB and as FB runs over Java, it doesn’t look so difficult to port to other systems (but java isn’t multi-platform!). Let’s go :
What we need?
- Eclipse
- The “Patch”
- Free Flex SDK (or a FB installation on Windows, but i prefer the SDK, it’s easier)
- charts.swc (from FB installation on Windows because it isn’t at the free SDK)
- A Linux distro (i run this on Ubuntu, but it should run in any)
Legal Notes
Using a program in another SO (for which it hasn’t been developped for) could be ilegal. Modifying a program or some of its files could be ilegal. Please read the user license/Agreement of FlexBuilder (i didn’t read it, and i’m not making responsible for you). If you feel you’re doing something ilegal, STOP and go to see some kind of lawyer (LOL).
Step by Step
1.- Install Eclipse, i prefer the tar.gz from the web instead of the repositories version. You could specify where to install.
2.- Download the patch and decompress it somewhere. You’ll see 3 folders, copy the content to the folders with the same name at your Eclipse installation path.
3.- Download the Free Flex SDK and decompress it somewhere. (Here you could copy the same files from a Windows installation)
4.- Open and modify the file eclipse/configuration/com.adobe.flexbuilder/felxbuilder2.xml , search for sdkpath and put the path for the Free Flex SDK or the files from Windows (It’s easier to do with the SDK files).
/path/to/Free/FLEX/SDK/
4B.- If you use the Free Flex SDK you need the file charts.swc, copy it to “/path/to/Free/FLEX/SDK/frameworks/libs” by the way (you could grab the file from windows installation, see notes below)
/path/to/Free/FLEX/SDK/frameworks/libs/charts.swc
5.- Go to the folder /path/to/Free/FLEX/SDK/bin and delete the file mxmlc.exe (Windows compiler), you could also rename it to mxmlc.exe_backup (for example). Rename the file mxmlc (Unix compiler) to mxmlc.exey elimina el archivo mxmlc.exe Flex Builder is designed for search for a mxmlc.exe compiler, changing the extension in Linux doesn’t affect the file itself.
6.- Run Eclipse and open the FlexBuilder perspective. Enjoy!
FINAL NOTES (READ!!)
- Design mode doesn’t work
- Things that work : compilation, code hints, project manager, projects with Data Services,…
- You could do the design with “flexible” (or something similar).
- The file charts.swc display the components in design mode, in Flex SDK there is no design mode, so the file isn’t include. You could work without this file, but Eclipse will show you an error, if you don’t want to see a red-cross, copy the file!
- At the time of compilation (just after, when it try to run the result), FB will show you an error about a DLL (NPSWF32.dll). I try to copy it from windows (the one with come with FB and the another which is with Flash Player 9) neither of them worked, but if you accept you could compile and run without any problem.
ENJOY!!
Gracias a Zah por la ayuda con el inglés




May 6th, 2007 at 19:09
“chinese -blogger” is chinese & blogger
December 31st, 2007 at 12:20
[...] Escribí otro de esos artículos super-útiles pero tan especializados (o eso quiero creer) que a nadie le importó, cómo ejecutar Flex en Linux de forma nativa. [...]
March 11th, 2009 at 19:59
A mi me interesa y addemas tb saber como iria sobre flex3, y ubuntu 64bt
gracias