gr-acars2 icon indicating copy to clipboard operation
gr-acars2 copied to clipboard

Doesn't compile on kubuntu 14.04

Open sgofferj opened this issue 11 years ago • 5 comments

sgofferj@enterprise:~/source/gr-acars2-master/build$ cmake .. -- The CXX compiler identification is GNU 4.8.2 -- The C compiler identification is GNU 4.8.2 -- 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 -- 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 -- Build type not specified: defaulting to release. -- Could NOT find Boost CMake Error at CMakeLists.txt:62 (message): Boost required to compile acars2

However, libboost and libboost-dev are installed.

sgofferj avatar Aug 05 '14 13:08 sgofferj

Hi, Thanks for your report. I tried to install gr-acars on a newly installed kubuntu 14.04 (32bit) and I could reproduce the problem. In my case, this was due to the missing packages libboost-filesystem-dev and libboost-system-dev as can be seen from this output:

$ cmake -DBoost_DEBUG=ON ..
-- The CXX compiler identification is GNU 4.8.2
-- The C compiler identification is GNU 4.8.2
-- 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
-- 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
-- Build type not specified: defaulting to release.

...some more output...

-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:983 ] Searching for SYSTEM_LIBRARY_DEBUG: boost_system-gcc48-mt-d-1_54;boost_system-gcc48-mt-d;boost_system-mt-d-1_54;boost_system-mt-d;boost_system-mt;boost_system
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:1034 ] Boost_FOUND = 1
-- Could NOT find Boost
Boost version: 1.54.0
Boost include path: /usr/include
Could not find the following Boost libraries:
        boost_filesystem
        boost_system
No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.
CMake Error at CMakeLists.txt:62 (message):
  Boost required to compile acars2


-- Configuring incomplete, errors occurred!

So installing the missing packages helped in my case:

$ sudo apt-get install libboost-filesystem-dev libboost-system-dev

But: the build didn't work yet, next I had to install the pkg-config, gnuradio-dev as well as liblog4cpp5-dev packages: $ sudo apt-get install pkg-config gnuradio-dev liblog4cpp5-dev

Hope this also works for you. If not, please include the output of cmake -DBoost_DEBUG=ON ... And also basic infos like: uname -a and lsb_release -a.

antoinet avatar Aug 05 '14 22:08 antoinet

Jeps, that solved it. Thank you! Do you happen to have any further documentation or a sample grc file?

sgofferj avatar Aug 05 '14 23:08 sgofferj

There seems to be one more issue. I tried to run a simple setting in grc after looking at your python script and I get this:

Traceback (most recent call last): File "/home/sgofferj/top_block.py", line 22, in import acars2 File "/usr/lib/python2.7/dist-packages/acars2/init.py", line 45, in from acars2_swig import * ImportError: No module named acars2_swig

sgofferj avatar Aug 05 '14 23:08 sgofferj

I've updated the build structure in a1b017953fd9c4946924c5c17bc0976b5f0be03e, the swig files should be installed correctly now. You'll also find an example grc graph from bab2ebeada288f05827e469fe7b03bc851d0681d in examples/simple.grc. Let me now if this works.

Almost forgot: the new build structure requires package libcppunit-dev.

antoinet avatar Aug 09 '14 14:08 antoinet

I am having the same problem as sgofferj (ImportError: No module named acars2_swig) on Ubuntu 15.04 with GNU Radio 3.7.5. All files are in the correct place (the acars2/swig/acars2_swig.i is in place, etc.) but it doesn't find it.

Is there a solution to this?

lepido avatar Sep 04 '15 17:09 lepido