Build fails on ~/xbmc/tools/depends/native/cmake-native/i686-linux-native
#1
Hi,

I'm attempting to compile latest Kodi on RPi 2015-05-05-raspbian-wheezy. I'm following instructions at: https://github.com/xbmc/xbmc/blob/master...aspberrypi, section 2, "Building Kodi for the Raspberry Pi", step: "$ make"

I'm getting error:

Quote:...
make[3]: Leaving directory '/home/pi/xbmc/tools/depends/native/yasm-native/i686-linux-native'
make[2]: Leaving directory '/home/pi/xbmc/tools/depends/native/yasm-native'
make -C cmake-native
make[2]: Entering directory '/home/pi/xbmc/tools/depends/native/cmake-native'
make -C i686-linux-native
make[3]: Entering directory '/home/pi/xbmc/tools/depends/native/cmake-native/i686-linux-native'
make[3]: *** No targets specified and no makefile found. Stop.
make[3]: Leaving directory '/home/pi/xbmc/tools/depends/native/cmake-native/i686-linux-native'
Makefile:37: recipe for target 'i686-linux-native/bin/cmake' failed
make[2]: *** [i686-linux-native/bin/cmake] Error 2
make[2]: Leaving directory '/home/pi/xbmc/tools/depends/native/cmake-native'
Makefile:48: recipe for target 'cmake-native' failed
make[1]: *** [cmake-native] Error 2
make[1]: Leaving directory '/home/pi/xbmc/tools/depends/native'
Makefile:8: recipe for target 'native/.installed-i686-linux-native' failed
make: *** [native/.installed-i686-linux-native] Error 2

The log file shows two errors:

Quote:...
------------------------------------------
/tmp/cc6PA4ti.o: In function `main':
cmake_bootstrap_5388_test.cxxSad.text+0x30): undefined reference to `std::ostream::operator<<(int)'
cmake_bootstrap_5388_test.cxxSad.text+0x40): undefined reference to `std::ostream::operator<<(std::ostream& (*)(std::ostream&))'
cmake_bootstrap_5388_test.cxxSad.text+0x54): undefined reference to `std::cout'
...

Is it linking error? Is somewhere "-lstdc++" forgotten? How can I add it?

And another error:


Quote:...
------------------------------------------
cmake_bootstrap_5388_test.cxx:5:23: fatal error: iostream.h: No such file or directory
# include <iostream.h>
^
compilation terminated.

that iostream.h header file is not found. And yes, as far as I see, there is no such file on my system. (Actually, I'm surprised that cmake-native attempts to identify presence of the C++ compiler this way, but OK). Yes, I have g++ & gcc. Both are g++ (Raspbian 4.8.2-21~rpi3rpi1) 4.8.2

What's wrong?

P.S. I'm new to Linux world...
Reply
#2
Try to download the build dependencies again? Usually fixes my problem (or rebuilding, but that's probably not your problem)
Reply
#3
It was my mistake - I used gcc/g++ 4.8.2 instead of 4.6.3 deployed together with 2015-05-05-raspbian-wheezy. I started with wrong build instructions which ruined my system. When it fails, I stepped over to https://github.com/xbmc/xbmc/blob/master...aspberrypi, but I did not roll back gcc/g++ :-(

Compilation is in progress. I'm compiling .../cmake-native/i686-linux-native/... now.
Reply

Logout Mark Read Team Forum Stats Members Help
Build fails on ~/xbmc/tools/depends/native/cmake-native/i686-linux-native0