discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Custom OOT Module Install Ubuntu 16.04


From: Richard Bell
Subject: Re: [Discuss-gnuradio] Custom OOT Module Install Ubuntu 16.04
Date: Thu, 26 May 2016 13:19:14 -0700

Thanks Ron. I think this is narrowing down the issue. When I ran that command, I did not get any entries containing libgnuradio back. When I run the same command on a working Ubuntu 14.04 install, I get many of those entries.

I added the file you mentioned with the path to the base install gnuradio libraries and they then show up in the output list. The question is, why was base install gnuradio working at all without knowing the location to those libraries?

Second question, why do I have to do this at all, shouldn't Pybombs have handled this for me?

Lastly, even after adding this gnuradio.conf file, I am still unable to compile OOT. The process returns the same cmake warnings and make error as it did before. No change at all.

On Thu, May 26, 2016 at 11:46 AM, Ron Economos <address@hidden> wrote:
You probably don't have a path to the GNU Radio libraries for the linker. Try this command:

sudo ldconfig -v | grep gnuradio

The way I like to resolve this is to add a file to /etc/ld.so.conf.d called gnuradio.conf with the path to the libraries. On my setup, it contains:

/opt/gnuradio-3.7.10git/lib

Ron


On 05/26/2016 11:05 AM, Richard Bell wrote:
Yeah I've blown away build a few times now. I tried this to a few different OOT modules as well. They all produce the same output I've posted. Weird how GNU Radio istelf had no cmake issues but child OOT modules do.

On Thu, May 26, 2016 at 10:52 AM, Ben Hilburn <address@hidden> wrote:
Pretty strange. Stupid question: I assume you have tried blowing away the build directory and giving it another go? Wondering if this is the CMake cache mucking you up.

This might be worth a try?

Cheers,
Ben

On Thu, May 26, 2016 at 12:47 PM, Richard Bell <address@hidden> wrote:
Then it spit out this error message:

 CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:203
 (CMAKE_PARSE_ARGUMENTS):
   Unknown CMake command "CMAKE_PARSE_ARGUMENTS".
 Call Stack (most recent call first):
   /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:52 (find_package_handle_standard_args)
   cmake/Modules/FindCppUnit.cmake:12 (INCLUDE)
   CMakeLists.txt:106 (find_package)

I don't know what to make of this, do you?

On Thu, May 26, 2016 at 9:45 AM, Richard Bell <address@hidden> wrote:
It seems to be looking into the grprefix directory, this is what I get from ccmake:

 CMAKE_BUILD_TYPE                   *                                                                 
 CMAKE_INSTALL_PREFIX            */usr/local                                                       
 ENABLE_DOXYGEN                     *ON                                                               
 GNURADIO_RUNTIME_LIBRARIES_gnu  */home/rbell/Documents/grprefix/lib/libgnuradio-pmt.so            
 GNURADIO_RUNTIME_LIBRARIES_gnu  */home/rbell/Documents/grprefix/lib/libgnuradio-runtime.so        
 Gnuradio_DIR                                */home/rbell/Documents/grprefix/lib/cmake/gnuradio                
 LIB_SUFFIX                                  *                                                                 
 QA_PYTHON_EXECUTABLE         */usr/bin/python2                                                 
 SHELL                                          */bin/sh    

On Thu, May 26, 2016 at 7:54 AM, Ben Hilburn <address@hidden> wrote:
Hi Richard -

Can you try peeking into the CMAKE madness to see what paths it selected for those two gnuradio libraries? I've found the curses-based CMAKE UI to be pretty helpful in seeing what the build parameters are: $ ccmake

Cheers,
Ben

On Wed, May 25, 2016 at 4:19 PM, Richard Bell <address@hidden> wrote:
I'm trying to compile one of my custom OOT modules on this new Ubuntu 16.04 install and I wonder if I'm having compatibility issues. I'm getting what looks like cmake issues that cause make to error out. I made sure to feed the prefix location into cmake. There are warnings that I'm not used to seeing in the cmake output. make says it can't find a few required libraries that cmake reported it found. Here is the full cmake and make output:

