Doesn't compile (qoi.h no such file or directory)
mak448a opened this issue · comments
Describe the bug
Doesn't compile
To Reproduce
Steps to reproduce the bug:
- Environment: Fedora 38 KDE
- Install dependencies in README.md
- Run
make -j 8
in terminal
src/parsers/QoiParser.cpp:5:10: fatal error: qoi/qoi.h: No such file or directory
5 | #include <qoi/qoi.h>
| ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:175: build/src/parsers/QoiParser.cpp.o] Error 1
make: *** Waiting for unfinished jobs....
Expected behavior
Should compile
check if your Dotto's source directory has the following files:
dependencies/qoi/qoi.cpp
dependencies/qoi/qoi.h
if not, this means you didn't pull the submodules, basically Dotto has few third party libraries that are kept at LibreSprite/DottoDependencies.
but there is a shortcut to this repository in the main dotto repository which is called a "submodule".
while cloning the repository you need to pass a flag --recursive
which clones all the submodules too but you probably forgot that.
so if you don't want to re-clone everything you can run this command in your existing cloned repo:
git submodule update --init --recursive
Oh ok sorry I didn't follow the instructions properly