Giter Site home page Giter Site logo

getting started about crossbridge HOT 7 OPEN

adobe-flash avatar adobe-flash commented on July 21, 2024
getting started

from crossbridge.

Comments (7)

vpmedia avatar vpmedia commented on July 21, 2024

Try setting JAVA_OPTS environment variable (-Xms1024m -Xmx8192 in my example):
http://docs.ubmatrix.com/webhelp/xda/1_0_1/Configure_Java_Environment_Options_%28JAVA_OPTS%29.htm

from crossbridge.

ddyer0 avatar ddyer0 commented on July 21, 2024

Setting JAVA_OPTS environment variable made no difference, but I eventually succeeded by adding
-jvmopt=-Xmx1G to BASE_CFLAGS in Makefile.common

The next stumble is while compiling sample 5
-------- Sample 5 --------

Now compile a SWC and demo SWF
"/cygdrive/c/crossbridge/sdk/usr/bin/g++" -Werror -Wno-write-strings -Wno-trigraphs -jvmopt=-Xmx1G -O4 MurmurHash3.cpp a
s3api.cpp main.cpp -emit-swc=sample.MurmurHash -o MurmurHash.swc
"C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\4.6.0/bin/mxmlc" -static-link-runtime-shared-libraries -co
mpiler.omit-trace-statements=false -library-path=MurmurHash.swc -debug=false swcdemo.as -o swcdemo.swf
dirname: extra operand Files\\Adobe\\Adobe' Trydirname --help' for more information.
Error: Unable to access jarfile C:/crossbridge/cygwin/lib/mxmlc.jar
Makefile:2: recipe for target T05' failed make[2]: *** [T05] Error 1 make[2]: Leaving directory/cygdrive/c/crossbridge/samples/05_SWC'
Makefile:35: recipe for target T05' failed make[1]: *** [T05] Error 2 make[1]: Leaving directory/cygdrive/c/crossbridge/samples'
Makefile:2: recipe for target `all' failed
make: *** [all] Error 2

from crossbridge.

vpmedia avatar vpmedia commented on July 21, 2024

Looks like a path issue:
Try using: $(call nativepath,$(FLEX))
Or directly: $(shell cygpath -at mixed $(FLEX))
Also space in path names could lead to errors, you can move the sdk or use shortened path:
/cygdrive/c/Progra~1/Flex...
Also you can use AIR SDK instead of Flex:
https://www.adobe.com/devnet/air/air-sdk-download.html

from crossbridge.

ddyer0 avatar ddyer0 commented on July 21, 2024

It was a path issue, moving the target sdk to /cygdrive/c/crossbridge/4.6.0 worked

from crossbridge.

ddyer0 avatar ddyer0 commented on July 21, 2024

Where does the default value (that I had to override) -Xmx1500M come from? It doesn't appear anywhere in distribution that I can find.

from crossbridge.

vpmedia avatar vpmedia commented on July 21, 2024

https://github.com/adobe-flash/crossbridge/blob/master/llvm-gcc-4.2-2.9/gcc/config/avm2/avm2.h
line 158

I've removed this in my fork because I think it's better to depend on JAVA_OPTS env. or supply by param.

from crossbridge.

ddyer0 avatar ddyer0 commented on July 21, 2024

After the above, the "samples" build still failed on sample 5.

My explanation is that my typical devlopers path is full of all kinds of stuff, including perl,
msvc, some version or other of cygwin, some random unix command tools, and so on.
I eventually fixed the rest of the samples build process by cleaning up my path.

In run.bat, before the path modification

set a minimal path to avoid contamination of the environment with unexpected programs

note this includes the JDK path we want to use

set path=C:\java\jdk1.8.0\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;

from crossbridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.