address@hidden:~/Documents/pcodes/radio_devel/custom_grblocks/gr-add_tagged_stream_once/build$ cmake -DCMAKE_INSTALL_PREFIX=/home/rbell/Documents/grprefix/ ..
-- The CXX compiler identification is GNU 5.3.1
-- The C compiler identification is GNU 5.3.1
-- 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
-- Detecting CXX compile features
-- Detecting CXX compile features - 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
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   filesystem
--   system
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'cppunit'
--   Found cppunit, version 1.13.2
-- Found CPPUNIT: /usr/lib/x86_64-linux-gnu/libcppunit.so;dl 
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.11")
Checking for GNU Radio Module: RUNTIME
-- Checking for module 'gnuradio-runtime'
--   Found gnuradio-runtime, version 3.7.10git
 * INCLUDES=/home/rbell/Documents/grprefix/include
 * LIBS=/home/rbell/Documents/grprefix/lib/libgnuradio-runtime.so;/home/rbell/Documents/grprefix/lib/libgnuradio-pmt.so
-- Found GNURADIO_RUNTIME: /home/rbell/Documents/grprefix/lib/libgnuradio-runtime.so;/home/rbell/Documents/grprefix/lib/libgnuradio-pmt.so 
GNURADIO_RUNTIME_FOUND = TRUE
CMake Warning (dev) at /home/rbell/Documents/grprefix/lib/cmake/gnuradio/GrTest.cmake:45 (get_target_property):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target
  "test-add_tagged_stream_once".  Use the target name directly with
  add_custom_command, or use the generator _expression_ $<TARGET_FILE>, as
  appropriate.

Call Stack (most recent call first):
  lib/CMakeLists.txt:79 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

--
-- Checking for module SWIG
-- Found SWIG version 2.0.12.
-- Found SWIG: /usr/bin/swig2.0 
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.11+", minimum required is "2")
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.11", minimum required is "2")
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of size_t
-- Check size of size_t - done
-- Check size of unsigned int
-- Check size of unsigned int - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Check size of unsigned long long
-- Check size of unsigned long long - done
-- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE
-- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE - Success
CMake Warning (dev) at /home/rbell/Documents/grprefix/lib/cmake/gnuradio/GrTest.cmake:45 (get_target_property):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target
  "gnuradio-add_tagged_stream_once".  Use the target name directly with
  add_custom_command, or use the generator _expression_ $<TARGET_FILE>, as
  appropriate.

Call Stack (most recent call first):
  python/CMakeLists.txt:44 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /home/rbell/Documents/grprefix/lib/cmake/gnuradio/GrTest.cmake:45 (get_target_property):
  Policy CMP0045 is not set: Error on non-existent target in
  get_target_property.  Run "cmake --help-policy CMP0045" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  get_target_property() called with non-existent target "/usr/bin/python2".
Call Stack (most recent call first):
  python/CMakeLists.txt:44 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /home/rbell/Documents/grprefix/lib/cmake/gnuradio/GrTest.cmake:45 (get_target_property):
  Policy CMP0045 is not set: Error on non-existent target in
  get_target_property.  Run "cmake --help-policy CMP0045" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  get_target_property() called with non-existent target
  "/home/rbell/Documents/pcodes/radio_devel/custom_grblocks/gr-add_tagged_stream_once/python/qa_add_tagged_stream_once.py".
Call Stack (most recent call first):
  python/CMakeLists.txt:44 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/rbell/Documents/pcodes/radio_devel/custom_grblocks/gr-add_tagged_stream_once/build


address@hidden:~/Documents/pcodes/radio_devel/custom_grblocks/gr-add_tagged_stream_once/build$ sudo make install
Scanning dependencies of target gnuradio-add_tagged_stream_once
[  4%] Building CXX object lib/CMakeFiles/gnuradio-add_tagged_stream_once.dir/add_tagged_stream_once_impl.cc.o
[  8%] Linking CXX shared library libgnuradio-add_tagged_stream_once.so
/usr/bin/ld: cannot find -lgnuradio-runtime
/usr/bin/ld: cannot find -lgnuradio-pmt
collect2: error: ld returned 1 exit status
lib/CMakeFiles/gnuradio-add_tagged_stream_once.dir/build.make:98: recipe for target 'lib/libgnuradio-add_tagged_stream_once.so' failed
make[2]: *** [lib/libgnuradio-add_tagged_stream_once.so] Error 1
CMakeFiles/Makefile2:137: recipe for target 'lib/CMakeFiles/gnuradio-add_tagged_stream_once.dir/all' failed
make[1]: *** [lib/CMakeFiles/gnuradio-add_tagged_stream_once.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Anyone know how to fix this?


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio








_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



reply via email to

[Prev in Thread] Current Thread [Next in Thread]