cvca / rimeime

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

64 bit Debian 7.0 无法安装 #167

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
64 bit Debian 7.0 无法安装
最后出现:
-- Configuring incomplete, errors occurred! make: *** [ibus-engine-rime] Error 1

Original issue reported on code.google.com by xugc...@gmail.com on 10 Jun 2012 at 5:21

GoogleCodeExporter commented 9 years ago
還有補充嗎?
最好把完整log傳到附件。好分析原因。

Original comment by chen....@gmail.com on 10 Jun 2012 at 9:34

GoogleCodeExporter commented 9 years ago
求ibus-rime on 64bit Debian 7 安裝手記
果然還是希望出現安裝包

mkdir -p build
(cd build; cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_STATIC=OFF ..)
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.46.1
-- Found the following Boost libraries:
--   filesystem
--   regex
--   signals
--   system
--   thread
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Could NOT find GTest (missing:  GTEST_LIBRARY GTEST_INCLUDE_DIR 
GTEST_MAIN_LIBRARY) 
-- Found yaml-cpp: /usr/local/lib/libyaml-cpp.a
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.3.4")
-- Found kyotocabinet: /usr/local/lib/libkyotocabinet.so
-- Found opencc: /usr/lib/libopencc.so
-- Found X11/keysym.h at /usr/include
-- Configuring done
-- Generating done
-- Build files have been written to: /root/rimeime/librime/build
make -C build
make[1]: Entering directory `/root/rimeime/librime/build'
make[2]: Entering directory `/root/rimeime/librime/build'
make[3]: Entering directory `/root/rimeime/librime/build'
Scanning dependencies of target rime
make[3]: Leaving directory `/root/rimeime/librime/build'                        

