Can't build keytouch editor 3.2 beta in Ubuntu Intrepid
Brought to you by:
marvinr
Using Ubuntu Intrepid, ./configure fails :
[...]
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PACKAGE... configure: error: Package requirements (gtk+-2.0 >= 2.0.0) were not met:
No package 'gtk+-2.0' found
Never mind, I just noticed the other question about this.
The required package in Ubuntu is libgtk2.0-dev
I now get this error:
[...]
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../mxml/ -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../string_to_keycode -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -Wall -g -O2 -c ud_socket.c
In file included from ud_socket.c:18:
ud_socket.h:12: warning: ‘struct ucred’ declared inside parameter list
ud_socket.h:12: warning: its scope is only this definition or declaration, which is probably not what you want
ud_socket.c:56: warning: ‘struct ucred’ declared inside parameter list
ud_socket.c:56: error: conflicting types for ‘ud_accept’
ud_socket.h:12: error: previous declaration of ‘ud_accept’ was here
ud_socket.c: In function ‘ud_accept’:
ud_socket.c:73: error: invalid application of ‘sizeof’ to incomplete type ‘struct ucred’
make[2]: *** [ud_socket.o] Error 1
make[2]: Leaving directory `/home/magicfab/Desktop/Download/keytouch-editor-3.2.0-beta/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/magicfab/Desktop/Download/keytouch-editor-3.2.0-beta'
make: *** [all-recursive-am] Error 2
I got a bit further after install gtk devel package (libgtk2.0-dev).
However now I get this error:
[...]
make[2]: Entering directory `/home/magicfab/Desktop/Download/keytouch-editor-3.2.0-beta/string_to_keycode'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/magicfab/Desktop/Download/keytouch-editor-3.2.0-beta/string_to_keycode'
Making all in src
make[2]: Entering directory `/home/magicfab/Desktop/Download/keytouch-editor-3.2.0-beta/src'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../mxml/ -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../string_to_keycode -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -Wall -g -O2 -c ud_socket.c
In file included from ud_socket.c:18:
ud_socket.h:12: warning: ‘struct ucred’ declared inside parameter list
ud_socket.h:12: warning: its scope is only this definition or declaration, which is probably not what you want
ud_socket.c:56: warning: ‘struct ucred’ declared inside parameter list
ud_socket.c:56: error: conflicting types for ‘ud_accept’
ud_socket.h:12: error: previous declaration of ‘ud_accept’ was here
ud_socket.c: In function ‘ud_accept’:
ud_socket.c:73: error: invalid application of ‘sizeof’ to incomplete type ‘struct ucred’
make[2]: *** [ud_socket.o] Error 1
make[2]: Leaving directory `/home/magicfab/Desktop/Download/keytouch-editor-3.2.0-beta/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/magicfab/Desktop/Download/keytouch-editor-3.2.0-beta'
make: *** [all-recursive-am] Error 2
As per magicfab's followup, this can be resolved by installing the headers package - ie: `libgtk2.0-dev` .
But these headers are not installed by default - should this be a necessary package?
mz92, I am confused. I specifically commented that it still doesn't build.
Care to share how your built it if you succeeded ?
a misunderstanding; I could not complete the whole process either.