openSUSE安装出错
rime吧
全部回复
仅看楼主
level 5
jxfxwy 楼主
mkdir -p build
(cd build; cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..)
-- Found glog: /usr/local/lib64/libglog.so
-- Found yaml-cpp: /usr/local/lib/libyaml-cpp.a
-- Found kyotocabinet: /usr/local/lib64/libkyotocabinet.so
-- Found opencc: /usr/lib64/libopencc.so
-- Found X11/keysym.h at /usr/include
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jinxiao/ibus-rime/librime/build
make -C build
make[1]: 进入目录“/home/jinxiao/librime/build”
make[2]: 进入目录“/home/jinxiao/librime/build”
make[3]: 进入目录“/home/jinxiao/librime/build”
make[3]: 离开目录“/home/jinxiao/librime/build”
make[3]: 进入目录“/home/jinxiao/librime/build”
[ 1%] Building CXX object src/CMakeFiles/rime.dir/config.cc.o
/home/jinxiao/ibus-rime/librime/src/config.cc: In member function ‘bool rime::ConfigData::LoadFromFile(const string&)’:
/home/jinxiao/ibus-rime/librime/src/config.cc:556:17: error: ‘class YAML::Parser’ has no member named ‘GetNextDocument’
/home/jinxiao/ibus-rime/librime/src/config.cc: In static member function ‘static rime::ConfigItemPtr rime::ConfigData::ConvertFromYaml(const YAML::Node&)’:
/home/jinxiao/ibus-rime/librime/src/config.cc:607:49: error: ‘const class YAML::Node’ has no member named ‘to’
/home/jinxiao/ibus-rime/librime/src/config.cc:607:63: error: expected primary-expression before ‘>’ token
/home/jinxiao/ibus-rime/librime/src/config.cc:607:65: error: expected primary-expression before ‘)’ token
/home/jinxiao/ibus-rime/librime/src/config.cc:611:5: error: ‘Iterator’ is not a member of ‘YAML’
/home/jinxiao/ibus-rime/librime/src/config.cc:611:20: error: expected ‘;’ before ‘it’
/home/jinxiao/ibus-rime/librime/src/config.cc:612:5: error: ‘Iterator’ is not a member of ‘YAML’
/home/jinxiao/ibus-rime/librime/src/config.cc:612:20: error: expected ‘;’ before ‘end’
/home/jinxiao/ibus-rime/librime/src/config.cc:613:13: error: ‘it’ was not declared in this scope
/home/jinxiao/ibus-rime/librime/src/config.cc:613:19: error: ‘end’ was not declared in this scope
/home/jinxiao/ibus-rime/librime/src/config.cc:613:19: note: suggested alternatives:
In file included from /usr/include/boost/algorithm/string/trim.hpp:17:0,
from /usr/include/boost/algorithm/string.hpp:19,
from /home/jinxiao/ibus-rime/librime/src/config.cc:11:
/usr/include/boost/range/end.hpp:106:61: note: ‘boost::range_adl_barrier::end’
In file included from /usr/include/boost/mpl/list/aux_/begin_end.hpp:17:0,
from /usr/include/boost/mpl/list/list0.hpp:27,
from /usr/include/boost/mpl/list/list10.hpp:18,
from /usr/include/boost/mpl/list/list20.hpp:18,
from /usr/include/boost/mpl/list.hpp:36,
from /usr/include/boost/math/policies/policy.hpp:9,
from /usr/include/boost/math/special_functions/math_fwd.hpp:28,
from /usr/include/boost/math/special_functions/sign.hpp:17,
I
2013年02月05日 14点02分 1
level 5
jxfxwy 楼主
from /usr/include/boost/lexical_cast.hpp:70,
from /home/jinxiao/ibus-rime/librime/src/config.cc:14:
/usr/include/boost/mpl/begin_end_fwd.hpp:23:38: note: ‘boost::mpl::end’
In file included from /usr/include/boost/algorithm/string/trim.hpp:17:0,
from /usr/include/boost/algorithm/string.hpp:19,
from /home/jinxiao/ibus-rime/librime/src/config.cc:11:
/usr/include/boost/range/end.hpp:106:61: note: ‘boost::range_adl_barrier::end’
/home/jinxiao/ibus-rime/librime/src/config.cc:620:5: error: ‘Iterator’ is not a member of ‘YAML’
/home/jinxiao/ibus-rime/librime/src/config.cc:620:20: error: expected ‘;’ before ‘it’
/home/jinxiao/ibus-rime/librime/src/config.cc:621:5: error: ‘Iterator’ is not a member of ‘YAML’
/home/jinxiao/ibus-rime/librime/src/config.cc:621:20: error: expected ‘;’ before ‘end’
/home/jinxiao/ibus-rime/librime/src/config.cc:622:13: error: ‘it’ was not declared in this scope
/home/jinxiao/ibus-rime/librime/src/config.cc:622:19: error: ‘end’ was not declared in this scope
/home/jinxiao/ibus-rime/librime/src/config.cc:622:19: note: suggested alternatives:
In file included from /usr/include/boost/algorithm/string/trim.hpp:17:0,
from /usr/include/boost/algorithm/string.hpp:19,
from /home/jinxiao/ibus-rime/librime/src/config.cc:11:
/usr/include/boost/range/end.hpp:106:61: note: ‘boost::range_adl_barrier::end’
In file included from /usr/include/boost/mpl/list/aux_/begin_end.hpp:17:0,
from /usr/include/boost/mpl/list/list0.hpp:27,
from /usr/include/boost/mpl/list/list10.hpp:18,
from /usr/include/boost/mpl/list/list20.hpp:18,
from /usr/include/boost/mpl/list.hpp:36,
from /usr/include/boost/math/policies/policy.hpp:9,
from /usr/include/boost/math/special_functions/math_fwd.hpp:28,
from /usr/include/boost/math/special_functions/sign.hpp:17,
from /usr/include/boost/lexical_cast.hpp:70,
from /home/jinxiao/ibus-rime/librime/src/config.cc:14:
/usr/include/boost/mpl/begin_end_fwd.hpp:23:38: note: ‘boost::mpl::end’
In file included from /usr/include/boost/algorithm/string/trim.hpp:17:0,
from /usr/include/boost/algorithm/string.hpp:19,
from /home/jinxiao/ibus-rime/librime/src/config.cc:11:
/usr/include/boost/range/end.hpp:106:61: note: ‘boost::range_adl_barrier::end’
/home/jinxiao/ibus-rime/librime/src/config.cc:623:50: error: expected primary-expression before ‘>’ token
/home/jinxiao/ibus-rime/librime/src/config.cc:623:52: error: expected primary-expression before ‘)’ token
make[3]: *** [src/CMakeFiles/rime.dir/config.cc.o] 错误 1
make[3]: 离开目录“/home/jinxiao/librime/build”
make[2]: *** [src/CMakeFiles/rime.dir/all] 错误 2
make[2]: 离开目录“/home/jinxiao/librime/build”
make[1]: *** [all] 错误 2
make[1]: 离开目录“/home/jinxiao/librime/build”
make: *** [librime] 错误 2
2013年02月05日 14点02分 2
level 11
2013年02月05日 14点02分 3
就是这个样子的,步骤如下更新源安**oost-devel ibus-devel libnotify-devel和其他库 compile yam-cpp gtest compile librime errors 是否和64位库不兼容有关系?
2013年02月05日 14点02分
回复 五磅兔 :我在那个openSUSE官网看到,他们编译的时候也有error,坐等解决
2013年02月06日 09点02分
回复 五磅兔 :这个错误没了,编译过了之前那个错误点了,就是要用yaml-cpp0.3.0的库,我这手动编译的库,不知道这个版本还有问题
2013年02月06日 10点02分
level 5
jxfxwy 楼主
Linking CXX shared library ../lib/librime.so
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib/liaml-cpp.a(node.cpp.o): relocation R_X86_64_32 against `.bss' can not be used when making a sred object; recompile with -fPIC
/usr/local/lib/libyaml-cpp.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
@佛振
2013年02月06日 10点02分 4
编译了那个yaml-cpp0.3.0的库,也加了-fPIC的参数了
2013年02月06日 10点02分
回复 jxfxwy :编译5.0.1的静态库就行了
2013年10月09日 17点10分
回复 kxmpgg :静态的不好使。。我是加了-DBUILD_SHARED_LIBS=ON 才好用
2013年12月20日 02点12分
回复 jxfxwy :我编译的yaml-cpp0.5.1,cmake -DBUILD_SHARED_LIBS=ON,然后搞定了。yaml-cpp defaults to building a static library, but you may build a shared library by specifying -DBUILD_SHARED_LIBS=ON.
2013年12月20日 02点12分
level 10
opensuse有预编译好的吧?
2013年10月10日 13点10分 5
level 14
wo hai mei gao ding。。
2013年12月20日 01点12分 6
搞定了,耶耶[勉强]
2013年12月20日 02点12分
1