On Sat, Feb 7, 2009 at 12:10 PM, Ted Gould <ted@...11...> wrote:
On Tue, 2009-01-27 at 18:20 +0100, Sergey Esenov wrote:
On Tue, Jan 27, 2009 at 6:09 PM, Sergey Esenov <sergey.esenov@...400...> wrote:
Last year Sun Microsystems released JavaFX Production Suite (together with JavaFX 1.0) which have Adobe Photoshop CS3 and Adobe Illustrator CS3 plugins for exporting graphical assets into JavaFX format.
Sorry! I've forgotten to provide attachment!
Could you provide the files and the changes to the other files as a patch and/or DVCS branch somewhere? That'd probably make it easier for people to apply it and test.
Thanks, Ted
Hi all,
Yes, you can find the patch (inkscape_jfx_jfz.patch) in attachment. In this patch I am trying to support both Linux and Windows platforms. Attachment contains ... inkscape_jfx_jfz.patch <--- patch for inkscape config.h <--- config.h file for libzip package for Windows platform libzip.def <--- definition file for libzip library for Windows platform
LINUX. Linux installation is easy if you have already all infrastructure installed, i.e. you are able to build SVN Checkout source of inkscape and you have libzip 0.9 (http://nih.at/libzip/) installed.
I would do this like ...
0. Go to the working directory.
1. svn co https://inkscape.svn.sourceforge.net/svnroot/inkscape/inkscape/trunk inkscape Copy patch in attachment into working directory.
2. cd inkscape patch -p1 < ../inkscape_jfx_jfz.patch
3. ./autogen.sh
4. mkdir build; cd build LIBS=-lzip ../configure --prefix=/opt/inkscape make su -c "make install"
5. /opt/inkscape/bin/inkscape to start running new executable
WINDOWS. I've used instructions from http://wiki.inkscape.org/wiki/index.php/Win32Port, i.e I have mingw (4.2.1) and the last devlibs installed. Additionally I've installed MSYS trying to build libzip for Windows. The configure script doesn't work for me, so I 've built libzip by hands under MSYS (may be this is not optimal way) :
1. Untar libzip-0.9.tar.bz2 Copy config.h from attachment into libzip-0.9 directory. cd libzip-0.9/lib
2. gcc -DHAVE_CONFIG_H -DPIC -DDLL_EXPORT -I. -I.. -I/c/devlibs/include -g -O2 -c *.c
3. ar rcs libzip.a *.o
4. gcc -shared -o libzip.dll -Wl,--out-implib=libzip.dll.a -Wl,--export-all-symbols \ -Wl,--enable-auto-import -Wl,--whole-archive libzip.a \ -Wl,--no-whole-archive -L/c/devlibs/lib -lz 5. strip libzip.dll 6. Copy libzip.def from attachment into /c/devlibs/include Copy libzip.dll into /c/devlibs/bin Copy libzip.dll.a into /c/devlibs/lib 7. Patching fresh checkout of inkscape like .. cd /path/to/inkscape patch -p1 < /location/of/the/inkscape_jfx_jfz.patch
Then I've followed usual procedure for Windows: in 'Command Prompt' window: mingwenv.bat g++ -o btool.exe buildtool.cpp btool inkscape\inkscape.exe
That's it!
A few notes about patch: 1. Windows support is very preliminary. I made some dirty hacks that should be rewritten, like the handling of the fonts ( this is my first experience with Windows platform:) 2. Due to bug (I believe) in JavaFX handling of linear gradient I decided to "proportional: false" attribute setting at least until bug is fixed. 3. Radial gradient handling is just a dirty hack! Any proposals? 4. I did not check return codes in some places that is not good for production version of inkscape 5. May be the code should be cleaned. 6. It is not possible to define (via some sort of configuration panel) how you want to change of this plugin (for example, concerning font embedding into archive). Volunteers?
Good luck!
Sergey