Closed janemba closed 4 months ago
hm, looks correct to me:
-I/usr/include/librsvg-2.0
means to include that as an include path, in which on my system:
librsvg/rsvg.h
resides.
Yes same for me, but why I cannot build hyprcursor
? Some options at missing from Cmake
?
no clue, it builds fine for me and the tests pass
So I tried to compile the faulty file hyprcursor.cpp
alone, with the cmake
command-line. Without any surprise I got this:
$ c++ -DHYPRCURSOR_VERSION=\"0.1.9\" -Dhyprcursor_EXPORTS -I/tmp/hyprcursor/./include -I/tmp/hyprcursor/./libhyprcursor -O3 -DNDEBUG -std=gnu++23 -fPIC -O3 -pthread -DTOML_HEADER_ONLY=0 -DTOML_SHARED_LIB=1 -MD -MT CMakeFiles/hyprcursor.dir/libhyprcursor/hyprcursor.cpp.o -MF CMakeFiles/hyprcursor.dir/libhyprcursor/hyprcursor.cpp.o.d -o CMakeFiles/hyprcursor.dir/libhyprcursor/hyprcursor.cpp.o -c /tmp/hyprcursor/libhyprcursor/hyprcursor.cpp
/tmp/hyprcursor/libhyprcursor/hyprcursor.cpp:10:10: fatal error: librsvg/rsvg.h: No such file or directory
10 | #include <librsvg/rsvg.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
Then I added the require flags for librsvg-2.0
and I got this:
$ pkg-config --cflags librsvg-2.0
-pthread -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/local/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
$ c++ -DHYPRCURSOR_VERSION=\"0.1.9\" -Dhyprcursor_EXPORTS -I/tmp/hyprcursor/./include -I/tmp/hyprcursor/./libhyprcursor -O3 -DNDEBUG -std=gnu++23 -fPIC -O3 -pthread -DTOML_HEADER_ONLY=0 -DTOML_SHARED_LIB=1 -MD -MT CMakeFiles/hyprcursor.dir/libhyprcursor/hyprcursor.cpp.o -MF CMakeFiles/hyprcursor.dir/libhyprcursor/hyprcursor.cpp.o.d -o CMakeFiles/hyprcursor.dir/libhyprcursor/hyprcursor.cpp.o -c /tmp/hyprcursor/libhyprcursor/hyprcursor.cpp -pthread -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/local/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
/tmp/hyprcursor/libhyprcursor/hyprcursor.cpp:768:1: fatal error: opening dependency file CMakeFiles/hyprcursor.dir/libhyprcursor/hyprcursor.cpp.o.d: No such file or directory
768 | }
| ^
compilation terminated.
So the error might be nothing as I just compiled the file alone but at least the previous error is gone so maybe some flags are missing for cmake
but I don't know cmake
so I have no idea where to add the pkg-config
flag for librsvg-2.0
.
Any clue ?
no clue
Hello,
I'm using
librsvg
version2.58.2
and while building hyprcursor I got the following error:Issue is the includes are installed in
/usr/include/librsvg-2.0/
.Checking with
pkg-config
I got the following:So maybe something must be added to
CMakeList.txt
but I don't know what.