Problem in compile

Asked by D|3-H4rD on 2008-02-20

./awn_extras.override: In function '_wrap_get_pixbuf_from_surface':
./awn_extras.override:51: warning: assignment makes pointer from integer without a cast
./awn_extras.override: In function '_wrap_awncolor_to_string':
./awn_extras.override:96: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
./awn_extras.override: In function '_wrap_gdkcolor_to_awncolor':
./awn_extras.override:126: error: incompatible types in assignment
./awn_extras.override:128: error: incompatible types in assignment
make[5]: *** [awn_extras.lo] Error 1
make[5]: Leaving directory `/root/awn-extras-applets-0.2.4/src/libawn-extras/bindings/python'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/root/awn-extras-applets-0.2.4/src/libawn-extras/bindings'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/awn-extras-applets-0.2.4/src/libawn-extras'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/awn-extras-applets-0.2.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/awn-extras-applets-0.2.4'
make: *** [all] Error 2
VaioTux awn-extras-applets-0.2.4 #

can u help me? :)

Question information

Language:
English Edit question
Status:
Solved
For:
Awn Extras Edit question
Assignee:
No assignee Edit question
Solved by:
D|3-H4rD
Solved:
2008-02-22
Last query:
2008-02-22
Last reply:
2008-02-22
Ste (stefano-badoino) said : #1

The problem is file
./awn-extras-applets-0.2.4/src/libawn-extras/bindings/python/awn_extras.override

I modified line 25 from

#include <libawn-extras/awn-extras.h>

to

#include <awn-extras.h>

and this did the trick!

D|3-H4rD (pietro-albano) said : #2

this trick solved my problem only in part, now i got this problem:

make[4]: Leaving directory `/root/awn-extras-applets-0.2.4/src/affinity/data'
make[4]: Entering directory `/root/awn-extras-applets-0.2.4/src/affinity'
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I../../src -DORBIT2=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/libgnome-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gconf/2 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -DACTIONDIR=\""/usr/local/share/affinity/actions"\" -g -O2 -MT applet.lo -MD -MP -MF .deps/applet.Tpo -c -o applet.lo applet.c
 gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I../../src -DORBIT2=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/libgnome-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gconf/2 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -DACTIONDIR=\"/usr/local/share/affinity/actions\" -g -O2 -MT applet.lo -MD -MP -MF .deps/applet.Tpo -c applet.c -fPIC -DPIC -o .libs/applet.o
In file included from affinity.h:32,
                 from applet.c:36:
aff-settings.h:29:38: error: libawn/awn-config-client.h: No such file or directory
In file included from affinity.h:32,
                 from applet.c:36:
aff-settings.h:97: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
make[4]: *** [applet.lo] Error 1
make[4]: Leaving directory `/root/awn-extras-applets-0.2.4/src/affinity'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/awn-extras-applets-0.2.4/src/affinity'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/awn-extras-applets-0.2.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/awn-extras-applets-0.2.4'
make: *** [all] Error 2
VaioTux awn-extras-applets-0.2.4 #

Ste (stefano-badoino) said : #3

The problem is that make can't find library "awn-config-client.h":

aff-settings.h:29:38: error: libawn/awn-config-client.h: No such file or directory

awn-config-client.h is part of libawn, so if you installed avant-window-navigator you should have it installed somewhere in your system (in my case is under /usr/local/include/libawn/)...I don't know why make cant find it!

You should try these two solution:

1) run "ldconfig" after installing avant-window-navigator and before trying to install awn-extra-applets

or, if it doesn't work

2) modify /root/awn-extras-applets-0.2.4/src/affinity/aff-settings.h:
change line 29 from

#include <libawn/awn-config-client.h>

to

#include <absolute_path_to_libawn/awn-config-client.h>

In my case, I modified it to

#include </usr/local/include/libawn/awn-config-client.h>

and it worked whitout any error.

Good luck!

D|3-H4rD (pietro-albano) said : #4

i imported all libs, but now i have this error, gio.h not found

In file included from aff-results.c:37:
/usr/local/include/libawn/awn-vfs.h:40:21: error: gio/gio.h: No such file or directory
aff-results.c:300: error: expected declaration specifiers or '...' before 'GAppInfo'
aff-results.c: In function 'aff_results_menu_item_activated':
aff-results.c:332: warning: passing argument 2 of 'g_list_append' makes pointer from integer without a cast
aff-results.c:333: error: 'app' undeclared (first use in this function)
aff-results.c:333: error: (Each undeclared identifier is reported only once
aff-results.c:333: error: for each function it appears in.)
aff-results.c:333: warning: initialization makes pointer from integer without a cast
aff-results.c: In function 'aff_results_popup_menu':
aff-results.c:381: error: 'GFile' undeclared (first use in this function)
aff-results.c:381: error: 'file' undeclared (first use in this function)
aff-results.c:404: warning: assignment makes pointer from integer without a cast
aff-results.c:416: warning: assignment makes pointer from integer without a cast
aff-results.c:429: error: 'GAppInfo' undeclared (first use in this function)
aff-results.c:429: error: 'app' undeclared (first use in this function)
aff-results.c:429: error: expected expression before ')' token
aff-results.c:430: warning: initialization makes pointer from integer without a cast
aff-results.c:431: error: 'GIcon' undeclared (first use in this function)
aff-results.c:431: error: 'icon' undeclared (first use in this function)
aff-results.c:434: error: subscripted value is neither array nor pointer
aff-results.c:436: error: 'icon_file' undeclared (first use in this function)
aff-results.c:437: warning: assignment makes pointer from integer without a cast
make[4]: *** [aff-results.lo] Error 1
make[4]: Leaving directory `/root/awn-extras-applets-0.2.4/src/affinity'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/awn-extras-applets-0.2.4/src/affinity'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/awn-extras-applets-0.2.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/awn-extras-applets-0.2.4'
make: *** [all] Error 2
VaioTux awn-extras-applets-0.2.4 # find / -iname gio.h
/usr/src/linux-2.6.23-gentoo-r6/include/asm-mips/sgi/gio.h
/usr/src/linux-2.6.23-gentoo-r6/include/asm-sh/landisk/gio.h
/usr/src/linux-2.6.22-gentoo-r9/include/asm-mips/sgi/gio.h
/usr/src/linux-2.6.22-gentoo-r9/include/asm-sh/landisk/gio.h
/usr/src/linux-2.6.23-gentoo-r8/include/asm-mips/sgi/gio.h
/usr/src/linux-2.6.23-gentoo-r8/include/asm-sh/landisk/gio.h
/usr/include/fontforge/gio.h
VaioTux awn-extras-applets-0.2.4 #

D|3-H4rD (pietro-albano) said : #5

I solved my problem in compile. This is the trick:

1. I downloaded avant-window-navigator 0.2.4

go to in avant-window-navigator 0.2.4 directory and type PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh && make all install

2 download awn-extras-applets-0.2.4

go to in awn-extras-applets-0.2.4 directory and type PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure && make all install

after that type ldconfig and all work fine, in compilation step.

After compilation i cant add more applets, only follow applets works

- awn Main MenĂ¹
- awn Terminal
- awn Separator
- awn Affinity Search
- awn Launcher

Ste (stefano-badoino) said : #6

Happy to see you finally made it work! :)

Good job!

D|3-H4rD (pietro-albano) said : #7

I solved completally my problem in this way:

1. added desktop-effects overlays in layman ( also if this overlay is not show in list, but work :) )
2. emerge avant and avant-applets