MD380Tools Emulator not compiling on raspberry pi

nokoa3116

Member
Joined
Jan 12, 2017
Messages
165
I am trying to both compile the MD380 Emulator or run one that was pre compiled. The precompiled one gives me seg fault when it reaches the firmware code.

I tried on Raspberry Pi 3, 4 with 32 bit OS, and Orange Pi 5 with 64 bit OS. None managed to run the precompiled version correctly, nor compile.

When trying to compile I get "
Code:
arm-linux-gnueabihf-gcc -static -g -std=gnu99    -c -o md380-emu.o md380-emu.c
In file included from md380-emu.c:13:
/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
   27 | #include <bits/libc-header-start.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: md380-emu.o] Error 1

I remember years ago running this on RPI but I cannot remember what I did to do so. I am confused because everywhere people are saying to run this on an arm processor on an RPI, but I only got it to work on ubuntu running on an x86 processor.

Any ideas?
 

nokoa3116

Member
Joined
Jan 12, 2017
Messages
165
I ended up being able to compile it after installing
sudo apt install libc6-dev-armhf-cross
 
Top