Mobileread
How to build Sunrise XP
#1  codeb 04-25-2007, 10:58 PM
Hi Laurens: I have looked everywhere but there is no place where I can find info on how to build Sunrise XP. I have some idea and would like to customize Sunrise XP. So it would be really appreciated if you can tell me your development enviroment for Sunrise XP.

Thank you very much for creating this great freeware

#2  Laurens 04-26-2007, 06:52 AM
Note that Sunrise XP is not open-source, but Sunrise Java version is. You can download the source release here: http://sourceforge.net/project/showfiles.php?group_id=151061&package_id=166933. Unfortunately I don't have the time to write any instructions. There's an Ant build file in the source release from which you can at least build the binary.

#3  codeb 04-27-2007, 01:11 AM
Do you mean using only the source codes in the java folder of the source release I can build Sunrise?

Thank you.

#4  Laurens 04-27-2007, 05:17 AM
Quote codeb
Do you mean using only the source codes in the java folder of the source release I can build Sunrise?

Thank you.
Using Ant, yes.

#5  codeb 04-28-2007, 02:42 AM
Sorry for being such a newbie :-) but why are there C++ codes and others in the source release? Do I also need the C++ codes to build Sunrise?

Just to really make sure. Thank you.

#6  Laurens 04-28-2007, 03:39 AM
C++ is for HotSync conduit, executable and some other support stuff. You don't strictly need them.

#7  akfedux 07-04-2007, 09:04 AM
Quote codeb
Do you mean using only the source codes in the java folder of the source release I can build Sunrise?

Thank you.
Hi, this is short instriction:

I build on my 64bit os etch.

/tmp/sunrise-source-0.42j/java# ant compile
Buildfile: build.xml

compile:
[javac] Compiling 352 source files to /tmp/sunrise-source-0.42j/java/classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[copy] Copying 63 files to /tmp/sunrise-source-0.42j/java/classes
[copy] Copied 1 empty directory to 1 empty directory under /tmp/sunrise-source-0.42j/java/classes

BUILD SUCCESSFUL
Total time: 30 seconds

/tmp/sunrise-source-0.42j/java# ant jar
Buildfile: build.xml

compile:

jar:
[mkdir] Created dir: /tmp/sunrise-source-0.42j/java/build
[jar] Building jar: /tmp/sunrise-source-0.42j/java/build/sunrise.jar
[jar] Building MANIFEST-only jar: /tmp/sunrise-source-0.42j/java/sunrise-desktop.jar
[jar] Building MANIFEST-only jar: /tmp/sunrise-source-0.42j/java/sunrisecl.jar

BUILD SUCCESSFUL
Total time: 7 seconds


Replace old gtk libs with newer and it will be workin.
libswt-atk-gtk-3235.so
libswt-gtk-3235.so
libswt-pi-gtk-3235.so

#8  niun 09-25-2010, 04:53 PM
This thread is old, but maybe, the user akfedux or some java/linux crack is reading this: I think, I have problems with this step:
Quote akfedux
Replace old gtk libs with newer and it will be workin.
libswt-atk-gtk-3235.so
libswt-gtk-3235.so
libswt-pi-gtk-3235.so
The Build process with ant compile and ant jar is working, but when I try to run sunrise-desktop.jar I get the following Error (the "no swt-win32-3206" part leads me to my assumption, that I should follow the quoted instruction from akfedux, but I do not know where to replace these gtk libs).

Code
:/tmp/sr/java$ java -jar sunrise-desktop.jar
java.lang.UnsatisfiedLinkError: no swt-win32-3206 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681) at java.lang.Runtime.loadLibrary0(Runtime.java:840) at java.lang.System.loadLibrary(System.java:1047) at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source) at org.eclipse.swt.internal.win32.OS.<clinit>(Unknown Source) at org.eclipse.swt.widgets.Widget.<clinit>(Unknown Source) at com.distantchord.swt.Window.<init>(Unknown Source) at com.distantchord.sunrise.ui.MainWindow.<init>(Unknown Source) at com.distantchord.sunrise.apps.Desktop.run(Unknown Source) at com.distantchord.sunrise.apps.Desktop.main(Unknown Source)
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.swt.internal.win32.OS at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source) at com.distantchord.swt.SWTUtil.showExceptionInfo(Unknown Source) at com.distantchord.sunrise.apps.Desktop.run(Unknown Source) at com.distantchord.sunrise.apps.Desktop.main(Unknown Source)

#9  GeoffC 09-26-2010, 05:56 AM
niun

Welcome to mobileread ....

The thread is very old, and the user you have mentioned hasn't been on the forum for equally the same amount of time. Hopefully someone will look in, but have a look in other threads to see if there is a solution elsewhere ..

Good luck

Today's Posts | Search this Thread | Login | Register