Stop data retention! Click here & act! Are you a webmaster and want to participate? Here you can find all necessary material for your website - Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:
Chris Karakas Online Forum Index Karakas Online
 FAQFAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
How to compile Xara LX for Linux



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
   Chris Karakas Online Forum Index -> Computer Graphics Forum RSS Feed of this Forum
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea  View previous topic :: View next topic  
Author Message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6267
Location: Outer Space

PostPosted: Mon Nov 06, 2006 9:45 pm    Post subject: How to compile Xara LX for Linux
Reply with quote

If you are interested only in the DOWNLOAD, here it is: download Xara LX (a 100MB monolith! Go get some coffee. Mr. Green)

Image

Xara X has been a commercial shipping Windows product for 10 years (and non-Windows versions go back before that). It's a modern, object orientated design that's highly stable, and has gained hundreds of thousands of users.

Xara Xtreme for Linux:
  • Is very fast, very slick to use.
  • Offers some of the most powerful graphics tools available.
  • Is simple to use and learn.
  • Has a clean, un-cluttered user interface. Few floating dialogs, palettes, menus etc.
  • Is able to create a huge range of outstanding graphics.
  • Has a huge resource of learning material, tutorials, movies, tips and a very active enthusiastic and growing user community.


The installation instructions for Xara LX stated:
Quote:
Open quotePrerequisites

  • GCC\G++ (preferably > 3.4.0)
  • pkg-config
  • GTK+ (including developer libraries)
  • wxWidgets 2.6.3 (see below), and any prequisites it has (note 2.6.3-rc2 will do, as 2.6.3 has not yet been released)
  • gettext (v0.14.3 or greater)
  • libtool
  • automake (v1.6 or greater)
  • autoconf (v2.59 or greater)
  • libpng (v1.2.8 )
  • libjpeg (v6b)
  • zip
  • perl
  • md5sum
  • libxml2 (2.6.0 or greater)


