The CMakeLists.txt in Gearbox is from 2010. It probably doesn't work with CMake 2.8.

What particular library do you want to use from Gearbox?

Geoff


On 7 March 2013 03:56, Logical Guy <logical.guy70@gmail.com> wrote:
Hi,

I'm trying to install gearbox on gentoo by following the instructions on the Gentoo install page.

I'm attaching the following files to the email: my modified gearbox.ebuild, build.log, environment, eclass-debug.

Please help on how to proceed.  Thanks.


I downloaded the gearbox-10.11.tar.gz file and extracted the gearbox.ebuild file.
I placed the file in /usr/local/portage/dev-libs/gearbox  and made the path known to portage.
I then generated a digest for it using the ebuild tool.

When I tried emerging it then, couldn't download it from sourceforge - gave me a 404 error.  So I had to tweak the url settings in the ebuild to fix that. 
Then it gave me an error about not being able to find the work directory in /tmp for gearbox.  So I had to change the S variable in the ebuild to fix it.

It then went ahead a bit more but failed again with the following messages:

ro-laptop gearbox # emerge gearbox
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-libs/gearbox-10.11 from x-portage
 * gearbox-10.11.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                       [ ok ]
>>> Unpacking source...
>>> Unpacking gearbox-10.11.tar.gz to /var/tmp/portage/dev-libs/gearbox-10.11/work
>>> Source unpacked in /var/tmp/portage/dev-libs/gearbox-10.11/work
>>> Compiling source in /var/tmp/portage/dev-libs/gearbox-10.11/work/gearbox-10.11 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/dev-libs/gearbox-10.11/work/gearbox-10.11_build"
cmake --no-warn-unused-cli -C /var/tmp/portage/dev-libs/gearbox-10.11/work/gearbox-10.11_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_LIB_BASIC=ON -DENABLE_LIB_GBXADVANCED=ON -DENABLE_LIB_GBXGARMINACFR=OFF -DENABLE_LIB_GBXSERIALACFR=OFF -DENABLE_LIB_GBXSICKACFR=OFF -DENABLE_LIB_GBXSMARTBATTERYACFR=OFF -DENABLE_LIB_GBXUTILACFR=OFF -DENABLE_LIB_HOKUYO_AIST=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/dev-libs/gearbox-10.11/work/gearbox-10.11_build/gentoo_rules.cmake  /var/tmp/portage/dev-libs/gearbox-10.11/work/gearbox-10.11
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/dev-libs/gearbox-10.11/work/gearbox-10.11_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Setting project name to gearbox
-- Setting project version to 10.11.0
-- Running on Linux
-- Linux x86_64 Target Detected
-- Installation directory was set to /usr
-- Build type set to 'Gentoo' by user.
-- gcc version: x86_64-pc-linux-gnu-gcc (Gentoo 4.6.3 p1.11, pie-0.5.2) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-- Checking gcc version - ok
-- Writing config.h for gearbox
-- Looking for termio.h
-- Looking for termio.h - found
-- Looking for linux/input.h
-- Looking for linux/input.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Looking for sys/filio.h
-- Looking for sys/filio.h - not found
-- Looking for strnlen
-- Looking for strnlen - found
-- == SRC ==
-- Not planning to build library:     basicexample because disabled by user, use ccmake to enable
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Planning to build shared library:  flexiport-1.0.0
-- Planning to build executable:      porttoport
-- Planning to build executable:      serial_example
-- Planning to build executable:      tcp_example
-- Planning to build executable:      udp_example
-- Not planning to build library:     GbxAdvancedExample because disabled by user, use ccmake to enable
-- Not planning to build library:     GbxSerialAcfr because disabled by user, use ccmake to enable
-- Not planning to build library:     GbxUtilAcfr because disabled by user, use ccmake to enable
-- Not planning to build library:     GbxGarminAcfr because disabled by user, use ccmake to enable
-- Not planning to build library:     GbxNovatelAcfr because GbxUtilAcfr is not being built
-- Not planning to build library:     GbxSickAcfr because disabled by user, use ccmake to enable
-- Looking for libIceUtil - not found
-- Not planning to build library:     GbxIceUtilAcfr because libIceUtil not found
-- Not planning to build library:     GbxSmartBatteryAcfr because disabled by user, use ccmake to enable
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Planning to build shared library:  hokuyo_aist-2.0.0
-- Planning to build executable:      hokuyo_aist_getid
-- Planning to build executable:      hokuyo_aist_example
-- Found PythonLibs: /usr/lib64/libpython2.7.so (found version "2.7.3")
-- Boost version: 1.49.0
-- Found the following Boost libraries:
--   python
CMake Error at src/hokuyo_aist/python/CMakeLists.txt:20 (GET_FILENAME_COMPONENT):
  get_filename_component unknown component
  /usr/lib64/libboost_python-2.7-mt-1_49.so


