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

libtool: error: unrecognised option: '-DHAVE_CONFIG_H' #127

Open
xiaoming0217 opened this issue Mar 7, 2018 · 2 comments
Open

libtool: error: unrecognised option: '-DHAVE_CONFIG_H' #127

xiaoming0217 opened this issue Mar 7, 2018 · 2 comments

Comments

@xiaoming0217
Copy link

ubuntu16 , cmake version 3.5.1, android-ndk-r13b

make[1]: Entering directory '/home/yg_dl/caffe-android-lib/snappy'
/bin/bash ./libtool --tag=CXX --mode=compile -DHAVE_CONFIG_H -I. -g -O2 -MT snappy.lo -MD -MP -MF .deps/snappy.Tpo -c -o snappy.lo snappy.cc
/bin/bash ./libtool --tag=CXX --mode=compile -DHAVE_CONFIG_H -I. -g -O2 -MT snappy-sinksource.lo -MD -MP -MF .deps/snappy-sinksource.Tpo -c -o snappy-sinksource.lo snappy-sinksource.cc
/bin/bash ./libtool --tag=CXX --mode=compile -DHAVE_CONFIG_H -I. -g -O2 -MT snappy-stubs-internal.lo -MD -MP -MF .deps/snappy-stubs-internal.Tpo -c -o snappy-stubs-internal.lo snappy-stubs-internal.cc
/bin/bash ./libtool --tag=CXX --mode=compile -DHAVE_CONFIG_H -I. -g -O2 -MT snappy-c.lo -MD -MP -MF .deps/snappy-c.Tpo -c -o snappy-c.lo snappy-c.cc
Usage: /home/yg_dl/caffe-android-lib/snappy/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
Usage: /home/yg_dl/caffe-android-lib/snappy/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
Usage: /home/yg_dl/caffe-android-lib/snappy/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
Usage: /home/yg_dl/caffe-android-lib/snappy/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
libtool: error: unrecognised option: '-DHAVE_CONFIG_H'
libtool: error: unrecognised option: '-DHAVE_CONFIG_H'
Makefile:725: recipe for target 'snappy-sinksource.lo' failed
make[1]: *** [snappy-sinksource.lo] Error 1
make[1]: *** 正在等待未完成的任务....
Makefile:725: recipe for target 'snappy.lo' failed
make[1]: *** [snappy.lo] Error 1
libtool: error: unrecognised option: '-DHAVE_CONFIG_H'
Makefile:725: recipe for target 'snappy-stubs-internal.lo' failed
libtool: error: unrecognised option: '-DHAVE_CONFIG_H'
make[1]: *** [snappy-stubs-internal.lo] Error 1
Makefile:725: recipe for target 'snappy-c.lo' failed
make[1]: *** [snappy-c.lo] Error 1
make[1]: Leaving directory '/home/yg_dl/caffe-android-lib/snappy'
Makefile:589: recipe for target 'all' failed
make: *** [all] Error 2

gcc has been installed,as follows:
/caffe-android-lib$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1
16.04.9) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@sh1r0
Copy link
Owner

sh1r0 commented Mar 7, 2018

Hi @xiaoming0217,
As for issues regarding environments, please try to use docker build first to see if those are solved. Thanks.

@hpsaturn
Copy link

I have a similar issue with Docker and without it. issue 129

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

3 participants