v18 Compiler Error on Rpi 3B
#1
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.
Reply
#2
You don't have to compile depends if you build on your pi. Just install the required libs from your distribution.
Reply
#3
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.
Reply
#4
Nightly ppa is only for ubuntu and i386 or amd64 processors.
Installing the libs listed at https://github.com/xbmc/xbmc/blob/master...ux#L46-L60 is already correct, where you get them from doesn't matter.


I recommand following http://blog.nunosenica.com/compiling-kod...n-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.
Reply
#5
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
Reply
#6
Found the error, I used -CORE_PLATFORM_NAME=rbpi \ and should have used -DCORE_PLATFORM_NAME=rbpi \
Reply
#7
RPi 3 has the same problem as RPi 3B?
Reply
#8
Which problem does RPi 3 have?
Reply

Logout Mark Read Team Forum Stats Members Help
Compiler Error on Rpi 3B0