CMake Error at src/hokuyo_aist/python/CMakeLists.txt:22 (STRING):
  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.


-- Hokuyo_aist Python bindings will be built.
-- == SUMMARY ==
-- Project name      gearbox
-- Project version   10.11.0
-- Platform              Linux-3.7.10-gentoo
-- CMake version         2.8-patch 9
-- Install dir           /usr
-- Default library type  SHARED
-- Will build 6 executables  :
--     hokuyo_aist_example;hokuyo_aist_getid;porttoport;serial_example;tcp_example;udp_example
-- Will build 2 libraries  :
--     flexiport-1.0.0;hokuyo_aist-2.0.0
-- Will NOT build 9 libraries (see above for reasons):
--     GbxAdvancedExample;GbxGarminAcfr;GbxIceUtilAcfr;GbxNovatelAcfr;GbxSerialAcfr;GbxSickAcfr;GbxSmartBatteryAcfr;GbxUtilAcfr;basicexample
-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C               -march=native -O2 -pipe -mno-avx
C++             -march=native -O2 -pipe -mno-avx
Linker flags:
Executable       -Wl,-O1 -Wl,--as-needed
Module           -Wl,-O1 -Wl,--as-needed
Shared           -Wl,-O1 -Wl,--as-needed

-- Configuring incomplete, errors occurred!
 * ERROR: dev-libs/gearbox-10.11 failed (compile phase):
 *   cmake failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 2792:  Called cmake-utils_src_compile
 *   environment, line  724:  Called _execute_optionaly 'src_compile'
 *   environment, line  232:  Called enable_cmake-utils_src_compile
 *   environment, line  976:  Called cmake-utils_src_configure
 *   environment, line  728:  Called _execute_optionaly 'src_configure'
 *   environment, line  232:  Called enable_cmake-utils_src_configure
 *   environment, line 1055:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 *
 * If you need support, post the output of `emerge --info '=dev-libs/gearbox-10.11'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/gearbox-10.11'`.
 * This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/dev-libs/gearbox-10.11/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/gearbox-10.11/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/gearbox-10.11/work/gearbox-10.11_build'
 * S: '/var/tmp/portage/dev-libs/gearbox-10.11/work/gearbox-10.11'

>>> Failed to emerge dev-libs/gearbox-10.11, Log file:

>>>  '/var/tmp/portage/dev-libs/gearbox-10.11/temp/build.log'

 * Messages for package dev-libs/gearbox-10.11:

 * ERROR: dev-libs/gearbox-10.11 failed (compile phase):
 *   cmake failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 2792:  Called cmake-utils_src_compile
 *   environment, line  724:  Called _execute_optionaly 'src_compile'
 *   environment, line  232:  Called enable_cmake-utils_src_compile
 *   environment, line  976:  Called cmake-utils_src_configure
 *   environment, line  728:  Called _execute_optionaly 'src_configure'
 *   environment, line  232:  Called enable_cmake-utils_src_configure
 *   environment, line 1055:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 *
 * If you need support, post the output of `emerge --info '=dev-libs/gearbox-10.11'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/gearbox-10.11'`.
 * This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/dev-libs/gearbox-10.11/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/gearbox-10.11/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/gearbox-10.11/work/gearbox-10.11_build'
 * S: '/var/tmp/portage/dev-libs/gearbox-10.11/work/gearbox-10.11'


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Gearbox-users mailing list
Gearbox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gearbox-users