Closed stephenmathieson closed 9 years ago
yeah looks like make configure
needs to be ran first :|
Seems like snappy requires a lot just for this tool... Maybe a custom configure script to generate a HAVE_SNAPPY
constant?
yeah, that's a good idea. PR anyone? I'm locked into another project at the moment.
I have run into the same / a similar issue. From within ldb/deps/snappy-1.1.1
I run the following:
$ make configure
$ make install
/bin/sh ./libtool --tag=CXX --mode=link g++ -I./deps/leveldb/include -std=gnu++11 -version-info 3:0:2 -o libsnappy.la -rpath /usr/local/lib snappy.lo snappy-sinksource.lo snappy-stubs-internal.lo snappy-c.lo
libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.9.2/crtbeginS.o .libs/snappy.o .libs/snappy-sinksource.o .libs/snappy-stubs-internal.o .libs/snappy-c.o -L/usr/lib/gcc/x86_64-redhat-linux/4.9.2 -L/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.9.2/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../lib64/crtn.o -Wl,-soname -Wl,libsnappy.so.1 -o .libs/libsnappy.so.1.2.0
g++: error: .libs/snappy.o: No such file or directory
g++: error: .libs/snappy-sinksource.o: No such file or directory
g++: error: .libs/snappy-stubs-internal.o: No such file or directory
g++: error: .libs/snappy-c.o: No such file or directory
Makefile:668: recipe for target 'libsnappy.la' failed
make: *** [libsnappy.la] Error 1
Directory .libs/
is indeed empty :-(. Any ideas on how to circumvent this?
Ok, i fixed this. on linux apt-get install libsnappy1
(i think) and on osx brew install snappy
which makes snappy an optional dependency.
I also made it so that the make file git clones the deps instead of checking them in. Perhaps this is a better job for clib? /cc @stephenmathieson
make
on a fresh checkout results in:looks like we're expecting a makefile in ./deps/snappy-1.1.1, but there's nothing there :/