|
Compiling Host for the C programmer June 23, 2010 10:59AM |
Registered: 15 years ago Posts: 7,616 |
$ ant build
Buildfile: build.xml
init:
build:
[echo] Reprap: /home/mah/RepRap/reprap-reprap/host/build.xml
[javac] Compiling 86 source files to /home/mah/RepRap/reprap-reprap/host/bin
[javac] /home/mah/RepRap/reprap-reprap/host/src/org/reprap/Attributes.java:3: package javax.media.j3d does not exist
[javac] import javax.media.j3d.Appearance;
[javac] ^
| Generation 7 Electronics | Teacup Firmware | RepRap DIY |
|
Re: Compiling Host for the C programmer June 24, 2010 06:30PM |
Admin Registered: 18 years ago Posts: 476 |

|
Re: Compiling Host for the C programmer June 25, 2010 06:48AM |
Registered: 15 years ago Posts: 7,616 |
Quote
The key ant command is ant clean jar. This (still) works for me in Ubuntu 10.04 amd64.
Quote
There is a script called host-package-release which does all the work needed to create a reprap-mendel-20100624.zip "release" file, including compiling the reprap host code into Java bytecode and creating a .jar containing it.
| Generation 7 Electronics | Teacup Firmware | RepRap DIY |
|
Re: Compiling Host for the C programmer June 25, 2010 07:49AM |
Registered: 15 years ago Posts: 7,616 |
| Generation 7 Electronics | Teacup Firmware | RepRap DIY |
|
Re: Compiling Host for the C programmer June 25, 2010 12:29PM |
Admin Registered: 18 years ago Posts: 476 |
mkdir ~/repraptest cd repraptest svn -q co h\ttps://reprap.svn.sourceforge.net/svnroot/reprap/trunk/reprap/host svn -q co h\ttps://reprap.svn.sourceforge.net/svnroot/reprap/trunk/mendel cd host ./host-package-release
cd release/reprap-mendel-2*
cat >reprap.sh
#!/bin/bash
# reprap-host -- runs RepRap Java host with an appropriate classpath
REPRAP_RAM_SIZE=1024M # Amount of RAM to allow Java VM to use
REPRAP_DIR=`dirname $0` # reprap.jar and stl file
SHARED_JAVA_DIR=/usr/share/java # System-wide shared java library directory
cd $REPRAP_DIR
# build up classpath
# when we move to OpenJDK/Java-6 these next few can be replaced with wildcard
# *.jar and we will not need swing-layout any more.
CLASSPATH=./reprap.jar
CLASSPATH=$CLASSPATH:./j3d-org-java3d-all.jar
CLASSPATH=$CLASSPATH:${SHARED_JAVA_DIR}'/*'
CLASSPATH=$CLASSPATH:.
# invoke the code
echo "$0: java -cp $CLASSPATH -Xmx$REPRAP_RAM_SIZE org.reprap.Main"
java -cp $CLASSPATH -Xmx$REPRAP_RAM_SIZE org.reprap.Main
ctrl-D
chmod +x reprap.sh
|
Re: Compiling Host for the C programmer June 25, 2010 02:53PM |
Registered: 15 years ago Posts: 7,616 |
Quote
So (for me, at least!) I can build a release .zip file including the design files and the reprap host software by doing[...]
Quote
and to get a Linux-specific wrapper
| Generation 7 Electronics | Teacup Firmware | RepRap DIY |
|
Re: Compiling Host for the C programmer June 25, 2010 03:04PM |
Admin Registered: 18 years ago Posts: 476 |
Yes, the wiki should be fine, unless the package is really *huge* .Quote
Traumflug
Is there a good place for uploading this package other than one of the generic sharehosters (rapidshare, megaupload, ...)? The Wiki?
So... are you proposing uploading a modified reprap-mendel-20100625.zip that works on 64bit Windows machines?Quote
Traumflug
Actually, it was a Windows user asking for an up-to-date package. :-)
|
Re: Compiling Host for the C programmer June 26, 2010 05:36AM |
Registered: 15 years ago Posts: 7,616 |
Quote
Yes, the wiki should be fine, unless the package is really *huge*.
Quote
So... are you proposing uploading a modified reprap-mendel-20100625.zip that works on 64bit Windows machines?
| Generation 7 Electronics | Teacup Firmware | RepRap DIY |
|
Re: Compiling Host for the C programmer June 26, 2010 09:56AM |
Registered: 15 years ago Posts: 7,616 |
|
Re: Compiling Host for the C programmer June 27, 2010 05:26PM |
Registered: 15 years ago Posts: 103 |
|
Re: Compiling Host for the C programmer June 27, 2010 11:28PM |
Admin Registered: 18 years ago Posts: 476 |
|
Re: Compiling Host for the C programmer June 28, 2010 05:07AM |
Admin Registered: 18 years ago Posts: 476 |
Quote
Traumflug
... having a daily build working on all platforms uploaded somewhere would be just great, but I don't volunteer.
Let's see how http://jonathan.reprap.org/nightly-builds/ works for a few days. It just uses the host-release-package script, so "working on all platforms" is not yet true for 64bit systems.|
Re: Compiling Host for the C programmer June 28, 2010 02:11PM |
Registered: 15 years ago Posts: 7,616 |
| Generation 7 Electronics | Teacup Firmware | RepRap DIY |
|
Re: Compiling Host for the C programmer June 29, 2010 05:31AM |
Registered: 15 years ago Posts: 7,616 |
Quote
It just uses the host-release-package script, so "working on all platforms" is not yet true for 64bit systems.
--- reprap 2010-06-28 09:48:20.000000000 +0200 +++ reprap.patched 2010-06-29 11:02:53.248162062 +0200 @@ -19,4 +19,4 @@ CLASSPATH=$CLASSPATH:. # invoke the code -java -cp $CLASSPATH -Xmx$REPRAP_RAM_SIZE -Djava.library.path=. org.reprap.Main +java -cp $CLASSPATH -Xmx$REPRAP_RAM_SIZE -Djava.library.path=/usr/lib/jni:/usr/lib:. org.reprap.Main
| Generation 7 Electronics | Teacup Firmware | RepRap DIY |