digitalbrain79 / darknet-nnpack

Darknet with NNPACK
Other
305 stars 75 forks source link

How to cross compiling on x86 #40

Closed smallworld-network-wupeng closed 4 years ago

smallworld-network-wupeng commented 4 years ago

I want to cross compiling on x86 by arm-linux-gcc, but I use cmake gui ,there is a error:

CMake Error: The source directory "/home/parallels/darknet-nnpack" does not appear to contain CMakeLists.txt.

Anyone can help me ?

smallworld-network-wupeng commented 4 years ago

I try to modify the Makefile

CC=arm-histbv320-linux-gcc CPP=arm-histbv320-linux-g++ NVCC=nvcc** AR=ar ARFLAGS=rcs OPTS=-Ofast LDFLAGS= -lm -pthread COMMON= -Iinclude/ -Isrc/ CFLAGS=-Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC

It is looks work , but still a error:

`In file included from ./src/utils.h:5:0, from ./src/gemm.c:2: include/darknet.h:8:20: fatal error: nnpack.h: No such file or directory

include

                ^

compilation terminated. `