Problem when i tried to compiled lakka

Under Debian x64 (Oracle VM) Target RPi2

Now im having this problem when compiling lakka

/home/saitoh00/Lakka/build.Lakka-RPi2.arm-devel/toolchain/bin/host-gcc -m32 -O2 -fomit-frame-pointer -Wall -O3 -fPIC -I. -DLUAJIT_TARGET=LUAJIT_ARCH_arm -DLJ_ARCH_HASFPU=1 -DLJ_ABI_SOFTFP=0 -c -o host/buildvm_asm.o host/buildvm_asm.c In file included from host/buildvm_peobj.c:9:0: host/buildvm.h:9:23: fatal error: sys/types.h: No such file or directory #include <sys/types.h> ^ compilation terminated. In file included from host/buildvm_asm.c:6:0: host/buildvm.h:9:23: fatal error: sys/types.h: No such file or directory #include <sys/types.h> ^ compilation terminated. In file included from /usr/include/limits.h:25:0, from /usr/lib/gcc/x86_64-linux-gnu/4.9/include-fixed/limits.h:168, from /usr/lib/gcc/x86_64-linux-gnu/4.9/include-fixed/syslimits.h:7, from /usr/lib/gcc/x86_64-linux-gnu/4.9/include-fixed/limits.h:34, from host/minilua.c:33: /usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or directory

include <sys/cdefs.h>

                     ^

compilation terminated. Makefile:661: recipe for target ‘host/minilua.o’ failed make[2]: *** [host/minilua.o] Error 1 make[2]: *** Waiting for unfinished jobs… Makefile:661: recipe for target ‘host/buildvm_asm.o’ failed make[2]: *** [host/buildvm_asm.o] Error 1 Makefile:661: recipe for target ‘host/buildvm_peobj.o’ failed make[2]: *** [host/buildvm_peobj.o] Error 1 make[2]: Leaving directory ‘/home/saitoh00/Lakka/build.Lakka-RPi2.arm-devel/lutro-ff99b7d/deps/luajit/src’ Makefile:137: recipe for target ‘deps/luajit/src/libluajit.a’ failed make[1]: *** [deps/luajit/src/libluajit.a] Error 2 make[1]: *** Waiting for unfinished jobs… make[1]: Leaving directory ‘/home/saitoh00/Lakka/build.Lakka-RPi2.arm-devel/lutro-ff99b7d’ Makefile:12: recipe for target ‘image’ failed make: *** [image] Error 2 saitoh00@debian:~/Lakka$

What am i doing wrong?

OK, remove lutro from the core list in packages/lakka/RPi2/package.mk

Well, after giving so many laps, it was that simple … but I think I’ve been ready to compile everything, but I get the following error, I need some library related mkimage?

  INSTALL    RPi2 (target)
      INSTALL    retroarch (target)
          INSTALL    freetype (target)
              INSTALL    libpng (target)
          INSTALL    retroarch-assets (target)
          INSTALL    core-info (target)
          INSTALL    retroarch-joypad-autoconfig (target)
          INSTALL    common-shaders (target)
          INSTALL    lakka-update (target)
          INSTALL    bcm2835-driver (target)
          INSTALL    samba (target)
              INSTALL    avahi (target)
                  INSTALL    libdaemon (target)
      INSTALL    beetle-sgx (target)
      INSTALL    snes9x-next (target)
      INSTALL    genesis-plus-gx (target)
      INSTALL    pcsx_rearmed (target)
      INSTALL    mupen64plus (target)
      INSTALL    gpsp (target)
      INSTALL    2048 (target)
      INSTALL    vecx (target)
      INSTALL    dinothawr (target)
      INSTALL    prboom (target)
      INSTALL    beetle-pce (target)
      INSTALL    handy (target)
      INSTALL    picodrive (target)
          INSTALL    picodrive (host)
      INSTALL    pocketsnes (target)
      INSTALL    nxengine (target)
      INSTALL    nestopia (target)
      INSTALL    gambatte (target)
      INSTALL    stella (target)
      INSTALL    fba (target)
      INSTALL    libretro-ffmpeg (target)
          INSTALL    ffmpeg (target)
              INSTALL    libvorbis (target)
                  INSTALL    libogg (target)
          INSTALL    libass (target)
              INSTALL    fontconfig (target)
                  INSTALL    libxml2 (target)
              INSTALL    enca (target)
              INSTALL    fribidi (target)

