Re: imlib2 error on installing kaa

Adam Charrett <[email protected]>
Newsgroups gmane.comp.video.freevo.user,gmane.comp.video.freevo.devel
Message-ID <[email protected]>
On Wed, 2009-11-25 at 17:16 +1300, Bernard Mentink wrote:
>         

> The error I am getting is:
> 
> 
> -------------------------------
> building 'kaa.imlib2._Imlib2module' extension
>              
> gcc -pthread -shared build/temp.linux-i686-2.6/src/imlib2.o
> build/temp.linux-i686-2.6/src/image.o
> build/temp.linux-i686-2.6/src/font.o
> build/temp.linux-i686-2.6/src/rawformats.o
> build/temp.linux-i686-2.6/src/svg.o -L/usr/lib -L/usr/lib -lrt
> -lImlib2 -lfreetype -lz -lX11 -lXext -ldl -lm -lrsvg-2
> -lgdk_pixbuf-2.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
> -lpython2.6 -o build/lib.linux-i686-2.6/kaa/imlib2/_Imlib2module.so
>                                                                     
> build/temp.linux-i686-2.6/src/svg.o: In function
> `render_svg_to_buffer':           
> svg.c:(.text+0xa0): multiple definition of `render_svg_to_buffer'
>              
> build/temp.linux-i686-2.6/src/imlib2.o:imlib2.c:(.text+0x130): first
> defined here  
> collect2: ld returned 1 exit status
>              
> error: command 'gcc' failed with exit status 1
>               
> failed to build imlib2                 
> ------------------------------

Try doing a clean build by deleting the build directory.

There is also a bug in the setup.py which includes svg.c even when svg
support is disabled.

For Dischi:

Line 57 :     files.append('src/svg.c')
needs to be moved to the if statement that checks for rsvg.

patch included.

Cheers

Adam

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users
setup_svg.patch (text/x-patch, 607 B)
Index: setup.py
===================================================================
--- setup.py	(revision 4276)
+++ setup.py	(working copy)
@@ -54,13 +54,13 @@
 
 if imlib2so.check_cc(['<fcntl.h>'], 'shm_open("foobar");', '-lrt'):
     imlib2so.config('#define HAVE_POSIX_SHMEM')
-    files.append('src/svg.c')
     print "POSIX shared memory enabled"
 else:
     print "POSIX shared memory disabled"
 
 if imlib2so.check_library("librsvg-2.0", "2.10.0"):
     imlib2so.config('#define HAVE_SVG')
+    files.append('src/svg.c')
     print "+ svg support enabled"
 else:
     print "- svg support disabled"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.