Comments (7)
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.
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' Try
dirname --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.
Looks like a path issue:
Try using:
Or directly:
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.
It was a path issue, moving the target sdk to /cygdrive/c/crossbridge/4.6.0 worked
from crossbridge.
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.
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.
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)
- Merge codebase to the official SWIG project HOT 3
- Cannot build master branch on Windows platform using Cygwin HOT 6
- Cannot build master branch on Mac platform using Travis-CI HOT 2
- Building the SDK HOT 1
- pthreads and workers support HOT 10
- getting started HOT 17
- performance aspects of crossbridge code HOT 2
- GDB. HOT 1
- fopen with directories makes fseek throw HOT 2
- PlayerKernel.open() throws exception when opening ISpecialFile file with O_TRUNC
- Cygwin dll files is missing HOT 1
- simple app used flashcc socket throws 'terminate called after throwing an instance of 'AS3::ui::var'' HOT 1
- Can't get it to work with SFML
- how do i link a static lib which build by cygwin HOT 1
- Use crossbridge to compile client.c to swc but failed because of a link error HOT 1
- gcc in cygwin is not support windows 10
- archive project? HOT 4
- crossbridge and C++11 HOT 10
- Disable output in adl
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crossbridge.