injecting DeviceTreeBlobs to kernel… Version: Linux version 3.19.2 (root@debian) (gcc version 4.9.2 (GCC) ) #1 SMP Tue Jun 9 19:43:02 CEST 2015 DT: y …done Parallel mksquashfs: Using 4 processors Creating 4.0 filesystem on /home/saitoh00/Lakka/target/Lakka-RPi2.arm-devel-20150609215931-r21039-g7225ade.system, block size 131072. [=======================================================================================] 5080/5080 100%

Exportable Squashfs 4.0 filesystem, lzo compressed, data block size 131072 compressed data, compressed metadata, compressed fragments, no xattrs duplicates are removed Filesystem size 93184.12 Kbytes (91.00 Mbytes) 48.67% of uncompressed filesystem size (191449.52 Kbytes) Inode table size 58662 bytes (57.29 Kbytes) 35.79% of uncompressed inode table size (163907 bytes) Directory table size 58763 bytes (57.39 Kbytes) 49.57% of uncompressed directory table size (118551 bytes) Number of duplicate files found 358 Number of inodes 4834 Number of files 3972 Number of fragments 322 Number of symbolic links 457 Number of device nodes 1 Number of fifo nodes 0 Number of socket nodes 0 Number of directories 404 Number of ids (unique uids + gids) 2 Number of uids 1 root (0) Number of gids 2 root (0) unknown (81) mkimage: boo. now root access (sudo) is required… mkimage: see scripts/image and scripts/mkimage if you dont trust us :slight_smile: ./scripts/image: line 312: sudo: command not found Makefile:12: recipe for target ‘image’ failed make: *** [image] Error 127

You need to install the sudo package on your debian system.

Thank you so much, eventually managed to compile and extract the image to a card and make it work as if it were a nightly … To see how it works’ve added to scummvm package and any further distribution. Everything works perfectly, however when trying to add ppsspp, I have not succeeded.

I changed my platform under compile, now I have tried from Rpi2 (Raspbian) and having done all that before I worked on debian, but i encounter the following error:

checking compiler /home/pi/Lakka/build.Lakka-RPi2.arm-devel/toolchain/bin/host-gcc -02 -Wall -pipe -I/home/pi/Lakka/build.Lakka-RPi2.arm-devel/toolchain/include -Wno-format-security -fPIC -DPIC -fexceptions… no configure: error: could not find a working compiler, see config.log for details Makefile:12: recipe for target ‘image’ failed make: *** [image] Error 1 root@raspberrypi:/home/pi/Lakka#

Also i have other error segmentation fault

It is because PPSSPP have some problems compiling on RPi2. I tried to fix that without success for now.

Ok thanks, but for why i cant compile lakka with the same commands in raspbian? (See the last post) (I don´t use ppsspp, only the original config without lutro)

I don’t know, looks like OpenELEC doesn’t like the compiler of raspbian. Anyway, believe me, it is a very bad idea to try to compile Lakka on a raspberry pi. You need a powerfull machine with enought ram and all.

Thanks for all your help and patience, I’ll make the last attempt in raspberry, because in my laptop, if it even compiling a test I added several emulators and removed others who did not see them useful and it works perfect. :slight_smile:

I just need to do something because I have also compile on PC and I wanted to do raspbian. Would add to the compilation controls by GPIOs or even leave the source code to be taken into account when compiling lakka, and of course if it is of interest to you, share with you to make it for public use and that the It might be useful for anyone who wants to use with arcade buttons and joysticks.

Sure, as soon as you have it well tested, I will include it in the main trunk, thanks !

Really, it’s like a kick in … compile under rpi2, yet I left, I got it and am prepared compilation, now I only need to modify the source code and recompile the changes and try, I reiterate the thanks for all the patience and support. As soon as I get results and have been tested, I will question how to upload the code

For the headers issue, please install libc6-dev-i386 package. Source