30楼#
发布于:2016-08-24 16:00
fireflyoo:# Maintainer: firef <use_my_id at gmail dot com>很明显啊,你用的gcc没有编译64位程序功能。你是在32位系统上编译的么? 我的开发环境中,是能用同一个gcc编译32位和64位版本的,也会同时编译windows相关的代码。 建议逐个编译,比如: cd mb node build.js l32 cd - ... cd im node build.js l32-gtk3 cd - cd config node build.js l32-gtk3 cd - |
|
31楼#
发布于:2016-08-25 15:34
cd gbk
node build.js l32 gcc -m32 -march=i686 -fPIC -I./llib -Wall -g -O2 -fms-extensions -fno-strict-aliasing -pipe -I./include -I./common -c gbk.c -o gbk.o gcc: 错误:gbk.c:没有那个文件或目录 gcc: 致命错误:没有输入文件 编译中断。 ==> 错误: 在 build() 中发生一个错误。 正在放弃...llib这个目录编译通过 gbk这个目录编译不了.. |
|
32楼#
发布于:2016-08-25 20:14
|
|
33楼#
发布于:2016-08-26 11:19
gcc -m32 -march=i686 -I/home/fireflyoo/PKGBUILD/yong/src/yong/llib -I/home/fireflyoo/PKGBUILD/yong/src/yong/im -I/home/fireflyoo/PKGBUILD/yong/src/yong/im/IMdkit -DCFG_XIM_IBUS `pkg-config --cflags ibus-1.0` -DCFG_XIM_FBTERM -I/home/fireflyoo/PKGBUILD/yong/src/yong/im/fbterm -DL_CALL_GLIB_SERVER -Wall -g -O2 -fms-extensions -fno-strict-aliasing -pipe -I/home/fireflyoo/PKGBUILD/yong/src/yong/include -I/home/fireflyoo/PKGBUILD/yong/src/yong/common `pkg-config --cflags gtk+-3.0` -L/home/fireflyoo/PKGBUILD/yong/src/yong/llib/l32 -Wl,-rpath,'$ORIGIN' -Wl,--hash-style=sysv -m32 -L/home/fireflyoo/PKGBUILD/yong/src/yong/im/IMdkit/l32 main.o im.o bihua.o common.o s2t.o nl.o english.o dict.o keyboard.o mapfile.o aes.o book.o keytool.o keydesc.o ui.o xim-ibus.o fbterm.o keycode.o select.o layout.o translate.o ybus.o ybus-xim.o ybus-lcall.o lcall.o menu.o history.o replace.o ybus-wayland.o -o ./yong -ll -ll -ldl -lm -lXimd -lX11 `pkg-config --libs gtk+-3.0` /usr/bin/ld: 找不到 -lXimd collect2: 错误:ld 返回 1 ==> 错误: 在 build() 中发生一个错误。 正在放弃...卡在这一步,怎么继续下去... |
|
34楼#
发布于:2016-08-26 11:23
|
|
35楼#
发布于:2016-08-26 17:28
# Maintainer: firef <use_my_id at gmail dot com> pkgname=yong pkgver=2.4.0 pkgrel=1 pkgdesc="Tiny Small Chinese Input Method" arch=('i686') url="https://github.com/dgod/yong" license=('GPL') makedepends=('git' 'nodejs' 'gcc' 'ibus' 'wayland') #provides=("yong=$pkgver") depends=('pango') #install=yong.install source=("git+https://github.com/dgod/yong.git" "git+https://github.com/dgod/build.js.git") md5sums=('SKIP' 'SKIP') buildjs="build.js/build.js" pkgver() { cd "$srcdir/$pkgname/install" awk '/%define +version/{print $3}' yong.spec | sed 's|-|.|g' } build() { mkdir -p $srcdir/$pkgname/{llib,cloud,gbk,mb,vim}/l32 mkdir -p $srcdir/$pkgname/{im,config}/{l32-gtk3,l32-gtk2} mkdir -p $srcdir/$pkgname/im/gtk-im/{l32-gtk3,l32-gtk2} mkdir -p $srcdir/$pkgname/im/IMdkit/l32 cd "$srcdir/$pkgname/im/IMdkit" node "$srcdir/$buildjs" -f "$srcdir/$pkgname/im/IMdkit/build.txt" l32 cd "$srcdir/$pkgname/" sed -i 's/build(DIRS);/build(DIRS,null,"l32");/' "$srcdir/$pkgname/build.txt" sed -i 's/copy_build("l64");//' $srcdir/$pkgname/install/build.txt sed -i "s/'config',//" "$srcdir/$pkgname/build.txt" sed -i "s/'im',//" "$srcdir/$pkgname/build.txt" node "$srcdir/$buildjs" -f "$srcdir/$pkgname/build.txt" cd $srcdir/$pkgname/im/ node "$srcdir/$buildjs" -f "$srcdir/$pkgname/im/build.txt" {l32-gtk3,l32-gtk2} cd $srcdir/$pkgname/im/gtk-im/ node "$srcdir/$buildjs" -f "$srcdir/$pkgname/im/gtk-im/build.txt" {l32-gtk3,l32-gtk2} cd $srcdir/$pkgname/config/ node "$srcdir/$buildjs" -f "$srcdir/$pkgname/config/build.txt" {l32-gtk3,l32-gtk2} cd "$srcdir/$pkgname/install/" node "$srcdir/$buildjs" -f "$srcdir/$pkgname/install/build.txt" copy } package() { mkdir -p $pkgdir/usr/bin cp -a $srcdir/$pkgname/install/yong $pkgdir/usr cd $pkgdir/usr/yong ln -sf ../yong/l32/yong-gtk3 $pkgdir/usr/bin/yong ln -sf ../yong/l32/yong-config-gtk3 $pkgdir/usr/bin/yong-config install -D locale/zh_CN.mo $pkgdir/usr/share/locale/zh_CN/LC_MESSAGES/yong.mo install -D l32/gtk-im/im-yong-gtk2.so $pkgdir/usr/lib/gtk-2.0/2.10.0/immodules/im-yong.so install -D l32/gtk-im/im-yong-gtk3.so $pkgdir/usr/lib/gtk-3.0/3.0.0/immodules/im-yong.so } post_install() { gtk-query-immodules-2.0 --update-cache gtk-query-immodules-3.0 --update-cache }编译成功 |
|
36楼#
发布于:2016-08-29 16:03
喜气洋洋、普天同庆、喜闻乐见、大快人心、奔走相告
|
|
37楼#
发布于:2016-08-29 16:11
|
|
38楼#
发布于:2016-10-09 10:04
支持,相信會更加的好
|
|