make[3]: Entering directory `/root/rimeime/librime/build'
[  1%] Building CXX object src/CMakeFiles/rime.dir/commit_history.cc.o
[  3%] Building CXX object src/CMakeFiles/rime.dir/switcher.cc.o                

[  5%] Building CXX object src/CMakeFiles/rime.dir/deployer.cc.o                

[  6%] Building CXX object src/CMakeFiles/rime.dir/service.cc.o                 

[  8%] Building CXX object src/CMakeFiles/rime.dir/composition.cc.o             

[ 10%] Building CXX object src/CMakeFiles/rime.dir/key_event.cc.o               

[ 11%] Building CXX object src/CMakeFiles/rime.dir/registry.cc.o                

[ 13%] Building CXX object src/CMakeFiles/rime.dir/key_table.cc.o               

[ 15%] Building CXX object src/CMakeFiles/rime.dir/config.cc.o                  

[ 16%] Building CXX object src/CMakeFiles/rime.dir/context.cc.o                 

[ 18%] Building CXX object src/CMakeFiles/rime.dir/menu.cc.o                    

[ 20%] Building CXX object src/CMakeFiles/rime.dir/schema.cc.o                  

[ 22%] Building CXX object src/CMakeFiles/rime.dir/translation.cc.o             

[ 23%] Building CXX object src/CMakeFiles/rime.dir/rime_api.cc.o                

[ 25%] Building CXX object src/CMakeFiles/rime.dir/common.cc.o                  

[ 27%] Building CXX object src/CMakeFiles/rime.dir/engine.cc.o                  

[ 28%] Building CXX object src/CMakeFiles/rime.dir/segmentation.cc.o            

[ 30%] Building CXX object src/CMakeFiles/rime.dir/algo/calculus.cc.o           

[ 32%] Building CXX object src/CMakeFiles/rime.dir/algo/syllabifier.cc.o        

[ 33%] Building CXX object src/CMakeFiles/rime.dir/algo/algebra.cc.o            

[ 35%] Building CXX object src/CMakeFiles/rime.dir/dict/vocabulary.cc.o         

[ 37%] Building CXX object src/CMakeFiles/rime.dir/dict/prism.cc.o              

[ 38%] Building CXX object 
src/CMakeFiles/rime.dir/dict/reverse_lookup_dictionary.cc.o         
[ 40%] Building CXX object src/CMakeFiles/rime.dir/dict/table.cc.o              

[ 42%] Building CXX object src/CMakeFiles/rime.dir/dict/dictionary.cc.o         

[ 44%] Building CXX object src/CMakeFiles/rime.dir/dict/user_dictionary.cc.o    

[ 45%] Building CXX object src/CMakeFiles/rime.dir/dict/dict_compiler.cc.o      

[ 47%] Building CXX object src/CMakeFiles/rime.dir/dict/mapped_file.cc.o        

[ 49%] Building CXX object src/CMakeFiles/rime.dir/dict/user_db.cc.o            

[ 50%] Building CXX object src/CMakeFiles/rime.dir/impl/ascii_composer.cc.o     

[ 52%] Building CXX object src/CMakeFiles/rime.dir/impl/abc_segmentor.cc.o      

[ 54%] Building CXX object src/CMakeFiles/rime.dir/impl/r10n_translator.cc.o    

[ 55%] Building CXX object src/CMakeFiles/rime.dir/impl/table_translator.cc.o   

[ 57%] Building CXX object src/CMakeFiles/rime.dir/impl/trivial_translator.cc.o 

[ 59%] Building CXX object src/CMakeFiles/rime.dir/impl/uniquifier.cc.o         

[ 61%] Building CXX object 
src/CMakeFiles/rime.dir/impl/reverse_lookup_translator.cc.o         
[ 62%] Building CXX object src/CMakeFiles/rime.dir/impl/key_binder.cc.o         

[ 64%] Building CXX object src/CMakeFiles/rime.dir/impl/fluency_editor.cc.o     

[ 66%] Building CXX object src/CMakeFiles/rime.dir/impl/express_editor.cc.o     

[ 67%] Building CXX object src/CMakeFiles/rime.dir/impl/matcher.cc.o            

[ 69%] Building CXX object src/CMakeFiles/rime.dir/impl/recognizer.cc.o         

[ 71%] Building CXX object src/CMakeFiles/rime.dir/impl/navigator.cc.o          

[ 72%] Building CXX object src/CMakeFiles/rime.dir/impl/speller.cc.o            

[ 74%] Building CXX object src/CMakeFiles/rime.dir/impl/translator_commons.cc.o 

[ 76%] Building CXX object src/CMakeFiles/rime.dir/impl/simplifier.cc.o         

[ 77%] Building CXX object src/CMakeFiles/rime.dir/impl/fallback_segmentor.cc.o 

[ 79%] Building CXX object src/CMakeFiles/rime.dir/impl/ascii_segmentor.cc.o    

[ 81%] Building CXX object src/CMakeFiles/rime.dir/impl/punctuator.cc.o         

[ 83%] Building CXX object src/CMakeFiles/rime.dir/impl/echo_translator.cc.o    

[ 84%] Building CXX object src/CMakeFiles/rime.dir/impl/selector.cc.o           

[ 86%] Building CXX object src/CMakeFiles/rime.dir/expl/deployment_tasks.cc.o   

[ 88%] Building CXX object src/CMakeFiles/rime.dir/expl/customizer.cc.o         

[ 89%] Building CXX object src/CMakeFiles/rime.dir/expl/user_dict_manager.cc.o  

[ 91%] Building CXX object src/CMakeFiles/rime.dir/expl/switcher_settings.cc.o
[ 93%] Building CXX object src/CMakeFiles/rime.dir/expl/signature.cc.o
[ 94%] Building CXX object src/CMakeFiles/rime.dir/expl/custom_settings.cc.o
Linking CXX shared library ../lib/librime.so
/usr/bin/ld: /usr/local/lib/libyaml-cpp.a(node.cpp.o): relocation R_X86_64_32 
against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libyaml-cpp.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [lib/librime.so.0.9.1] Error 1
make[3]: Leaving directory `/root/rimeime/librime/build'
make[2]: *** [src/CMakeFiles/rime.dir/all] Error 2
make[2]: Leaving directory `/root/rimeime/librime/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/rimeime/librime/build'
make: *** [librime] Error 2
if  [ -e build ]; then rm -R build; fi
#if [ ! -e cmake ]; then ln -s ../librime/cmake; fi
mkdir -p build
(cd build; cmake .. &&  make)
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- checking for module 'ibus-1.0'
--   found ibus-1.0, version 1.4.1
CMake Error at CMakeLists.txt:13 (find_package):
  Could not find module FindRime.cmake or a configuration file for package
  Rime.

  Adjust CMAKE_MODULE_PATH to find FindRime.cmake or set Rime_DIR to the
  directory containing a CMake configuration file for Rime.  The file will
  have one of the following names:

    RimeConfig.cmake
    rime-config.cmake

-- Configuring incomplete, errors occurred!
make: *** [ibus-engine-rime] Error 1

謝謝!

Original comment by xugc...@gmail.com on 10 Jun 2012 at 3:08

GoogleCodeExporter commented 9 years ago
我在 http://code.google.com/p/rimeime/wiki/IBusRime 
下面的討論中發現了這樣的線索。
看來是 yaml-cpp 這個包的作者沒有打理過64位下的編譯腳本。
今天我還在 Fedora 64位上裝了一把。yaml-cpp, kyotocabinet 
都有現成的64位rpm。不知什麼時候能有deb。
--------------------------------------------------------

yaml-cpp需要手工打两个patch,否则在64位环境下librime会链接失�
��。

错误信息:

    94% Building CXX object src/CMakeFiles/rime.dir/expl/signature.cc.o 

    Linking CXX shared library ../lib/librime.so 

    /usr/bin/ld: /usr/local/lib/libyaml-cpp.a(parser.cpp.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC 

    /usr/local/lib/libyaml-cpp.a: could not read symbols: Bad value 

Original comment by chen....@gmail.com on 10 Jun 2012 at 3:21

GoogleCodeExporter commented 9 years ago
追加:
去YAML-CPP主頁逛了逛,發現有人提過類似BUG,但是讓作者否了
;
cmake 加參數 -DBUILD_SHARED_LIBS=ON 試試?
我更新了WIKI。

Original comment by chen....@gmail.com on 10 Jun 2012 at 3:38

GoogleCodeExporter commented 9 years ago
OK,THX

Original comment by xugc...@gmail.com on 10 Jun 2012 at 3:53