China-Spiner / ibus-sogoupycc

Automatically exported from code.google.com/p/ibus-sogoupycc
1 stars 1 forks source link

pkg-config name different from 'lua' #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
# ./build.sh 
-- 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 modules
'ibus-1.0>=1.2.0;ibus-1.0<=1.2.98;lua>=5.1;lua<=5.1.99;glib-2.0>=2.22;gthread-2.
0>=2.22;dbus-1>=1.2;sqlite3;gtk+-2.0;gdk-2.0'
--   package 'lua>=5.1' not found
--   package 'lua<=5.1.99' not found
--   package 'sqlite3' not found
--   package 'gtk+-2.0' not found
--   package 'gdk-2.0' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:259 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:311
(_pkg_check_modules_internal)
  src/CMakeLists.txt:12 (PKG_CHECK_MODULES)

-- Configuring incomplete, errors occurred!
make: *** 没有指明目标并且找不到 makefile。 停止。

Original issue reported on code.google.com by lxn...@gmail.com on 1 Mar 2010 at 1:58

GoogleCodeExporter commented 9 years ago
As you can see:
--   package 'lua>=5.1' not found
--   package 'lua<=5.1.99' not found
--   package 'sqlite3' not found
--   package 'gtk+-2.0' not found
--   package 'gdk-2.0' not found

Try to install these packages first:
liblua5.1-0-dev, liblua5.1-socket2, libsqlite3-dev, build-essential, 
libgtk2.0-dev

Original comment by arcpp.zju@gmail.com on 1 Mar 2010 at 3:14

GoogleCodeExporter commented 9 years ago
谢谢你回复,我的电脑上装了lua,是5.1.4版本,怎么还提示下
面的错误
--   package 'lua>=5.1' not found
--   package 'lua<=5.1.99' not found

Original comment by lxn...@gmail.com on 1 Mar 2010 at 3:29

GoogleCodeExporter commented 9 years ago
You should install 'liblua5.1-0-dev', not 'lua5.1'

Original comment by arcpp.zju@gmail.com on 1 Mar 2010 at 3:34

GoogleCodeExporter commented 9 years ago
装了呀

Original comment by lxn...@gmail.com on 1 Mar 2010 at 3:35

GoogleCodeExporter commented 9 years ago
According to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498416

You can change 'lua' in src/CMakeLists.txt to 'lua-5.1' and try again.
If it doesn't work, try 'lua5.1'.

If either 'lua5.1' or 'lua-5.1' works, please let me know which one.

Original comment by arcpp.zju@gmail.com on 1 Mar 2010 at 4:02

GoogleCodeExporter commented 9 years ago

Original comment by arcpp.zju@gmail.com on 1 Mar 2010 at 4:06

GoogleCodeExporter commented 9 years ago
在debian下测试过么?

# ./build.sh 
-- 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 modules
'ibus-1.0>=1.2.0;ibus-1.0<=1.2.98;lua5.1>=5.1;lua5.1<=5.1.99;glib-2.0>=2.22;gthr
ead-2.0>=2.22;dbus-1>=1.2;sqlite3;gtk+-2.0;gdk-2.0'
--   found ibus-1.0, version 1.2.0.20091215
--   found ibus-1.0, version 1.2.0.20091215
--   found lua5.1, version 5.1.4
--   found lua5.1, version 5.1.4
--   found glib-2.0, version 2.22.3
--   found gthread-2.0, version 2.22.3
--   found dbus-1, version 1.2.16
--   found sqlite3, version 3.6.16
--   found gtk+-2.0, version 2.18.3
--   found gdk-2.0, version 2.18.3
-- Configuring done
-- Generating done
-- Build files have been written to: 
/usr/local/src/ibus-sogoupycc-0.1.1.20100228/build
Scanning dependencies of target ibus-sogoupycc
[ 14%] Building CXX object bin/CMakeFiles/ibus-sogoupycc.dir/PinyinUtility.cpp.o
[ 28%] Building CXX object bin/CMakeFiles/ibus-sogoupycc.dir/LuaBinding.cpp.o
[ 42%] Building CXX object 
bin/CMakeFiles/ibus-sogoupycc.dir/PinyinDatabase.cpp.o
[ 57%] Building CXX object 
bin/CMakeFiles/ibus-sogoupycc.dir/PinyinCloudClient.cpp.o
[ 71%] Building CXX object bin/CMakeFiles/ibus-sogoupycc.dir/engine.cpp.o
/usr/local/src/ibus-sogoupycc-0.1.1.20100228/src/engine.cpp: In function ‘void
engineInit(IBusSgpyccEngine*)’:
/usr/local/src/ibus-sogoupycc-0.1.1.20100228/src/engine.cpp:318: error:
‘ibus_lookup_table_set_orientation’ was not declared in this scope
make[2]: *** [bin/CMakeFiles/ibus-sogoupycc.dir/engine.cpp.o] 错误 1
make[1]: *** [bin/CMakeFiles/ibus-sogoupycc.dir/all] 错误 2
make: *** [all] 错误 2

Original comment by lxn...@gmail.com on 1 Mar 2010 at 4:22

GoogleCodeExporter commented 9 years ago
ibus version 1.2.0.20100111 should work.

I will update 'ibus-1.0>=1.2.0' to 'ibus-1.0>=1.2.0.20100111'.

Original comment by arcpp.zju@gmail.com on 1 Mar 2010 at 4:58

GoogleCodeExporter commented 9 years ago
svn r69 should fix this.
'lua5.1', 'lua-5.1', 'lua' pkg-config names are recognized.

Original comment by arcpp.zju@gmail.com on 1 Mar 2010 at 5:33