ICSim icon indicating copy to clipboard operation
ICSim copied to clipboard

Need help: when I type "make", these errors came out

Open Ric-Zhao opened this issue 2 years ago • 3 comments

Hi, My laptop is Macbook Pro 14' M1. I suspect the error comes from the M1 chip. Does anyone can help me out!

arallels@ubuntu-linux-20-04-desktop:~/Downloads/ICSim/ICSim-master$ make gcc -I/usr/include/SDL2 -c -o icsim.o icsim.c gcc lib.c /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/Scrt1.o: in function _start': (.text+0x18): undefined reference to main' /usr/bin/ld: (.text+0x1c): undefined reference to `main' collect2: error: ld returned 1 exit status make: *** [Makefile:14: lib.o] Error 1

image

Ric-Zhao avatar Mar 29 '22 05:03 Ric-Zhao

Same here!

ChrisCross1337 avatar Apr 24 '22 21:04 ChrisCross1337

Oh no. That's not great. So the lib.o file comes from another package and there appears to be linking errors.

This should be able to be solved by following the lib.o not linking section of the Readme. Basically compile https://github.com/linux-can/can-utils and copy the resulting lib.o from there to this project.

On Sun, Apr 24, 2022 at 2:12 PM ChrisCross @.***> wrote:

Same here!

— Reply to this email directly, view it on GitHub https://github.com/zombieCraig/ICSim/issues/34#issuecomment-1107919315, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAELD5PIEFGDT3VVDY53NBDVGW2KDANCNFSM5R5ILJFQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

zombieCraig avatar Apr 25 '22 15:04 zombieCraig

Hm, after sudo apt-get install libsdl2-dev libsdl2-image-dev can-utils I got rid of it. Output looks clean (although I don't know how it really should look): image

The simulator could be executed after this.

DoctorMG avatar Mar 24 '23 16:03 DoctorMG