Page 1 of 1

cmake Nexahome på NSLU2

Posted: Fri Mar 17, 2023 9:45 am
by Snoopy
Jag skulle vilja köra tellstickan på min slug i framtiden. Sluggen körs med Debian 5.
Jag följde installationsinstruktionerna på Telldus sida för linux. Allt gick bra fram till
cmake . då jag fick dessa felmeddelanden:

Code: Select all

superslug:/usr/src/telldus-core-2.0.4# cmake .                                  -- The CXX compiler identification is unknown
-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND -- broken
CMake Error at /usr/share/cmake-2.6/Modules/CMakeTestCXXCompiler.cmake:25 (MESSAGE):
  The C++ compiler "CMAKE_CXX_COMPILER-NOTFOUND" 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:1 (PROJECT)

CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Configuring done
superslug:/usr/src/telldus-core-2.0.4#
gcc är installerad precis som libconfuse0 och libconfuse-dev
Jag har kärna 2.6.26-2
Ska det vara annan kompilator än gcc?

Re: cmake Nexahome på NSLU2

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
cmake verkar inte ens hitta gcc...

Re: cmake Nexahome på NSLU2

Posted: Fri Mar 17, 2023 9:45 am
by Snoopy
Just det. Jag lät linux leta efter gcc och fick svaret No such file or directory.
Så jag försökte hämta gcc igen med apt-get install gcc och fick svaret:

Code: Select all

superslug:~# apt-get install gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
superslug:~#
Hur kan gcc finnas utan att systemet hittar? :?: