btrask / stronglink

A searchable, syncable, content-addressable notetaking system
Other
1.04k stars 45 forks source link

build error #112

Open dominictarr opened 8 years ago

dominictarr commented 8 years ago

I tried building this and I got this error

[ 93%] Building C object src/CMakeFiles/libcmark_static.dir/houdini_href_e.c.o
[ 95%] Building C object src/CMakeFiles/libcmark_static.dir/houdini_html_e.c.o
[ 96%] Building C object src/CMakeFiles/libcmark_static.dir/houdini_html_u.c.o
[ 98%] Building C object src/CMakeFiles/libcmark_static.dir/cmark_ctype.c.o
[100%] Linking C static library libcmark.a
[100%] Built target libcmark_static
Binaries can be found in build/src
make yajl_s/fast -C ./deps/yajl/build --no-print-directory
make[1]: *** deps/yajl/build: No such file or directory.  Stop.
Makefile:218: recipe for target 'yajl' failed
make: *** [yajl] Error 2
btrask commented 8 years ago

Can you try mkdir deps/yajl/build and then build again? If that works I will add it to the build script.

btrask commented 8 years ago

BTW I'd like to talk to you and other SSB folks some more! I was very impressed with everyone involved with SSB that I met at the Decentralized Web Summit.

btrask commented 8 years ago

If that doesn't work, try manually following the build instructions in deps/yajl/BUILDING.

Sorry for the trouble.

dominictarr commented 8 years ago

okay I get this error:

find: './build/h': No such file or directory
make yajl_s/fast -C ./deps/yajl/build --no-print-directory
make[1]: *** No rule to make target 'yajl_s/fast'.  Stop.
Makefile:218: recipe for target 'yajl' failed
make: *** [yajl] Error 2
dominictarr commented 8 years ago

ihavenoidea

I did cmake . in deps/yajland that seemed to work, and thenmake, had to domake distcleanin.` to get it to do anything.

I've got

$ ls yajl-2.1.1/lib/       
libyajl.so  libyajl.so.2  libyajl.so.2.1.1  libyajl_s.a

which looks right, but stronglink's make is still giving the same error as beore. still looking for yajl_s/fast...

btrask commented 8 years ago

I think you need to run cmake . in deps/yajl/build rather than deps/yajl. Then the StrongLink makefile should find it and not try to build it itself. The full dependencies are deps/yajl/build/yajl-2.1.1/lib/libyajl_s.a and deps/yajl/build/yajl-2.1.1/include/*.h.

btrask commented 8 years ago

Correction: cmake .. when in deps/yajl/build

dominictarr commented 8 years ago

my .a is in the right place, but .h are another dir lower, under include/yajl/*.h

$ ls deps/yajl/yajl-2.1.1/include/yajl/yajl_*.h
deps/yajl/yajl-2.1.1/include/yajl/yajl_common.h  deps/yajl/yajl-2.1.1/include/yajl/yajl_tree.h
deps/yajl/yajl-2.1.1/include/yajl/yajl_gen.h     deps/yajl/yajl-2.1.1/include/yajl/yajl_version.h
deps/yajl/yajl-2.1.1/include/yajl/yajl_parse.h

$ ls deps/yajl/yajl-2.1.1/lib/
libyajl.so  libyajl.so.2  libyajl.so.2.1.1  libyajl_s.a
btrask commented 8 years ago

It looks to me like neither one is in the right place. You are still looking at deps/yajl/. rather than deps/yajl/build/.

$ ls deps/yajl/build/
CMakeCache.txt  cmake_install.cmake  Makefile  reformatter  test    yajl-2.1.1
CMakeFiles  example          perf      src      verify