Some libraries are missing #13

Closed
opened 2025-04-20 02:00:14 +02:00 by ab-chesspad · 6 comments

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

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 =====
Owner

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, 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.
Author

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

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
Owner

You're missing libpugixml. It must be installed (-dev version) through your package manager, with also :
libcurl
OpenSSL
libzip

You're missing libpugixml. It must be installed (-dev version) through your package manager, with also : libcurl OpenSSL libzip
Author

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.

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.
Owner

Compilation instructions are clear from README.MD :

  • Dependencies needed (make update_lib ONLY after a first compilation)
  • make options

If you're not familiar with build system, I recommend to use a binary package :

Compilation instructions are clear from README.MD : * Dependencies needed (make update_lib ONLY after a first compilation) * make options If you're not familiar with build system, I recommend to use a binary package : * AppImage (preferred) or archive from https://forge.soutade.fr/soutade/libgourou/releases * AUR package https://aur.archlinux.org/packages/gourou?O=10 * Docker image : https://github.com/bcliang/docker-libgourou
Owner

I updated README to add a bit of information, but, once again, use binary packages if you're not familiar with compilation & build.

I updated README to add a bit of information, but, once again, use binary packages if you're not familiar with compilation & build.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: soutade/libgourou#13
No description provided.