Get and compile the wxWidgets source
You will ned wxWidgets 2.6.3 or later - we recommend using 2.6.3 release (WX_2_6_BRANCH also works, CVSHEAD - i.e. 2.7 is untested). Once the source has been retrieved, you will need to build them. Xara Xtreme uses the Unicode version of the library (and you can add --enable-debug, if you're intending to build a debug version of Xara Xtreme), this means that these options must be specified on the configure command line.

Code:

./configure --enable-unicode


(this will put the built library in /usr/local, you may need to add --prefix=/usr depending on your Linux distribution)

Code:

make
make install


You will need to be root to perform the "make install".
Compile the Xara Xtreme application
The main Xara Xtreme application can be compiled in the usual configure/make way. You should not need to run autoconf if you downloaded the source from the tar file (as opposed to getting it from subversion).

Code:

autoreconf -f -i -s
 ./configure (once agin you can specify the install location using --prefix)
 make
 make install (optional, you willl need to be root; this just copies xaralx into /usr/local/bin)


You may want to add "--enable-debug" to the ./configure option above, to get debugging. Note this will noticeably slow the application down but will make it much easier to debug. You can also build a static executable using the "--enable-static-exec" flag, though this is not recommended unless you plan to distribute the consequent binary. Add "--enable-filters" to build the xarlib filter library, and "--enable-svgfilter" to build the SVGFitler. Close quote


(to be cont'ed... stay tuned Wink )
_________________
Regards

Chris Karakas
www.karakas-online.de


Last edited by chris on Tue Nov 07, 2006 12:34 am; edited 4 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6267
Location: Outer Space

PostPosted: Mon Nov 06, 2006 10:09 pm    Post subject:
Reply with quote

Well, that's what the installation instructions said - reality was a bit different...

Here it is, the compilation Odyssey of Xara LX:

I used:

Code:

./configure --prefix=/usr


Here is the output:

Code:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for /proc/self/maps... yes
checking whether everything is installed to the same prefix... yes
checking whether binary relocation support should be enabled... yes
checking for pthread_getspecific in -lpthread... yes
checking whether binary relocation should use threads... yes
checking Automake (1.9.1)... Version OK
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking Compiler... gcc < 3.4.0, PreCompiled headers disabled
checking for ranlib... ranlib
checking whether byte ordering is bigendian... no
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for void*... yes
checking size of void*... 4
checking for long long... yes
checking size of long long... 8
checking for long... yes
checking size of long... 4
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for __int64... no
checking size of __int64... 0
checking wxWidgets version... 2.6.3
checking wxWidgets GTK usage... found
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK... yes
checking wxWidgets wxrc utility... not found, disabling international build
checking libxml2 version... 2.6.12
checking freetype version... 9.7.3
checking for PANGOX... yes
checking Linker... GNU ld
checking CDraw location... libs/x86
configure: creating ./config.status
config.status: creating Makefile
config.status: creating PreComp/Makefile
config.status: creating Kernel/Makefile
config.status: creating wxOil/Makefile
config.status: creating tools/Makefile
config.status: creating wxXtra/Makefile
config.status: creating xarlib/Makefile
config.status: creating xarlib/Xar.pc
config.status: creating po/Makefile.in
config.status: executing depfiles commands


After that, I typed

Code:

make


upon which I got many blocks of output like this one:

Code:

if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"XaraLX\" -DVERSION=\"0.7\" -DENABLE_BINRELOC= -DHAVE_LIBPTHREAD=1 -DBR_PTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOIDP=4 -DSIZEOF_LONG_LONG=8 -DSIZEOF_LONG=4 -DSIZEOF_INT=4 -DSIZEOF_SHORT=2 -DSIZEOF___INT64=0  -I. -I.    -Wall -Wno-unknown-pragmas -g -fexceptions -O3   -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -I/opt/gnome/include/pango-1.0 -I/usr/X11R6/include -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include   -I/usr/include/freetype2 -I/opt/gnome/include/gtk-2.0 -I/opt/gnome/lib/gtk-2.0/include -I/usr/X11R6/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include   -I/usr/include/libxml2  -I../PreComp -I../wxOil -I.././Kernel -I.././wxOil -I.././wxOil/Res -I.././tools -I.././GDraw -I.././PreComp -I.././wxXtra -DUSE_NATIVE_XLONG -DBUILDSHADOWS -DOLD_MATRIX_TRANSFORMATIONS -DVECTOR_STROKING -DEXCLUDE_FROM_XARALX -DNEW_SHADOW_RENDER -DNO_XARACMS -DNEW_FEATURES -DSHOWPORTNOTE -DDO_EXPORT  -MT libwxOil_a-camview.o -MD -MP -MF ".deps/libwxOil_a-camview.Tpo" -c -o libwxOil_a-camview.o `test -f 'camview.cpp' || echo './'`camview.cpp; \
then mv -f ".deps/libwxOil_a-camview.Tpo" ".deps/libwxOil_a-camview.Po"; else rm -f ".deps/libwxOil_a-camview.Tpo"; exit 1; fi


from which we see that it needs the libraries from:

  • /opt/gnome/include/pango-1.0
  • /usr/X11R6/include
  • /opt/gnome/include/glib-2.0
  • /opt/gnome/lib/glib-2.0/include
  • /usr/include/freetype2
  • /opt/gnome/include/gtk-2.0
  • /opt/gnome/lib/gtk-2.0/include
  • /opt/gnome/include/atk-1.0
  • /usr/include/freetype2/config
  • /usr/include/libxml2


I got an error in compiling and I thought it might be because I had not managed to install the libstdc++-devel package in the same (new) version as libstdc++. So I upgraded libstdc++-devel too. I had (more or less) to also upgrade the following:

  • gcc-3.3.5-5.i586.rpm
  • cpp-3.3.5-5.i586.rpm
  • gcc-c++-3.3.5-5.i586.rpm
  • gcc-g77-3.3.5-5.i586.rpm
  • libgcj-devel-3.3.5-5.i586.rpm
  • libgcj-3.3.5-5.i586.rpm
  • libgcc-3.3.5-5.i586.rpm
  • gcc-java-3.3.5-5.i586.rpm
  • gnat-3.3.5-5.i586.rpm
  • gnat-runtime-3.3.5-5.i586.rpm
  • gcc-info-3.3.5-5.i586.rpm
  • gcc-locale-3.3.5-5.i586.rpm
  • libobjc-3.3.5-5.i586.rpm
  • gcc-objc-3.3.5-5.i586.rpm
  • libstdc++-3.3.5-5.i586.rpm
  • libstdc++-devel-3.3.5-5.i586.rpm


and the following ones more out of pure lust, than of necessity:

  • cppunit-1.10.2-7.i586.rpm
  • cppunit-devel-1.10.2-7.i586.rpm
  • boehm-gc-3.3.5-5.i586.rpm


After that I got the error:

Code:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.


and looking into config.log, I found:

Code:

configure:2389: gcc    conftest.c  >&5
/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld: unrecognized option '--as-needed'
/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
configure:2392: $? = 1


that is, I got the error from ld:

Code:

ld: unrecognized option '--as-needed'



which, according to:


http://www.mail-archive.com/bug-binutils@gnu.org/msg01636.html


means that my binutils were too old. So I upgraded binutils too:

Code:

rpm -Uhv /cdrw/suse/i586/binutils-2.15.94.0.2.2-3.i586.rpm


and tried again.

(to be cont'ed...stay tuned Wink )
_________________
Regards

Chris Karakas
www.karakas-online.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6267
Location: Outer Space

PostPosted: Mon Nov 06, 2006 10:16 pm    Post subject:
Reply with quote

Now, a new call to:

Code:

./configure --prefix=/usr


gave the output:

Code:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for /proc/self/maps... yes
checking whether everything is installed to the same prefix... yes
checking whether binary relocation support should be enabled... yes
checking for pthread_getspecific in -lpthread... yes
checking whether binary relocation should use threads... yes
checking Automake (1.9.1)... Version OK
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking Compiler... gcc < 3.4.0, PreCompiled headers disabled
checking for ranlib... ranlib
checking whether byte ordering is bigendian... no
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for void*... yes
checking size of void*... 4
checking for long long... yes
checking size of long long... 8
checking for long... yes
checking size of long... 4
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for __int64... no
checking wxWidgets version... 2.6.3
checking wxWidgets GTK usage... found
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK... yes
checking wxWidgets wxrc utility... not found, disabling international build
checking libxml2 version... 2.6.12
checking freetype version... 9.7.3
checking for PANGOX... yes
checking Linker... GNU ld
checking CDraw location... libs/x86
configure: creating ./config.status
config.status: creating Makefile
config.status: creating PreComp/Makefile
config.status: creating Kernel/Makefile
config.status: creating wxOil/Makefile
config.status: creating tools/Makefile
config.status: creating wxXtra/Makefile
config.status: creating xarlib/Makefile
config.status: creating xarlib/Xar.pc
config.status: creating po/Makefile.in
config.status: executing depfiles commands


After typing

Code:

make


this time, I got:

Code:

...

Long Output

...

make[1]: Leaving directory `/usr/src/XaraLX-0.7r1751/tools'
make[1]: Entering directory `/usr/src/XaraLX-0.7r1751'
g++ -Wl,--start-group Kernel/libKernel.a wxOil/libwxOil.a tools/libTools.a wxXtra/libwxXtra.a -Wl,--end-group --debug -L./libs/x86 -pthread   -L/usr/X11R6/lib  -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6  -lpthread  -L/usr/lib -lxml2 -lz -lpthread -lm -lCDraw -o XaraLX
/usr/X11R6/lib/libz.a(infutil.o)(.data+0x0): multiple definition of `inflate_mask'
Kernel/libKernel.a(libKernel_a-zinflate.o)(.data+0x0):/usr/src/XaraLX-0.7r1751/Kernel/iprofile.h:247: first defined here
collect2: ld returned 1 exit status
make[1]: *** [XaraLX] Error 1
make[1]: Leaving directory `/usr/src/XaraLX-0.7r1751'
make: *** [all-recursive] Error 1


It turned out that I had a libz.a under /usr/X11R6/lib, although the "right" libz.a, the one from the zlib-devel package,
was under:

/usr/lib/libz.a

The /usr/X11R6/lib/libz.a file was not owned by any package. It probably belonged to some old version of XFree86
that I was compiling from source back in 2000-2001...

Well, maybe it came with the XFree86-3.x RPM, as suggested in

http://mail.gnome.org/archives/gnome-list/1998-June/msg00448.html

who knows... Anyway, I deleted it and tried again.

This time it worked!

I typed

Code:

make install


and I got:

Code:

Making install in wxXtra
make[1]: Entering directory `/usr/src/XaraLX-0.7r1751/wxXtra'
make[2]: Entering directory `/usr/src/XaraLX-0.7r1751/wxXtra'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/src/XaraLX-0.7r1751/wxXtra'
make[1]: Leaving directory `/usr/src/XaraLX-0.7r1751/wxXtra'
Making install in wxOil
Testing for new resources and svn version
Nothing new
make[1]: Entering directory `/usr/src/XaraLX-0.7r1751/wxOil'
make  install-am
Testing for new resources and svn version
Nothing new
make[2]: Entering directory `/usr/src/XaraLX-0.7r1751/wxOil'
Testing for new resources and svn version
Nothing new
make[3]: Entering directory `/usr/src/XaraLX-0.7r1751/wxOil'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/src/XaraLX-0.7r1751/wxOil'
make[2]: Leaving directory `/usr/src/XaraLX-0.7r1751/wxOil'
make[1]: Leaving directory `/usr/src/XaraLX-0.7r1751/wxOil'
Making install in Kernel
make[1]: Entering directory `/usr/src/XaraLX-0.7r1751/Kernel'
make[2]: Entering directory `/usr/src/XaraLX-0.7r1751/Kernel'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/src/XaraLX-0.7r1751/Kernel'
make[1]: Leaving directory `/usr/src/XaraLX-0.7r1751/Kernel'
Making install in tools
make[1]: Entering directory `/usr/src/XaraLX-0.7r1751/tools'
make[2]: Entering directory `/usr/src/XaraLX-0.7r1751/tools'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/src/XaraLX-0.7r1751/tools'
make[1]: Leaving directory `/usr/src/XaraLX-0.7r1751/tools'
make[1]: Entering directory `/usr/src/XaraLX-0.7r1751'
make[2]: Entering directory `/usr/src/XaraLX-0.7r1751'
test -z "/usr/bin" || mkdir -p -- "/usr/bin"
  /usr/bin/ginstall -c 'XaraLX' '/usr/bin/XaraLX'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/src/XaraLX-0.7r1751'
make[1]: Leaving directory `/usr/src/XaraLX-0.7r1751'


Bingo! Xara LX was on my system! Time for a cigar! Laughing
_________________
Regards

Chris Karakas
www.karakas-online.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6267
Location: Outer Space

PostPosted: Mon Nov 06, 2006 10:33 pm    Post subject:
Reply with quote

As you can see from the output of "make install" above, the only thing that is installed is the executable in /usr/bin/XaraLX. So you only have to download Xara LX (Attention: 100MB download!), put it in your home directory, or /usr/bin (if you are root and want to install it somewhere centrally), then just type

Code:

XaraLX


in an X terminal - and be happy! Very Happy

Here's how it looks like:

See Xara Xtreme for Linux (Xara LX) for an enlargement.
Image
_________________
Regards

Chris Karakas
www.karakas-online.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Pantomas
Private
Private


Joined: 10 Feb 2012
Posts: 3

PostPosted: Fri Feb 10, 2012 5:40 am    Post subject:
Reply with quote

Many thanks for letting me know about it. You fixed my problem finally. That is a great tutorial!
Back to top
View user's profile Send private message
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea 
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
   Chris Karakas Online Forum Index -> Computer Graphics Forum
Page 1 of 1
This page contains valid HTML 4.01 Transitional - click here to check it!
This page contains a valid CSS - click here to check it!

 

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group