Kodi Community Forum
v18 Compiler Error on Rpi 3B - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: v18 Compiler Error on Rpi 3B (/showthread.php?tid=330528)



Compiler Error on Rpi 3B - User 411814 - 2018-04-04

I currently try to compile the v18 Alpha 2 on my raspberry pi, but after running for some hours the compiler stopped with an error.
Quote:checking whether the C compiler works... no
configure: error: in `/home/pi/pocorn/xbmc/tools/depends/target/pcre/raspberry-pi2-release':
configure: error: C compiler cannot create executables
See `config.log' for more details
Makefile:26: recipe for target 'raspberry-pi2-release' failed
make[2]: *** [raspberry-pi2-release] Error 77
make[2]: Leaving directory '/home/pi/pocorn/xbmc/tools/depends/target/pcre'
Makefile:125: recipe for target 'pcre' failed
make[1]: *** [pcre] Error 2
make[1]: Leaving directory '/home/pi/pocorn/xbmc/tools/depends/target'
Makefile:11: recipe for target 'target/.installed-raspberry-pi2-release' failed
make: *** [target/.installed-raspberry-pi2-release] Error 2
I posted the config.log here https://paste.ubuntu.com/p/xcbdkw3knQ/

I am relativly new to compiling so I have no idea what to do now.


RE: Compiler Error on Rpi 3B - Rechi - 2018-04-04

You don't have to compile depends if you build on your pi. Just install the required libs from your distribution.


RE: Compiler Error on Rpi 3B - User 411814 - 2018-04-04

How would I do that ? I added the nightly repository, and installed all libs I found here. If I try to install kodi from the nightly repository I get an error that I could not be installed (I guess cause of raspbian, and the nightly repository is made for Ubuntu). Sorry if this question sounds nooby, but I never had to work with libs and and nightly builds before.


RE: Compiler Error on Rpi 3B - Rechi - 2018-04-04

Nightly ppa is only for ubuntu and i386 or amd64 processors.
Installing the libs listed at https://github.com/xbmc/xbmc/blob/master/docs/README.linux#L46-L60 is already correct, where you get them from doesn't matter.


I recommand following http://blog.nunosenica.com/compiling-kodi-and-building-deb-packages-raspbian-stretch/.
Note: CORE_SYSTEM_NAME was renamed to CORE_PLATFORM_NAME.
You may also want to use -DENABLE_INTERNAL_RapidJSON=ON as additional cmake argument as your distro doesn't ship a recent enough rapidsjon version.


RE: Compiler Error on Rpi 3B - User 411814 - 2018-04-04

I found that guide and tried it, but also got errors. I got the RapidJson-Dev from the nightly build, so that is fixed. The CORE_SYSTEM_NAME threw me some errors, so I removed it, but atleast now I know why and can try again. Also it seems the CMakeFile was moved to ../ rather than ../cmake/ , as I always get an error that it doesn't exist in /cmake/. I just tried to run cmake, and it ended in an error.  
Quote:-- Configuring incomplete, errors occurred!
See also "/home/pi/build2/xbmc/build/CMakeFiles/CMakeOutput.log".
See also "/home/pi/build2/xbmc/build/CMakeFiles/CMakeError.log".
My config.
Quote:cmake \
-FMT_DIR=/usr/local \
-DVERBOSE=1 \
-CORE_PLATFORM_NAME=rbpi \
-DENABLE_MMAL=AUTO \
-DENABLE_OPENGL=OFF \
-DWITH_CPU=cortex-a7 \
-DCMAKE_PREFIX_PATH=/opt/vc \
-DENABLE_OPENGLES=AUTO \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_AIRTUNES=AUTO \
-DENABLE_ALSA=AUTO \
-DENABLE_AVAHI=AUTO \
-DENABLE_BLURAY=AUTO \
-DENABLE_CEC=AUTO \
-DENABLE_DBUS=AUTO \
-DENABLE_DVDCSS=AUTO \
-DENABLE_EGL=AUTO \
-DENABLE_EVENTCLIENTS=AUTO \
-DENABLE_INTERNAL_FFMPEG=AUTO \
-DENABLE_INTERNAL_CROSSGUID=AUTO \
-DENABLE_MICROHTTPD=AUTO \
-DENABLE_MYSQLCLIENT=AUTO \
-DENABLE_NFS=AUTO \
-DENABLE_NAUTOFREE=AUTO \
-DENABLE_OPENSSL=AUTO \
-DENABLE_OPTICAL=AUTO \
-DENABLE_PULSEAUDIO=AUTO \
-DENABLE_SMBCLIENT=AUTO \
-DENABLE_SSH=AUTO \
-DENABLE_UDEV=AUTO \
-DENABLE_UPNP=AUTO \
-DENABLE_VAAPI=OFF \
-DENABLE_VDPAU=OFF \
-DENABLE_X11=OFF \
-DENABLE_XSLT=AUTO \
-DENABLE_LIRC=AUTO \
-DENABLE_INTERNAL_FMT=ON \
-DCPACK_GENERATOR=DEB \
-DENABLE_INTERNAL_RapidJSON=ON \
-DDEBIAN_PACKAGE_VERSIAUTO=1~ \
-DDEB_PACKAGE_ARCHITECTURE=armhf \
../
CMakeLog
CMakeError


RE: Compiler Error on Rpi 3B - User 411814 - 2018-04-06

Found the error, I used -CORE_PLATFORM_NAME=rbpi \ and should have used -DCORE_PLATFORM_NAME=rbpi \


RE: Compiler Error on Rpi 3B - rodeirojg - 2018-06-18

RPi 3 has the same problem as RPi 3B?


RE: Compiler Error on Rpi 3B - Rechi - 2018-06-18

Which problem does RPi 3 have?