xboot / libonnx

A lightweight, portable pure C99 onnx inference engine for embedded devices with hardware acceleration support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can this software run on MacOS

feifeibear opened this issue · comments

I came across an error when compling it on my Mac.

[CC] helper.c
In file included from helper.c:28:
./helper.h:13:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
^~~~~~~~~~
1 error generated.
make[1]: *** [helper.o] Error 1
make: *** [all] Error 2

macos don‘t have malloc.h ? this is c startard library.

https://stackoverflow.com/questions/56463049/should-mac-osx-have-a-malloc-h-file

According to this post, it is not a standard one any more.

just remove malloc.h, and compile it will be ok.
if memalign fail, using malloc instead