mnisten
mnisten copied to clipboard
build error
Absolutely love Tiny_CNN!!! however, some things are broken with your other repos. this one gives:
src/main.cpp:14:21: fatal error: cmdline.h: No such file or directory #include "cmdline.h" ^ compilation terminated.
This is due to your main.cpp haveing only #include "cmdlin.h" and #include "util.h" and they should be ../include/cmdline.h etc...
Alternatively, changing the makefile to
mnisten: src/main.cpp
INC=-I/usr/include/opencv/
g++ -Wall -O2 -std=c++0x -o mnisten src/main.cpp \
-I/usr/include/x86_64-linux-gnu/boost /usr/lib/x86_64-linux-gnu/libboost_system.a \
/usr/lib/x86_64-linux-gnu/libboost_filesystem.a \
-Iinclude `pkg-config --cflags --libs opencv`
worked for me.
the wbrenna's solution worked for me, but you'll need to remove spaces and use tabulation for indentation !
I removed spaces and used tabulation. But it gives me this error:
xu@xu-ThinkCentre-M72e:~/LearnTensorflow/mnisten-master $ make
INC=-I/usr/include/opencv/
g++ -Wall -O2 -std=c++0x -o mnisten src/main.cpp
-I/usr/include/x86_64-linux-gnu/boost /usr/lib/x86_64-linux-gnu/libboost_system.a
/usr/lib/x86_64-linux-gnu/libboost_filesystem.a
-Iinclude pkg-config --cflags --libs opencv
/usr/bin/ld: cannot find -lippicv
collect2: error: ld returned 1 exit status
make: *** [mnisten] Error 1
Ok, I followed this link: http://answers.opencv.org/question/85635/error-cannot-find-lippicv/?answer=85676#post-id-85676%22here%22
it can make now. But when I run mnisten it shows:
xu@xu-ThinkCentre-M72e:~/LearnTensorflow/mnisten-master $ mnisten -d /home/xu/LearnTensorflow/BMP images -o prefix -s 32x24 mnisten: command not found