Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error #7

Open
binary42 opened this issue Jan 30, 2016 · 4 comments
Open

build error #7

binary42 opened this issue Jan 30, 2016 · 4 comments

Comments

@binary42
Copy link

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...

@wbrenna
Copy link

wbrenna commented Jan 30, 2016

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.

@Krakawet
Copy link

Krakawet commented Mar 1, 2016

the wbrenna's solution worked for me, but you'll need to remove spaces and use tabulation for indentation !

@zxzhijia
Copy link

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

@zxzhijia
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants