On 31/05/16 07:40, Marcus Müller wrote:
That shouldn't be necessary. If I remember correctly, my automated test builds based on PyBOMBS go through without installing an old version of SWIG.Marcus, Here is the full trace - again this was with gr-ra-blocks and swig 3.0. When, with your advice, I swapped it out for swig 2.0 , everything worked. Also, as mentioned in the previous e-mail, GNURadio (using your script) did work correctly even with swig 3.0 john@i7Ubuntu:~/gr-ra_blocks/trunk$ cmake . -- 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 GNU Radio Module: RUNTIME * INCLUDES=/usr/local/include * LIBS=/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so GNURADIO_RUNTIME_FOUND = TRUE Checking for GNU Radio Module: BLOCKS * INCLUDES=/usr/local/include * LIBS=/usr/local/lib/libgnuradio-blocks.so;/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so GNURADIO_BLOCKS_FOUND = TRUE CMake Warning (dev) at /usr/local/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-ra_blocks". 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:71 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it. -- -- Checking for module SWIG -- Command "/usr/bin/swig2.0 -swiglib" failed with output: -- Found SWIG version 2.0.12. -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.11+") -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.11+", minimum required is "2") -- Found Doxygen: /usr/bin/doxygen (found version "1.8.11") -- Configuring done -- Generating done -- Build files have been written to: /home/john/gr-ra_blocks/trunk john@i7Ubuntu:~/gr-ra_blocks/trunk$ make Scanning dependencies of target gnuradio-ra_blocks [ 4%] Building CXX object lib/CMakeFiles/gnuradio-ra_blocks.dir/slicer_impl.cc.o [ 8%] Building CXX object lib/CMakeFiles/gnuradio-ra_blocks.dir/vector_power_impl.cc.o [ 12%] Building CXX object lib/CMakeFiles/gnuradio-ra_blocks.dir/synch_folder_impl.cc.o [ 16%] Building CXX object lib/CMakeFiles/gnuradio-ra_blocks.dir/synch_detect_impl.cc.o [ 20%] Building CXX object lib/CMakeFiles/gnuradio-ra_blocks.dir/synch_clock_impl.cc.o [ 24%] Linking CXX shared library libgnuradio-ra_blocks.so [ 24%] Built target gnuradio-ra_blocks Scanning dependencies of target test-ra_blocks [ 28%] Building CXX object lib/CMakeFiles/test-ra_blocks.dir/test_ra_blocks.cc.o [ 32%] Building CXX object lib/CMakeFiles/test-ra_blocks.dir/qa_ra_blocks.cc.o [ 36%] Linking CXX executable test-ra_blocks [ 36%] Built target test-ra_blocks Scanning dependencies of target ra_blocks_swig_swig_doc [ 36%] Built target ra_blocks_swig_swig_doc Scanning dependencies of target _ra_blocks_swig_swig_tag [ 40%] Building CXX object swig/CMakeFiles/_ra_blocks_swig_swig_tag.dir/_ra_blocks_swig_swig_tag.cpp.o [ 44%] Linking CXX executable _ra_blocks_swig_swig_tag [ 44%] Built target _ra_blocks_swig_swig_tag [ 48%] Generating ra_blocks_swig.tag Scanning dependencies of target ra_blocks_swig_swig_2d0df [ 52%] Building CXX object swig/CMakeFiles/ra_blocks_swig_swig_2d0df.dir/ra_blocks_swig_swig_2d0df.cpp.o [ 56%] Linking CXX executable ra_blocks_swig_swig_2d0df Swig source /bin/sh: 1: /usr/bin/swig2.0: not found swig/CMakeFiles/ra_blocks_swig_swig_2d0df.dir/build.make:134: recipe for target 'swig/ra_blocks_swig_swig_2d0df' failed make[2]: *** [swig/ra_blocks_swig_swig_2d0df] Error 127 make[2]: *** Deleting file 'swig/ra_blocks_swig_swig_2d0df' CMakeFiles/Makefile2:274: recipe for target 'swig/CMakeFiles/ra_blocks_swig_swig_2d0df.dir/all' failed make[1]: *** [swig/CMakeFiles/ra_blocks_swig_swig_2d0df.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 john@i7Ubuntu:~/gr-ra_blocks/trunk$
Hence, we'd be interested in where things fail on your machine with swig3.
Best regards,
Marcus
Am 31. Mai 2016 01:53:54 MESZ, schrieb John Shields <sla1nte2001@gmail.com>:-- Sent from my Android device with K-9 Mail. Please excuse my brevity.On 30/05/16 22:29, Marcus D. Leech wrote:
Thanks Marcus,On 05/30/2016 06:27 PM, John Shields wrote:
oops, it was not simple_ra that I tried to re-compile against the new GNURadio etc., it was gr-ra_blocks.Which is a pre-req for simple_ra
Sorry,
John
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
16.04 comes with swig 3.0 so I removed that and installed swig 2.0 and it seems to work.
Kind Regards,
John
Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
No comments:
Post a Comment