Installing Compiling Rovergauge on Linux (Mint i386)

356 views
Skip to first unread message

colin.h...@googlemail.com

unread,
Aug 25, 2015, 1:50:25 PM8/25/15
to RoverGauge
Hi

I've got a netbook that would be ideal to run Rovergauge on; I installed a Mint distribution on it for another use and have been trying to get Rovergauge installed.

Its an i386 architecture - I couldn't find an i386 compiled version on the Rovergauge page so I attempted to compile it from the source code.

I have (I think) successfully compiled the libcomm14cux library using the instructions on the github site. - Is there a way to test it?

I don't seem to be able to get the Rovergauge to compile though. I've installed cmake and I believe I have installed the Qt Software Development Kit which were both available as packages in the mint distribution.

I was following the same command steps as for libcomm14cux 

However when I try to compile it, the cmake command fails because it can't find qt5widgets

I'm kind of stuck here. I'm reasonably computer savvy but I wouldn't class myself as a Linux expert so I may be missing something obvious.

If there is another Linux distribution that people have used successfully with Rovergauge I'm quite happy to try that.

Output from cmake command below

Make Warning at CMakeLists.txt:42 (find_package):
  By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Qt5Widgets", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Widgets" with
  any of the following names:

    Qt5WidgetsConfig.cmake
    qt5widgets-config.cmake

  Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
  "Qt5Widgets_DIR" to a directory containing one of the above files.  If
  "Qt5Widgets" provides a separate development package or SDK, be sure it has
  been installed.


CMake Error at CMakeLists.txt:46 (include_directories):
  include_directories given empty-string as include directory.


CMake Error at CMakeLists.txt:52 (qt5_wrap_ui):
  Unknown CMake command "qt5_wrap_ui".


-- Configuring incomplete, errors occurred!
See also "/home/colin/rovergauge-0.7.6/CMakeFiles/CMakeOutput.log".

Charles Galpin

unread,
Aug 25, 2015, 6:34:03 PM8/25/15
to RoverGauge
Colin (H), I don’t think you need to use cmake. IIRC, you just need to run “qmake”, then “make”.

colin.h...@googlemail.com

unread,
Aug 26, 2015, 3:00:33 AM8/26/15
to RoverGauge
Thanks

Do you know the command line?

I tried "qmake ."

but it returned 'error in project file'



Colin Bourassa

unread,
Aug 26, 2015, 6:33:54 PM8/26/15
to RoverGauge
Sorry, the build instructions are a bit out of date. I'll try to help:

Once you've built libcomm14cux, you should install the library and the read14cux/write14cux executables to the appropriate system directories by running "sudo make install". You should then be able to run "read14cux" from anywhere. When connected to an ECU, you can test it by doing something like reading one of the fuel maps:

read14cux /dev/ttyUSB0 0xC000 128

If that works, then change to the RoverGauge source directory. Create a subdirectory named something like "build" where CMake can put its files. Change into that directory and run "cmake .." to point it back up to the main source directory with CMakeLists.txt. Once this is done, you should make a Makefile that will build the RoverGauge executable.

--Colin

colin.h...@googlemail.com

unread,
Aug 27, 2015, 5:05:39 AM8/27/15
to RoverGauge
Thanks Colin

I'll give that a try tonight. Forgive my ignorance - how do I 'make a Makefile that will build the RoverGauge executable.'?

Colin

colin.h...@googlemail.com

unread,
Aug 27, 2015, 1:26:01 PM8/27/15
to RoverGauge
Hi

OK I I downloaded a fresh copy of the zip file and unzipped it to my home directory. created a build folder then in terminal I changed to the build folder and ran the cmake .. command but it still fails complaining about the qt5widgets

colin.h...@googlemail.com

unread,
Aug 27, 2015, 1:32:22 PM8/27/15
to RoverGauge
This is the output from the cmake command
colin@colin-1015PX ~/rovergauge-0.7.6 $ mkdir build
colin@colin-1015PX ~/rovergauge-0.7.6 $ cd build
colin@colin-1015PX ~/rovergauge-0.7.6/build $ cmake ..
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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
CMake Warning at CMakeLists.txt:42 (find_package):

  By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Qt5Widgets", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Widgets" with
  any of the following names:

    Qt5WidgetsConfig.cmake
    qt5widgets-config.cmake

  Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
  "Qt5Widgets_DIR" to a directory containing one of the above files.  If
  "Qt5Widgets" provides a separate development package or SDK, be sure it has
  been installed.


CMake Error at CMakeLists.txt:46 (include_directories):
  include_directories given empty-string as include directory.


CMake Error at CMakeLists.txt:52 (qt5_wrap_ui):
  Unknown CMake command "qt5_wrap_ui".


-- Configuring incomplete, errors occurred!
See also "/home/colin/rovergauge-0.7.6/build/CMakeFiles/CMakeOutput.log".

Colin Bourassa

unread,
Aug 27, 2015, 5:21:55 PM8/27/15
to RoverGauge
Hmm. I don't have to adjust any environment variables on my Ubuntu 15.04 machine for CMake to find Qt5. Are you sure that you have all the appropriate Qt5 packages installed? On my system, Qt5Core, Qt5Widgets, and Qt5Gui are all available individually. Check that you have something equivalent to the following packages installed:

libqt5core5
libqt5widgets5
libqt5gui5

If you have the required Qt packages, you may need to set one of the environment variables that CMake recommends, such as CMAKE_PREFIX_PATH. On my system, I think this would be /usr/lib/x86_64-linux-gnu/cmake/. (You would need a slightly different path depending on your system architecture.)

colin.h...@googlemail.com

unread,
Aug 27, 2015, 6:32:42 PM8/27/15
to RoverGauge
Thanks Colin.

I've figured it out. I had all the packages you mentioned so I searched a bit harder for qt5 packages and although I had installed the SDK there was a package called qt5-default that wasn't installed which sets qt5 to be the default qt version. Once I did this the compilation was successful and I've now got a rovergauge program I can execute.

Will try it out tomorrow

colin.h...@googlemail.com

unread,
Aug 28, 2015, 9:32:51 AM8/28/15
to RoverGauge
All working thanks

Once I figured out that I needed to be in the dialout group to be able to read the usb port it started to work.

Steps I went through (to remind me if I need to reinstall)

User needs to be in the dialout group to access the usb port
setserial is useful for checking if you have access to the serial port (package needs to be installed)

Install cmake package from Synaptics
Need to install qt5
on Mint synaptics packages 
qt-sdk
qt5default

libcomm14cux 
create a subdirectory
move to subdirectory
cmake ..
make
sudo make install

Test with
read14cux /dev/ttyUSB0 0xC000 128

download rovergauge
create a subdirectory
move to subdirectory
cmake ..
make
sudo make install

Reply all
Reply to author
Forward
0 new messages