avidyalalala / sunpinyin

Automatically exported from code.google.com/p/sunpinyin
0 stars 0 forks source link

xim compile issue #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1../configure &&make
2.cd wrapper/xim
3.make

What is the expected output? What do you see instead?
expect to get compiled binary.
I got 
alex-netbook# make 
gcc -DHAVE_CONFIG_H -I. -I../..   
-DSUNPINYIN_XIM_ICON_DIR=\"/usr/local/share/sunpinyin/xim/icon\"
-DSUNPINYIN_XIM_SETTING_DIR=\"/usr/local/share/sunpinyin/xim/settings\"
-DSUNPINYIN_DATA_DIR=\"/usr/local/lib/sunpinyin/data\" -IIMdkit -I../../src
-I../../src/ime-core -I../../src/slm -I../../src/lexicon -I../../src/pinyin
-g -O2 -MT xsunpinyin-ic_gtk.o -MD -MP -MF .deps/xsunpinyin-ic_gtk.Tpo -c
-o xsunpinyin-ic_gtk.o `test -f 'ic_gtk.c' || echo './'`ic_gtk.c
ic_gtk.c:36:21: error: gtk/gtk.h: No such file or directory

What version of the product are you using? On what operating system?
Ubuntu 10.04 beta 2. INSTALLED libgtk2.0-dev
alex-netbook# ls /usr/include/gtk-2.0/gtk/gtk.h 
/usr/include/gtk-2.0/gtk/gtk.h

Add a label for it to identify the area this issue belongs to.
xim

Original issue reported on code.google.com by cheungtifan on 13 Apr 2010 at 12:58

GoogleCodeExporter commented 9 years ago
I wrote a test.c, got it compiled using
gcc test.c `pkg-config gtk+-2.0 --cflags --libs` -o test -march=core2 
-mfpmath=sse
-mfpmath=sse -O3 -static
---
total 572
-rwxr-xr-x 1 alex alex 578077 2010-04-13 21:07 test
-rw-r--r-- 1 alex alex     86 2010-04-13 21:04 test.c

Original comment by cheungtifan on 13 Apr 2010 at 1:07

Attachments:

GoogleCodeExporter commented 9 years ago
./configure --enable-xim
should work for you.

Original comment by mikeandm...@gmail.com on 13 Apr 2010 at 3:02

GoogleCodeExporter commented 9 years ago
cheungtifan,

here is my output while compiling ic_gtk.c

gcc -DHAVE_CONFIG_H -I. -I../..   
-DSUNPINYIN_XIM_ICON_DIR=\"/opt/ibus/share/sunpinyin/xim/icon\"
-DSUNPINYIN_XIM_SETTING_DIR=\"/opt/ibus/share/sunpinyin/xim/settings\"
-DSUNPINYIN_DATA_DIR=\"/opt/ibus/lib/sunpinyin/data\" -D_REENTRANT -pthread
-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/gio-unix-2.0/
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb
-I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    
-IIMdkit -I../../src -I../../src/ime-core -I../../src/slm -I../../src/lexicon
-I../../src/pinyin -g -O2 -MT xsunpinyin-ic_gtk.o -MD -MP -MF
.deps/xsunpinyin-ic_gtk.Tpo -c -o xsunpinyin-ic_gtk.o `test -f 'ic_gtk.c' || 
echo
'./'`ic_gtk.c
mv -f .deps/xsunpinyin-ic_gtk.Tpo .deps/xsunpinyin-ic_gtk.Po

seems you didn't pass '--enable-xim' when running configure. If it is not the 
case,
could you also post your config.log ?

thanks.

Original comment by tchai...@gmail.com on 13 Apr 2010 at 3:11

GoogleCodeExporter commented 9 years ago
问题已经解决!多谢。

Original comment by cheungtifan on 13 Apr 2010 at 3:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by tchai...@gmail.com on 14 Apr 2010 at 2:36