Skip to content
This repository has been archived by the owner on Feb 15, 2020. It is now read-only.

CMake uses Python 3 instead of Python 2 when both are available #9

Open
jsternberg opened this issue Jan 12, 2013 · 0 comments
Open
Assignees

Comments

@jsternberg
Copy link
Contributor

CMake is stupid. I'll take care of this one at some point. This affects Linux Mint 14 (nadia). Problem area is in bold.

jsternberg@jsternberg-laptop ~/tortuga/build $ cmake ..
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- 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.45.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- date_time
-- program_options
-- python
-- regex
-- serialization
-- signals
-- thread
-- Found Log4CPP
-- Found PythonLibs: /usr/lib/libpython2.7.so (found version "2.7.3")
-- Found UnitTest++
-- Found wxWidgets: TRUE
-- Found FANN: /usr/lib/libfann.so
-- Found FLOATFANN: /usr/lib/libfloatfann.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- Features: pattern,drivers,core,math,vehicle,estimation,control,vision,network,logging,wrappers,sonar,vision_tools,vision_viewer,plot
-- Features header file generated
-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
-- Found USB: /usr/lib/x86_64-linux-gnu/libusb.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jsternberg/tortuga/build
jsternberg@jsternberg-laptop ~/tortuga/build $ rm -rf *
jsternberg@jsternberg-laptop ~/tortuga/build $ sudo apt-get install libpython3.2Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libpython3.2
0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
Need to get 1,319 kB of archives.
After this operation, 3,416 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ quantal-updates/main libpython3.2 amd64 3.2.3-6ubuntu3.1 [1,319 kB]
Fetched 1,319 kB in 1s (1,116 kB/s)
Selecting previously unselected package libpython3.2.
(Reading database ... 170331 files and directories currently installed.)
Unpacking libpython3.2 (from .../libpython3.2_3.2.3-6ubuntu3.1_amd64.deb) ...
Setting up libpython3.2 (3.2.3-6ubuntu3.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
jsternberg@jsternberg-laptop ~/tortuga/build $ cmake ..
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- 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.45.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- date_time
-- program_options
-- python
-- regex
-- serialization
-- signals
-- thread
-- Found Log4CPP
-- Found PythonLibs: /usr/lib/python3.2/config/libpython3.2.so (found version "2.7.3")
-- Found UnitTest++
-- Found wxWidgets: TRUE
-- Found FANN: /usr/lib/libfann.so
-- Found FLOATFANN: /usr/lib/libfloatfann.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- Features: pattern,drivers,core,math,vehicle,estimation,control,vision,network,logging,wrappers,sonar,vision_tools,vision_viewer,plot
-- Features header file generated
-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
-- Found USB: /usr/lib/x86_64-linux-gnu/libusb.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jsternberg/tortuga/build

@ghost ghost assigned jsternberg Jan 12, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant