|
HowToBuildTheSimpleCompiler
How To Build The Simple Compiler and Runtime Library
Featured How To Build The Simple Compiler and Runtime LibraryRequirementsBefore attempting to build the Simple compiler and runtime library, you need to have the following software installed on your computer:
SetupAfter downloading or checking out the Simple source code, you need to set following environment variables:
BuildingOn Mac or Linux execute the following commands: cd <root of your Simple source distribution>
ant clean all
chmod +x ${SIMPLE_HOME}/simplecOn Windows execute the following commands: cd <root of your Simple source distribution> ant clean all The built Simple compiler can now be found in SIMPLE_HOME. On Windows its name is simplec.bat, on Mac or Linux it is simply simplec. |
► Sign in to add a comment
i have translate thie article into chinese if you need this article_ch please visit my Blog http://hi.baidu.com/istry
Please, could you write a wiki with a step by step complete installation. Otherwise it will be impossible for lot of beginner programmers to use your software.
Step by step instalation on windows xp. Sorry it is only russian :( my english iz very bad http://blog.catfoto.ru/post/Simple-Basic-d0bad0bed0bcd0bfd0b8d0bbd18fd182d0bed180-d0b4d0bbd18f-ANDROID.aspx
Ok i used to program with basic when i was a kid so I was looking forward to this but I'm having much difficulty installing all this stuff. For example:
SIMPLE_HOME needs to point to the root directory of the Simple source distribution plus /dist plus the one of /linux, /mac or /windows (e.g. /home/name/simple/dist/linux)
Theres no such directory on my machine, furthermore in the how to create a simple application article the SIMPLE_HOME needs to point to the root of the simple installation.
I tried to run simplec anyway because it was sitting in the simple installation directory and it gave me allot of text output and then an error:
.................;E:\Android\SimpleCompiler?.jar com.goog le.devtools.simple.compiler.Main whetever Exception in thread "main" java.lang.NullPointerException?
ons.java:42)....................Yes im super green, is there someone who can help me out?
Ok update, my friend found a solution using google translate on Lenz1986s link, thanks a million for that lenz!
We got it working by typing "newsimpleproject.bat com.example.Test" first and then simplec "Test/simpleproject/project.properties"
I still only vaguely understand what just happens but at least we are one step further!
c:\Users\admin\Desktop\simple>ant clean all Buildfile: build.xml does not exist! Build failed
why ???
why is there no support being its supposed ro be basic and all?
I've install all above package But when I process ant clean all command get "build.xml does not exist build fail" How can I fix this issue??
Why does it have to be so difficult to set up the compiler? You would think the compiler would come with better instructions or better yet, as a program file ready to go.
ya good
I have installed all the appropriate files (I think) and I have set the environment variables, but I am confused as to how I can actually get the compiler started. Can anyone give me some step by step instructions as to how to install simple on a Windows XP? Thanks in advance.
HI, I have this error (Ubuntu 10.04) <pre> ../simplec Tetris/simpleproject/project.properties ________Compiling com/google/devtools/simple/samples/tetris/Square.simple ________Compiling com/google/devtools/simple/samples/tetris/UpStep.simple ________Compiling com/google/devtools/simple/samples/tetris/DownStep.simple ________Compiling com/google/devtools/simple/samples/tetris/Brick.simple ________Compiling com/google/devtools/simple/samples/tetris/InvertedEll.simple ________Compiling com/google/devtools/simple/samples/tetris/Ell.simple ________Compiling com/google/devtools/simple/samples/tetris/Tetris.simple ________Compiling com/google/devtools/simple/samples/tetris/Bar.simple ________Compiling com/google/devtools/simple/samples/tetris/Podium.simple ________Generating Manifest File ________Packaging Tetris 8-mar-2011 15.04.27 com.google.devtools.simple.util.Execution execute INFO: ____Executing /pub/Linux/Android/android-sdk-linux_x86/platforms/android-1.5/tools/aapt package -v -f -M /pub/USR/SimpleAndroid/samples/Tetris/simpleproject/../build/AndroidManifest.xml -S /pub/USR/SimpleAndroid/samples/Tetris/simpleproject/../build/res -A /pub/USR/SimpleAndroid/samples/Tetris/simpleproject/../assets -I /pub/Linux/Android/android-sdk-linux_x86/platforms/android-1.5/android.jar -F /pub/USR/SimpleAndroid/samples/Tetris/simpleproject/../build/deploy/Tetris.ap_ Found 1 custom asset file in /pub/USR/SimpleAndroid/samples/Tetris/simpleproject/../assets Locale/Vendor pairs: /
Files: assets/empty.png Src: /pub/USR/SimpleAndroid/samples/Tetris/simpleproject/../assets/empty.png drawable/simple.png Src: /pub/USR/SimpleAndroid/samples/Tetris/simpleproject/../build/res/drawable/simple.png AndroidManifest.xml Src: /pub/USR/SimpleAndroid/samples/Tetris/simpleproject/../build/AndroidManifest.xml Including resources from package: /pub/Linux/Android/android-sdk-linux_x86/platforms/android-1.5/android.jar applyFileOverlay for drawable applyFileOverlay for layout applyFileOverlay for anim applyFileOverlay for xml applyFileOverlay for raw applyFileOverlay for color applyFileOverlay for menu (processed image /pub/USR/SimpleAndroid/samples/Tetris/simpleproject/../build/res/drawable/simple.png: 103% size of source) (new resource id simple from drawable/simple.png #generated) Opening '/pub/USR/SimpleAndroid/samples/Tetris/simpleproject/../build/deploy/Tetris.ap_' Writing all files... 'assets/empty.png' (not compressed) 'res/drawable/simple.png' (not compressed) 'AndroidManifest.xml' (compressed 66%) 'resources.arsc' (not compressed) Generated 4 files Included 0 files from jar/zip files. Checking for deleted files Done! Exception in thread "main" java.lang.NoClassDefFoundError: com/android/apkbuilder/ApkBuilder at com.google.devtools.simple.compiler.Compiler.compile(Compiler.java:415) at com.google.devtools.simple.compiler.Main.main(Main.java:45) Caused by: java.lang.ClassNotFoundException: com.android.apkbuilder.ApkBuilder at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) ... 2 more </pre>
xp and ubuntu 10.04: Buildfile: build.xml not exist! Build failed
fortunatly it shoud be easy!!!!!!!! i am building programs for pc since 20 jears in basic and i can't even start writing code for android!!!!!
my codes are not running