Difference between revisions of "Compiling Inkscape"

From Inkscape Wiki
Jump to: navigation, search
Line 98: Line 98:
 
  export CFLAGS='-g -O0 -Wall'
 
  export CFLAGS='-g -O0 -Wall'
 
  ./configure
 
  ./configure
 
[http://cai01.1234556789.com ÁåÉù][http://wwa1.91i.net/02.htm LEDÏÔʾÆÁ][http://jii01.zhiliaotuofa.com ÊÖ»úÁåÉù][http://lin01.voip99.com ÊÖ»úÁåÉùÏÂÔØ][http://duu01.voip99.net ²ÊÁå][http://cai02.1234556789.com ¶ÌÐÅ][http://jii02.zhiliaotuofa.com àÀŮ][http://lin02.voip99.com àÀŮͼƬ][http://duu02.voip99.net àÀŮдÕæ][http://cai03.1234556789.com ÊÓƵàÀŮ][http://jii03.zhiliaotuofa.com àÀŮͼ][http://lin03.voip99.com ÊÖ»ú¶ÌÐÅ][http://duu03.voip99.net ÊÖ»úͼƬ][http://cai04.1234556789.com ÁåÉùÏÂÔØ][http://jii04.zhiliaotuofa.com ²ÊÐÅ][http://duu04.voip99.net àâ·ÑÊÖ»úÁåÉùÏÂÔØ][http://cai05.1234556789.com ÈýÐÇÊÖ»úÁåÉùÏÂÔØ][http://jii05.zhiliaotuofa.com àâ·ÑÊÖ»úÁåÉùÏÂÔØ][http://lin05.voip99.com ÈýÐÇÊÖ»úÁåÉùÏÂÔØ][http://duu05.voip99.net ÊÖ»úͼƬÏÂÔØ][http://cai06.1234556789.com àâ·ÑÊÖ»úÁåÉù][http://jii06.zhiliaotuofa.com ÊÖ»ú²ÊÁå][http://lin06.voip99.com ÊÖ»úÓÎÏ·ÏÂÔØ][http://duu06.voip99.net ŵ»ùÑÇÊÖ»úÁåÉùÏÂÔØ][http://cai07.1234556789.com àâ·ÑÁåÉùÏÂÔØ][http://jii07.zhiliaotuofa.com ºÍÏÒÁåÉù][http://lin07.voip99.com àâ·ÑÁåÉù][http://duu07.voip99.net СÁéͨÁåÉùÏÂÔØ][http://cai08.1234556789.com ²ÊÐã][http://jii08.zhiliaotuofa.com ²ÊÁåÏÂÔØ][http://lin08.voip99.com Òƶ¯²ÊÁå][http://duu08.voip99.net ÖйúÒƶ¯²ÊÁå][http://cai09.1234556789.com ÊÖ»ú²ÊÁå][http://jii09.zhiliaotuofa.com 12530²ÊÁå][http://lin09.voip99.com ÁªÍ¨²ÊÁå][http://duu09.voip99.net ÓÄĬ¶ÌÐÅ][http://cai10.1234556789.com ¸ãЦ¶ÌÐÅ][http://jii10.zhiliaotuofa.com ¶ÌÐÅЦ»°][http://lin10.voip99.com ¾­µä¶ÌÐÅ][http://duu10.voip99.net àâ·Ñ¶ÌÐÅ][http://cai11.1234556789.com àâ·Ñ·¢¶ÌÐÅ][http://jii11.zhiliaotuofa.com °®Çé¶ÌÐÅ][http://lin11.voip99.com ÁªÍ¨ÊÖ»úÁåÉùÏÂÔØ][http://duu11.voip99.net ÈýÐÇÊÖ»úÁåÉù][http://cai12.1234556789.com ÊÖ»ú²ÊÁåÏÂÔØ][http://jii12.zhiliaotuofa.com tclÊÖ»úÁåÉùÏÂÔØ][http://lin12.voip99.com ÈýÐÇÊÖ»úͼƬ][http://duu12.voip99.net ÊÖ»úÏÂÔØ][http://cai13.1234556789.com ²¨µ¼ÊÖ»úÁåÉùÏÂÔØ][http://jii13.zhiliaotuofa.com ÊÖ»ú²ÊÐÅ][http://lin13.voip99.com ÊÖ»ú²Êͼ][http://duu13.voip99.net ÊÖ»úÁáÉù][http://cai14.1234556789.com ÊÖ»úÁåÒô][http://jii14.zhiliaotuofa.com tclÊÖ»úÁåÉù][http://lin14.voip99.com ÁªÍ¨ÊÖ»úÁåÉùÏÂÔØ][http://duu14.voip99.net ²ÊÁá][http://duu15.voip99.net ÖйúÒƶ¯12530²ÊÁå][http://cai15.1234556789.com 12530Òƶ¯²ÊÁåÏÂÔØ][http://jii15.zhiliaotuofa.com СÁéͨ²ÊÁå][http://lin15.voip99.com ÊÖ»ú²ÊÁåÏÂÔØ][http://duu16.voip99.net ÖйúÁªÍ¨²ÊÁå][http://cai16.1234556789.com Õã½­Òƶ¯²ÊÁå][http://jii16.zhiliaotuofa.com ¹ã¶«Òƶ¯²ÊÁå12530][http://lin16.voip99.com ²ÊÐÅͼƬ][http://duu17.voip99.net ²ÊÐÅÁåÉù][http://cai17.1234556789.com ²ÊÐÅÏà²á][http://jii17.zhiliaotuofa.com ²ÊÐÅÏÂÔØ][http://lin17.voip99.com 2004ÓÄĬ¸ãЦ¶ÌÐÅÏ¢][http://duu18.voip99.net ÊÖ»úÓÄĬ¶ÌÐÅ][http://cai18.1234556789.com ¶ÌÐÅÏ¢][http://jii18.zhiliaotuofa.com ÊÖ»ú¶ÌÐÅЦ»°][http://lin18.voip99.com àâ·Ñ·¢ÊÖ»ú¶ÌÐÅ][http://duu19.voip99.net àâ·Ñ¶ÌÐÅÏ¢ÓÄĬЦ»°][http://cai19.1234556789.com ÖØÑô½Ú¶ÌÐÅ][http://jii19.zhiliaotuofa.com ¾­µäÊÖ»ú¶ÌÐÅ][http://lin19.voip99.com ÊÖ»ú¶ÌÐÅÏ¢][http://duu20.voip99.net ÍøÉÏàâ·Ñ·¢¶ÌÐÅ][http://cai20.1234556789.com ÊÖ»ú¶ÌÐÅÏ¢ÓÄĬЦ»°][http://jii20.zhiliaotuofa.com àâ·Ñ·¢¶ÌÐÅÈí¼þ][http://lin20.voip99.com àâ·ÑÊÖ»ú¶ÌÐÅ][http://duu21.voip99.net ¸ãЦÊÖ»ú¶ÌÐÅ][http://cai21.1234556789.com ²ÊÐŶ¯»­][http://jii21.zhiliaotuofa.com àâ·Ñ²ÊÐÅ][http://ww0.voip99.com ¶ú»ú][http://ww1.voip99.com ÎÀÐǵçÊÓ][http://ww0.voip99.net ¼àÊÓÆ÷][http://ww1.voip99.net ±äѹÆ÷][http://ww2.voip99.net ¶Ô½²»ú][http://ww3.voip99.net ´«¸ÐÆ÷][http://ww4.voip99.net µç×ÓÔªÆ÷¼þ][http://ww0.zhiliaotuofa.com µ¶¾ß][http://ww1.zhiliaotuofa.com µØ̺][http://ww2.zhiliaotuofa.com ÖñÌ¿][http://ww3.zhiliaotuofa.com ÉîÛÚ»úƱ][http://ww4.zhiliaotuofa.com ½º´ü,ÉîÛÚ½º´ü][http://ww5.zhiliaotuofa.com ½º´ø,ÉîÛÚ½º´ø][http://ww2.voip99.com »úƱ][http://ww5.voip99.net ¹â¶Ë»ú][http://www.voip99.com/ voip½»Ò×Íø][http://www.zhiliaotuofa.com/ ÍÑ·¢ÖÎÁÆÍø][http://jipiao.voip99.com/ ÉîÛÚ»úƱ][http://sudi.voip99.com/ ¿ìµÝ|Ëٵݹ«Ë¾][http://shipinhuiyi.zhiliaotuofa.com ÊÓƵ»áÒé][http://zuche.voip99.net Æû³µ×âÁÞ][http://tiezhi.zhiliaotuofa.com ÌùÖ½][http://yinshuiji.zhiliaotuofa.com ÒûË®»ú][http://buxiugang.voip99.com ²»Ðâ¸Ö][http://shuijing.zhiliaotuofa.com Ë®¾§]
 

Revision as of 09:13, 26 October 2004

Hopefully, Inkscape will compile right out of the box. If it doesn't, well that's what this page is for.

Jot down notes, questions, findings, tips, etc. here on things you run into. It's a good idea to make mention of what version of the code you're trying to compile, the distribution you're running, and other such information that might be pertinent.

If legitimate bugs are found or patches developed, please move them to the tracker at Sourceforge rather than inlining them here.

OS & Distribution Specific


Specific Package Problems + Solutions

GtkMM

If you have to compile and install GtkMM from source, you may find an error like this when trying to compile Inkscape:

checking for gtk+-2.0 >= 2.0.0  libxml-2.0 >= 2-2.4.24  sigc++-1.2  gtkmm-2.0... Package gtkmm-2.0 was not found in the  pkg-config search path.
Perhaps you should add the directory containing `gtkmm-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtkmm-2.0' found

A solution suggested by Ishmal is to set the PKG_CONFIG_PATH variable as so:

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



Boehm Garbage Collector Dependency

If your distro does not have a package available (like many don't, ie, Fedora Core 2), then download source from here:

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

Then configure it with the command:

  $ ./configure --enable-cplusplus
  $ make; make install


Also, if searching for a package for GC, the name of it is sometimes:

  • gc
  • libgc
  • libgc-devel
  • boehm-gc (on Gentoo)



Developer Compilation

Plain vanilla compilation is done as documented in INSTALL; ./autogen.sh (optionally); ./configure; make; su && make test; make install (optional). See INSTALL for more on that.

But if you're going to be doing a lot of development, there's some tricks and techniques you should know, to get best results.

  1. Turn off optimization
  2. Use ccache for faster compilation
  3. Set up a separate build directory (nice for testing both gcc and g++, or cross compiling)
  4. Use the -j N flag to optimize for the number of processors in your machine, with N = 1 + no. proc's

Example: Setting up both gcc and g++ build environments (in separate tree), and using ccache for faster compilations on a dual-processor machine, with no optimization, assuming /bin/bash:

mkdir build-gcc build-g++
cvs checkout inkscape
cd inkscape
libtoolize --copy --force
./autogen.sh
cd ../build-gcc
CFLAGS='-g -O0 -Wall' CC='ccache gcc' ../inkscape/configure
cd ../build-g++
CXXFLAGS='-g -O0 -Wall' CXX='ccache g++' ../inkscape/configure
cd build-gcc && make -j 3
cd build-g++ && make -j 3


Turning off just optimization (which can produce strange results in debuggers):

export CC=g++
export CXXFLAGS='-g -O0 -Wall'
export CFLAGS='-g -O0 -Wall'
./configure