Discussion

Help with Compiling XBMC

6 4026
ph87  
Edited by ph87 at Wed Dec 31, 2014 08:56

Hello,

I'm trying to compile xbmc for the BPi but I'm running into errors! I'm want to compile xbmc for myself due to Touchscreen support, some files have to be patched before compiling!

I've done that allready for the RaspberryPi on OpenElec but heree I get errors and now I need your help!

I'm following this Guide:here
I'm followed the part of cross-compiling - build machine is Ubuntu 13.10

This is the error I got when I tried to do make:
  1.     CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:55 (message):
  2.       Could not find compiler set in environment variable CXX:

  3.       arm-linux-gnueabihf-g++.

  4.     Call Stack (most recent call first):
  5.       CMakeLists.txt:1 (project)


  6.     CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
  7.     Missing variable is:
  8.     CMAKE_CXX_COMPILER_ENV_VAR
  9.     CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
  10.     Missing variable is:
  11.     CMAKE_CXX_COMPILER
  12.     CMake Error: Could not find cmake module file:/media/myfiles/RPi/lemedia/xbmca10/tools/a10/depends/taglib/taglib-1.8/build/CMakeFiles/2.8.11.2/CMakeCXXCompiler.cmake
  13.     CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
  14.     -- Configuring incomplete, errors occurred!
  15.     make[1]: *** [.builded] Fehler 1
  16.     make[1]: Verlasse Verzeichnis '/media/myfiles/RPi/lemedia/xbmca10/tools/a10/depends/taglib'
  17.     make: *** [all] Fehler 2
Copy the Code
Please I need your help! That is the only (and working way) to get touchscreens to work with xbmc! It allready works on the RaspberryPi (under Raspbmc, OpenElec, XBIAN, XBMC) - all distros are using that patches!

Thank you very much!!!
Regards,

ph87
Hi , from your log , the error may came out because your cross-compiling environment is not setup in right way.  Try to set up your toolchain again , such as "apt-get install arm-linux-gnueabihf-g++" ..... If there is still a error , consider compiling your code on bananapi .

ph87  
hcdth011 replied at Mon Dec 29, 2014 01:24
Hi , from your log , the error may came out because your cross-compiling environment is not setup in ...

Does someone know a way how to solve that?

I really don't want to compile it on the BPi!!! It should work on Ubuntu but what is my issue?

ChrisP  
It sounds similar to crossplateform kernel compilation.

You should try somthing like "make CROSS_COMPILE=arm-linux-gnueabihf-" ?

ph87  
Thank you Chis, it leaded me to the right way!
There was a wrong value in the depends.mk for the cMake flag CC=


No, I'm getting the next issue:

When running: make -C xbmc
  1. checking for main in -lEGL... no
  2. configure: error: Could not find a required library. Please see the README for your platform.
  3. make: *** [configure] Fehler 1
Copy the Code
What does that mean?

ChrisP  
libegl1-mesa-dev missing ?

(Don't see me as a genius, I cheated I googled this: http://forum.kodi.tv/showthread.php?tid=132919&page=35 )

ph87  
Edited by ph87 at Tue Dec 30, 2014 18:46
ChrisP replied at Mon Dec 29, 2014 19:30
libegl1-mesa-dev missing ?

(Don't see me as a genius, I cheated  I googled this: http://forum.kod ...


Oh, I searched a lot about this error, but didn't found this link...

But it doesn't help!

When I make "apt-get install libegl1-mesa-dev missing" my PC tells me, that it is already installed...


The strange thing is...

When I make: make -C xmbc
it makes automatically this:
  1. ./configure --prefix=/allwinner/xbmc-pvr-binhf --build=i686-linux --host=arm-linux-gnueabihf --disable-x11 --disable-sdl --disable-xrandr --disable-joystick --disable-gl --disable-vdpau --disable-vaapi --disable-openmax --enable-neon --enable-gles --disable-mysql --disable-optical-drive --disable-crystalhd --disable-vtbdecoder --disable-pulse --disable-projectm --disable-libcec --disable-optimizations
Copy the Code
then I get this
  1.      checking for main in -lEGL... no
  2.     configure: error: Could not find a required library. Please see the README for your platform.
  3.     make: *** [configure] ERROR 1
Copy the Code
When I make only: ./configure --enable-gles
Then I get:
  1.      checking for main in -lEGL...yes
Copy the Code
What is the problem?


You have to log in before you can reply Login | Sign Up

Points Rules