MRPT / mrpt

:zap: The Mobile Robot Programming Toolkit (MRPT)
https://docs.mrpt.org/reference/latest/
BSD 3-Clause "New" or "Revised" License
1.94k stars 628 forks source link

wxWidgets not found #83

Closed romulogcerqueira closed 10 years ago

romulogcerqueira commented 10 years ago

Hi everybody!

I would like to congratulate you by MRPT Project. It is a great work!

I have trying to compile kinect-stereo-calib, but I found some error in cmake comand:

romulo@fieb:~/mrpt-git/training/kinect-stereo-calib/build$ cmake .. -- The C compiler identification is GNU 4.8.2 -- The CXX compiler identification is GNU 4.8.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- 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 -- wxWidgets not found!: This target will not be included in the Makefiles -- Configuring done -- Generating done -- Build files have been written to: /home/romulo/mrpt-git/training/kinect-stereo-calib/build

How can I solve this?

jlblancoc commented 10 years ago

Hi Romulo,

I guess you only need to install the -dev packages for wxWidgets. See Debian/Ubuntu instructions here: http://www.mrpt.org/Building_and_Installing_Instructions

Specifically, you may be missing:

sudo apt-get install libwxgtk2.8-dev 

PS: Don't call cmake directly with the kinect app directory as source directory. It's intended to be built inside the entire MRPT CMake build system. If you want a stand-alone / separate project, you will have to add FIND_PACKAGE(wxWidgets) etc. to your CMake scripts