Some libraries are missing #13
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
on:
make update_lib
got:
./scripts/update_lib.sh
Some libraries are missing
You must run this script at the top of libgourou working direcotry.
./scripts/setup.sh must be called first (make all)
make: *** [Makefile:66: update_lib] Error 1
Hi,
Can you provide more details please ?
After a fresh clone, just do "make". If you starts with "make update_lib", you have to manually call "./scripts/setup.sh" as explained, but it's not the recommended way.
Hi,
here is what I had before trying to update_lib:
alex@alex-Mac512:~/cpp$ git clone https://forge.soutade.fr/soutade/libgourou.git
Cloning into 'libgourou'...
remote: Enumerating objects: 882, done.
remote: Counting objects: 100% (71/71), done.
remote: Compressing objects: 100% (71/71), done.
remote: Total 882 (delta 37), reused 0 (delta 0), pack-reused 811
Receiving objects: 100% (882/882), 185.26 KiB | 447.00 KiB/s, done.
Resolving deltas: 100% (648/648), done.
alex@alex-Mac512:~/cpp$ cd libgourou/
alex@alex-Mac512:~/cpp/libgourou$ make
Building libgourou 0.8.7
mkdir lib
./scripts/setup.sh
Cloning into 'lib/updfparser'...
remote: Enumerating objects: 168, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 168 (delta 0), reused 0 (delta 0), pack-reused 162
Receiving objects: 100% (168/168), 40.90 KiB | 207.00 KiB/s, done.
Resolving deltas: 100% (87/87), done.
~/cpp/libgourou/lib/updfparser ~/cpp/libgourou
make[1]: Entering directory '/home/alex/cpp/libgourou/lib/updfparser'
mkdir obj
g++ -Wall -fPIC -I./include -O2 -c src/uPDFParser.cpp -o obj/uPDFParser.o
g++ -Wall -fPIC -I./include -O2 -c src/uPDFTypes.cpp -o obj/uPDFTypes.o
ar crs libupdfparser.a obj/uPDFParser.o obj/uPDFTypes.o
make[1]: Leaving directory '/home/alex/cpp/libgourou/lib/updfparser'
~/cpp/libgourou
mkdir obj
g++ -Wall -fPIC -I./include -I./usr/include/pugixml -I./lib/updfparser/include -O2 -c src/libgourou.cpp -o obj/libgourou.o
In file included from ./include/libgourou.h:25,
from src/libgourou.cpp:27:
./include/user.h:28:10: fatal error: pugixml.hpp: No such file or directory
28 | #include <pugixml.hpp>
| ^~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:72: obj/libgourou.o] Error 1
You're missing libpugixml. It must be installed (-dev version) through your package manager, with also :
libcurl
OpenSSL
libzip
This is good to know. The problem is that I do not use cpp on a daily basis and do not have a clue how to add the missing libraries. Especially that you claim that 'libraries are automatically fetched'. Most probably I do have these but they need to be referred via some system variable.
Could you please fix your build script and/or include the detailed instructions on how to fix the issue.
Compilation instructions are clear from README.MD :
If you're not familiar with build system, I recommend to use a binary package :
I updated README to add a bit of information, but, once again, use binary packages if you're not familiar with compilation & build.