2018-06-18, 03:25
Thanks for taking the time to read this thread.
I have had zero issues with insataling KODI on raspberry pi using raspbian, openELEC and so forth. But these installs do not support the ability to minimize KODI. For a project I am working, yes I am new to compiling and I a bit stuck. I am using Ubuntu 14.04 LTS 64BIT and I am following the instructions in the readme. The goal is to add x11 support which I believe will add the minimize functionality. My build directory is under the user home directory call carproject (~/carproject). Most of my issues up to the now have been fixed by adding sudo to the front of the command. The problem is when I run the make command it finishes with two error codes, 1 and 2. presumably the 2 is caused by the 1. Trouble shooting these errors is a bit over my head as I am new to compiling. Below I have the instructions I am following from the XBMC README file and the output of the make command. These are the last lines where the error messages occur. Any help in resolving this issue is greatly appreciated.
Thank you for your time.
Paul
I have had zero issues with insataling KODI on raspberry pi using raspbian, openELEC and so forth. But these installs do not support the ability to minimize KODI. For a project I am working, yes I am new to compiling and I a bit stuck. I am using Ubuntu 14.04 LTS 64BIT and I am following the instructions in the readme. The goal is to add x11 support which I believe will add the minimize functionality. My build directory is under the user home directory call carproject (~/carproject). Most of my issues up to the now have been fixed by adding sudo to the front of the command. The problem is when I run the make command it finishes with two error codes, 1 and 2. presumably the 2 is caused by the 1. Trouble shooting these errors is a bit over my head as I am new to compiling. Below I have the instructions I am following from the XBMC README file and the output of the make command. These are the last lines where the error messages occur. Any help in resolving this issue is greatly appreciated.
Thank you for your time.
Paul
Code:
-----------------------------------------------------------------------------
2. Building Kodi for the Raspberry Pi
-----------------------------------------------------------------------------
The following steps were tested with Ubuntu 14.04 x64. (Note that building on
a 32 bit machine requires slightly different setting).
The following commands build for newer Rapberry Pi 2 generation. In order to
build for the first Raspberry Pi, the commands have to be adapted to use
`--with-platform=raspberry-pi` instead of `--with-platform=raspberry-pi2`.
$ sudo apt-get install git autoconf curl g++ zlib1g-dev libcurl4-openssl-dev gawk gperf libtool autopoint swig default-jre
$ sudo git clone https://github.com/raspberrypi/tools
$ sudo cp -r tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64 /opt
$ sudo git clone https://github.com/raspberrypi/firmware
$ sudo mkdir -p /opt/bcm-rootfs/opt
$ sudo cp -r firmware/opt/vc /opt/bcm-rootfs/opt
$ sudo mkdir -p /opt/xbmc-bcm
$ sudo chmod 777 /opt/xbmc-bcm
$ sudo git clone https://github.com/xbmc/xbmc
$ cd xbmc/tools/depends
$ sudo ./bootstrap
$ PATH="$PATH:/opt/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin" \
sudo ./configure --host=arm-linux-gnueabihf \
--prefix=/opt/xbmc-bcm/xbmc-dbg \
--with-toolchain=/usr/local/bcm-gcc/arm-bcm2708hardfp-linux-gnueabi/sysroot \
--with-firmware=/opt/bcm-rootfs \
--with-platform=raspberry-pi2 \
--build=i686-linux
$ sudo make <-- this is as far as I get.
$ cd ../..
CONFIG_EXTRA="--with-platform=raspberry-pi2 \
--enable-libcec --enable-player=omxplayer \
--enable-x11 --disable-xrandr --disable-openmax \
--disable-optical-drive --disable-dvdcss --disable-joystick \
--disable-crystalhd --disable-vtbdecoder --disable-vaapi \
--disable-vdpau --enable-alsa" \
sudo make -C tools/depends/target/xbmc
$ sudo make
$ sudo make install
Code:
make[3]: Entering directory `/home/homemythtv/carproject/xbmc/tools/depends/native/JsonSchemaBuilder/i686-linux-native'
/usr/bin/g++ -DPACKAGE_NAME=\"JsonSchemaBuilder\" -DPACKAGE_TARNAME=\"jsonschemabuilder\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"JsonSchemaBuilder\ 1.0\" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"\" -DPACKAGE=\"jsonschemabuilder\" -DVERSION=\"1.0\" -I. -I/opt/xbmc-bcm/xbmc-dbg/i686-linux-gnu-native/include -O2 -std=c++11 -I/opt/xbmc-bcm/xbmc-dbg/i686-linux-gnu-native/include -MT JsonSchemaBuilder.o -MD -MP -MF .deps/JsonSchemaBuilder.Tpo -c -o JsonSchemaBuilder.o JsonSchemaBuilder.cpp
JsonSchemaBuilder.cpp: In function âvoid print_version(std::ifstream&, std::ofstream&)â:
JsonSchemaBuilder.cpp:33:82: error: no matching function for call to âregex_replace(std::string&, std::regex, const char [1])â
out << regex_replace(line, regex("(\\s+)?JSONRPC_VERSION\\s+|(\\s+)?#.*"), "");
^
JsonSchemaBuilder.cpp:33:82: note: candidates are:
In file included from /usr/include/c++/4.8/regex:62:0,
from JsonSchemaBuilder.cpp:25:
/usr/include/c++/4.8/bits/regex.h:2162:5: note: template<class _Out_iter, class _Bi_iter, class _Rx_traits, class _Ch_type> _Out_iter std::regex_replace(_Out_iter, _Bi_iter, _Bi_iter, const std::basic_regex<_Ch_type, _Rx_traits>&, const std::basic_string<_Ch_type>&, std::regex_constants::match_flag_type)
regex_replace(_Out_iter __out, _Bi_iter __first, _Bi_iter __last,
^
/usr/include/c++/4.8/bits/regex.h:2162:5: note: template argument deduction/substitution failed:
JsonSchemaBuilder.cpp:33:82: note: deduced conflicting types for parameter â_Bi_iterâ (âstd::basic_regex<char>â and âconst char*â)
out << regex_replace(line, regex("(\\s+)?JSONRPC_VERSION\\s+|(\\s+)?#.*"), "");
^
In file included from /usr/include/c++/4.8/regex:62:0,
from JsonSchemaBuilder.cpp:25:
/usr/include/c++/4.8/bits/regex.h:2182:5: note: template<class _Rx_traits, class _Ch_type> std::basic_string<_Ch_type> std::regex_replace(const std::basic_string<_Ch_type>&, const std::basic_regex<_Ch_type, _Rx_traits>&, const std::basic_string<_Ch_type>&, std::regex_constants::match_flag_type)
regex_replace(const basic_string<_Ch_type>& __s,
^
/usr/include/c++/4.8/bits/regex.h:2182:5: note: template argument deduction/substitution failed:
JsonSchemaBuilder.cpp:33:82: note: mismatched types âconst std::basic_string<_Ch_type>â and âconst char [1]â
out << regex_replace(line, regex("(\\s+)?JSONRPC_VERSION\\s+|(\\s+)?#.*"), "");
^
make[3]: *** [JsonSchemaBuilder.o] Error 1
make[3]: Leaving directory `/home/homemythtv/carproject/xbmc/tools/depends/native/JsonSchemaBuilder/i686-linux-native'
make[2]: *** [i686-linux-native/JsonSchemaBuilder] Error 2
make[2]: Leaving directory `/home/homemythtv/carproject/xbmc/tools/depends/native/JsonSchemaBuilder'
make[1]: *** [JsonSchemaBuilder] Error 2
make[1]: Leaving directory `/home/homemythtv/carproject/xbmc/tools/depends/native'
make: *** [native/.installed-i686-linux-native] Error 2