Link error building Wt : cannot find -lwtdbosqlite3
Added by Maurice Verreck about 5 years ago
When building Wt in a docker container I have a persisting link error:
[ 58%] Linking CXX executable blog.wt
/usr/bin/ld: cannot find -lwtdbosqlite3
collect2: error: ld returned 1 exit status
make[2]: * [examples/blog/CMakeFiles/blog.wt.dir/build.make:300: examples/blog/blog.wt] Error 1
make[1]: * [CMakeFiles/Makefile2:2049: examples/blog/CMakeFiles/blog.wt.dir/all] Error 2
make: * [Makefile:130: all] Error 2
My source cloned from github
I use Cmake3.16/g++9.3
I set all options ON in CMakeLists.txt
Dockerfile enclosed
Dockerfile (926 Bytes) Dockerfile | Dockerfile | ||
build.sh (34 Bytes) build.sh | execution script |
Replies (3)
RE: Link error building Wt : cannot find -lwtdbosqlite3 - Added by Roel Standaert about 5 years ago
You're not detailing how you're building the blog here.
I set all options ON in CMakeLists.txt
So do you mean you enabled them all by modifying CMakeLists.txt
, rather than providing arguments to CMake?
The blog is building just fine for me, using that Dockerfile and those build instructions.
RE: Link error building Wt : cannot find -lwtdbosqlite3 - Added by Maurice Verreck about 5 years ago
I reverted to the original CMakeLists.txt
Better: I copied the whole original github repo again, just to be sure, using "cp -R"
Building again, but with the same result.
Is there anything special with the internal dependencies for 'blog'. Anything that could help me search in the right direction?
Any help is greately appreciated.
RE: Link error building Wt : cannot find -lwtdbosqlite3 - Added by Maurice Verreck about 5 years ago
I had to throw away my old build dir.
It builds fine now (80% and looks ok)
It seems to be a storm in a teacup after all.
Sorry for the inconvenience and thanks for your attention.