Difference between revisions of "CompilingSuse"

From Inkscape Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
== OpenSuSE 12.1 ==
  zypper install autoconf automake intltool
  zypper install gcc-c++ gtkmm24-devel gsl-devel boost-devel popt-devel
  zypper install libtool liblcms-devel libxml2-devel libxslt-devel libMagick++-devel libpng14-devel
You may also want:
  zypper install libwpg-devel dbus-1-glib-devel
To import some additional formats install UniConvertor, available in [http://download.opensuse.org/repositories/graphics/ graphics] repository (though not working at the moment 2011/10/05)
== OpenSUSE 11.2 ==
== OpenSUSE 11.2 ==



Revision as of 10:28, 6 October 2011

OpenSuSE 12.1

  zypper install autoconf automake intltool
  zypper install gcc-c++ gtkmm24-devel gsl-devel boost-devel popt-devel
  zypper install libtool liblcms-devel libxml2-devel libxslt-devel libMagick++-devel libpng14-devel

You may also want:

  zypper install libwpg-devel dbus-1-glib-devel

To import some additional formats install UniConvertor, available in graphics repository (though not working at the moment 2011/10/05)

OpenSUSE 11.2

It's easiest to use zypper from the command line to install the required packages. So log in as root and execute this:

  zypper install autoconf automake intltool
  zypper install gcc-c++ glibmm2 gtkmm24-devel gsl-devel boost-devel popt-devel
  zypper install libtool liblcms liblcms-devel libxml2-devel libxslt-devel libMagick++-devel libpng-devel 

Now you're ready to download the source code, for example by using bazaar. This has been explained elsewhere on this wiki. Please be patient, because bazaar will download around 250 MB. After downloading the source code, change to that directory and run

  ./autogen.sh
  ./configure
  make -j4     # Assuming you have a quadcore. -j4 tells make to use 4 cores
  make install # inkscape need to be installed at least once, to put all icons
               # in the correct shared directories. After that you can simply 
               # run inkscape from the start menu or execute it directly
               # in the source directory (src/inkscape)

Have fun!

OpenSUSE 10.2

You need to install these packages to pass the compilation of SVN trunk:

  • gtkmm-devel
  • glibmm-devel
  • cairomm-devel
  • libsigc-2.0-devel
  • popt-devel
  • gc-6.6 (Boehm's collector)
  • intltool
  • + their dependencies
  • AND automake-1.8.5 or any other then 1.9.6 that is installed by default.
  • and any other optionally required packages

If you compile automake-1.8.5 by yourself then be sure that you install it to /usr prefix and not to /usr/local. If you still install to /usr/local, then instead of running "autogen.sh" on svn version, run:

  ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I /usr/share/aclocal" ./autogen.sh

Then run ./configure; make; sudo make install as usually.

Thanks go to Dobey who helped a lot to figure out what was the problem.

Suse 9.0

One of the challenges with Suse 9.0 is the lack of a distro provided gtkmm2 and libsigc++ packages.

Best place to find them: ftp://ftp.gwdg.de/pub/linux/misc/apt4rpm/suse/usr-local-bin/9.0/ [ This URL does not exist anymore :-( ]

Suse 9.1 includes both now in the GNOME supplemental downloads.

Note that for SuSE the gtk+2 packages are called gtk2. The gtk+2 2.4 package is not provided via Yast but can be found via rpmseek as gtk2 and gtk2-devel

To find the .pc files, I had to set:

setenv PKG_CONFIG_PATH/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig/

In SuSE 9.1 I ran into this error:

  configure.in:25: required file `./ltmain.sh' not found

Copying /usr/share/libtool/ltmain.sh into the top directory fixed it.

For 0.40cvs the libgc dependency is added. In SuSE 9.1 this is package 'boehm-gc', but it doesn't work - you need to compile from source. Download from:

  http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc6.3.tar.gz

Then configure it with the command:

  $ ./configure --enable-cplus-plus

SuSE 9.1 also does not have libsigc++ 2.0; I couldn't find an rpm for it so ended up having to compile it from source, from http://prdownloads.sourceforge.net/libsigc/libsigc++-2.0.3.tar.gz

I also had to compile gtkmm 2.4 and glib 2.4 from source; download them from ftp://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.4/ and http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.4/

Looks like these packages are also available from here:ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.1-i386/RPMS.gnome/

Also, stuff got installed to /opt/gnome/bin/, so I had to also `export PATH=$PATH:/opt/gnome/bin/`