crossbridge-community / crossbridge

C/C++ Compiler for the ActionScript Virtual Machine (AVM2)
http://sourceforge.net/projects/crossbridge-community/
Other
152 stars 35 forks source link

Build instructions #68

Closed wvxvw closed 9 years ago

wvxvw commented 9 years ago

Hi guys, I'm trying to build the project, but it's admittedly hard w/o instructions. It would be great if you could at least mention which targets are essential for having the essential tools.

I've tried make all and didn't get very far with it:

Building CrossBridge_15.0.0.3
Please be patient, may take a few hours ...
-  install_libs
-  base
-  make
-  cmake
-  abclibs
Failed to build: abclibs
Makefile:316: recipe for target 'all_with_local_make' failed
make[1]: *** [all_with_local_make] Error 1
make: *** [all] Error 2

I've tried to look at the builtinabcs target (which I believe is the one, where the build fails, or am I not understanding it)? But that's a lot of code to verify (there's also some Python script involved etc.) And... maybe I don't need this at all or do I? Well, you surely must get the idea by now: please write some building instructions :)

PS. I'm building on Fedora 64bit. I think I've installed the required libraries (those I've found in the Travis configuration file).

Ah, and just as I posted it, I found this: https://github.com/adobe-flash/crossbridge/issues/1 which led me to search for the log file here: build/linux/logs/abclibs.txt and the problem was that I didn't have playerglobals.swc in the selected Flex SDK.

Still, building instructions wouldn't hurt.

vpmedia commented 9 years ago

Hi, Building on Linux is not supported, You can try either on MacOSX or Windows. Most of the build issues can be tracked back using the log files in the build folder (try to search for the failing phase's log file and sub-logs like configure.log).

wvxvw commented 9 years ago

Funny that... building GCC-family compiler on Linux isn't supported :) But thank you for reply. Does unsupported mean that you are sure it will not work, or you are not sure it will? If there's a chance it will (with some patches), could you give some advice as to what to avoid? I'm now trying to remove the make target that builds Texinfo pages (I believe that's not crucial if I don't have those, right?) Anything else I should expect?

Thanks!

JoeDupuis commented 9 years ago

Adobe didn't designed or tested the build tools on any other platform than OSX. I believe at first it was not even compiling on windows, you needed OSX to build the windows release at the time.

The linux release could in therory be done, as you said it's just a GCC compiler and OSX isn't that different from Linux in that regard.

Though Adobe were using some OSX specific thing to build the toolchain. I believe those thing might have been removed if the toolchain build on windows, but there might still be some incompatibilities.

We were working on a linux build (as many other maintainers have tried), but we put it on hold because of lack of need and because it was taking too much time. We might resume our effort one day, but at the moment we don't have the resources.

If you do try to fix the linux build. Don't hesitate to ask question if stuff doesn't work. I believe the tool should build on linux too.

vpmedia commented 9 years ago

twistedjoe answer is correct. Referenced issue: #4 Personally I'm fully involved with other projects so I'm not planning updating CrossBridge soon (except minor things like playerglobal.swc updates to support new FP versions).