Closed shartoo closed 5 years ago
Please modify ncnn/CMakeLists.txt 53 line, PI3 -> 1, continue to compile after reconfiguration, like that: 52 53 if(1) 54 add_definitions(-march=native) 55 add_definitions(-mfpu=neon) 56 add_definitions(-mfloat-abi=hard) 57 add_definitions(-DARM_NEON) 58 add_definitions(-DANDROID__) 59 endif()
Thank you ,it works, but another error was throw when execute make
in directory ./darknet2ncnn
pi@raspberrypi:~/workspace/darknet2ncnn $ make -j8
make: Nothing to be done for 'all'.
And another make command make cifar
fails too.
pi@raspberrypi:~/workspace/darknet2ncnn $ make cifar
./darknet2ncnn data/cifar.cfg data/cifar.backup example/zoo/cifar.param example/zoo/cifar.bin
./darknet2ncnn: error while loading shared libraries: libdarknet.so: cannot open shared object file: No such file or directory
Makefile:66: recipe for target 'cifar' failed
make: *** [cifar] Error 127
You can remove darknet/libdarknet.so and the link will use darknet/libdarknet.a,
rm darknet/libdarknet.so
make clean
make cifar
Thank you ,it works now.
ncnn make error when execute
make -j8