[USRP-users] How update CMake version in the software development kit (SDR)?

Torbjörn Olsson torbjorn.olsson at atletor.se
Wed Oct 4 10:47:42 EDT 2017


Philip,

Thank you very much for your help. I have now put the image and sdk you suggested on the SD-card. I got the rfnoc-devel branch of UHD (v3.7.10.2) up and running. However, when trying to install gnuradio I get the following output from my host machine:

—————————————————————————————
olt at aes:~/e300/src/gnuradio/build$ cmake -Wno-dev -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchains/oe-sdk_cross.cmake -DENABLE_GR_WXGUI=OFF -DENABLE_GR_VOCODER=OFF -DENABLE_GR_DTV=OFF -DENABLE_GR_ATSC=OFF -DENABLE_DOXYGEN=OFF -DCMAKE_INSTALL_PREFIX=/usr ../
CMake Error at cmake/Toolchains/oe-sdk_cross.cmake:4 (string):
 string sub-command REGEX, mode MATCH needs at least 5 arguments total to
 command.
Call Stack (most recent call first):
 /usr/share/cmake-3.5/Modules/CMakeDetermineSystem.cmake:95 (include)
 CMakeLists.txt:29 (project)


CMake Error at cmake/Toolchains/oe-sdk_cross.cmake:5 (string):
 string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
 command.
Call Stack (most recent call first):
 /usr/share/cmake-3.5/Modules/CMakeDetermineSystem.cmake:95 (include)
 CMakeLists.txt:29 (project)


CMake Error at cmake/Toolchains/oe-sdk_cross.cmake:4 (string):
 string sub-command REGEX, mode MATCH needs at least 5 arguments total to
 command.
Call Stack (most recent call first):
 build/CMakeFiles/3.5.2/CMakeSystem.cmake:6 (include)
 CMakeLists.txt:29 (project)


CMake Error at cmake/Toolchains/oe-sdk_cross.cmake:5 (string):
 string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
 command.
Call Stack (most recent call first):
 build/CMakeFiles/3.5.2/CMakeSystem.cmake:6 (include)
 CMakeLists.txt:29 (project)


-- The CXX compiler identification is GNU 5.4.0
-- The C compiler identification is GNU 5.4.0
-- Check for working CXX compiler: /usr/bin/c++
CMake Error at /home/olt/e300/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake:4 (string):
 string sub-command REGEX, mode MATCH needs at least 5 arguments total to
 command.
Call Stack (most recent call first):
 /home/olt/e300/src/gnuradio/build/CMakeFiles/3.5.2/CMakeSystem.cmake:6 (include)
 CMakeLists.txt:2 (project)


CMake Error at /home/olt/e300/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake:5 (string):
 string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
 command.
Call Stack (most recent call first):
 /home/olt/e300/src/gnuradio/build/CMakeFiles/3.5.2/CMakeSystem.cmake:6 (include)
 CMakeLists.txt:2 (project)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working CXX compiler: /usr/bin/c++ -- broken
CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestCXXCompiler.cmake:54 (message):
 The C++ compiler "/usr/bin/c++" is not able to compile a simple test
 program.

 It fails with the following output:


 CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
 CMakeLists.txt:29 (project)


-- Configuring incomplete, errors occurred!
See also "/home/olt/e300/src/gnuradio/build/CMakeFiles/CMakeOutput.log".
See also "/home/olt/e300/src/gnuradio/build/CMakeFiles/CMakeError.log".
olt at aes:~/e300/src/gnuradio/build
—————————————————————————

The log file (CMakeOutput.log):
—————————————————————————
The target system is: Linux -  -
The host system is: Linux - 4.10.0-35-generic - x86_64
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/bin/c++
Build flags:
Id flags:

The output was:
0


Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is GNU, found in "/home/olt/e300/src/gnuradio/build/CMakeFiles/3.5.2/CompilerIdCXX/a.out"

Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/cc
Build flags:
Id flags:

The output was:
0


Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"

The C compiler identification is GNU, found in "/home/olt/e300/src/gnuradio/build/CMakeFiles/3.5.2/CompilerIdC/a.out"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/bin/c++
Build flags:
Id flags:

The output was:
0
”~/e300/src/gnuradio/build/CMakeFiles/CMakeOutput.log" 80 lines, 2318 characters
————————————————————————————————
Nothing listed in the CMakeError.log
————————————————————————————————

Even after extensive googling I have not been able to understand what is wrong. The c++ compiler seems to be there, but still not… Any ideas?

Thanks!
Torbjörn

2 okt. 2017 kl. 14:57 skrev Philip Balister <philip at balister.org>:

On 10/02/2017 02:57 AM, Torbjörn Olsson via USRP-users wrote:
> Hello,
> 
> I am trying to put GR-Inspector on my Ettus Research E312 (an embedded system). But when running cmake in the installation process I get:
> olt at aes:~/e300/src/gr-inspector/build$ cmake ..
> CMake Error at CMakeLists.txt:23 (cmake_minimum_required):
> CMake 3.1 or higher is required.  You are running version 2.8.12.2

Try this image and sdk:

http://files.ettus.com/e3xx_images/beta/jethro-test/

The manifest shows: nativesdk-cmake x86_64-nativesdk 3.3.1-r0

Philip

> 
> 
> -- Configuring incomplete, errors occurred!
> olt at aes:~/e300/src/gr-inspector/build$
> It seems like the SDK used to cross compile for the E312 uses an older version of CMake than required by GR-Inspector. Has anyone experienced the same issue (and found a solution?). 
> 
> Grateful for any help!
> 
> Regards
> 
> Torbjörn 
> (embedded software and SDR newbie)
> 
> 
> 
> _______________________________________________
> USRP-users mailing list
> USRP-users at lists.ettus.com
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20171004/f17b77d0/attachment-0002.html>


More information about the USRP-users mailing list