sammycage / plutosvg

Tiny SVG rendering library in C
MIT License
247 stars 17 forks source link

The build script doesn't work #8

Closed logos-maker closed 6 months ago

logos-maker commented 6 months ago

Why does it require a version that doesn't exist yet?

cmake_minimum_required(VERSION 3.3)

And then following the instruction I get the message... CMake Error at CMakeLists.txt:14 (add_subdirectory): The source directory does not contain a CMakeLists.txt file.

sammycage commented 6 months ago

git clone --recursive https://github.com/sammycage/plutosvg.git cd plutosvg mkdir build cd build cmake .. make

logos-maker commented 6 months ago

Thanks! The --recursive flag is important :-) It's not that common so I missed that.

logos-maker commented 6 months ago

But the library still doesn't get installed to my system. How do I install it? fatal error: plutosvg.h: No such file or directory 1 | #include | ^~~~ compilation terminated.

sammycage commented 6 months ago

@logos-maker Thank you for bringing this to my attention. I'll work on adding a CMake install script to ensure the library gets installed properly on your system. I'll update you once it's done.