Skip to content

[BUG] libgsl-dev not found during compiling #381

@nathanjshaffer

Description

@nathanjshaffer

Compiling with mk404-build.sh produces multiple errors:

[ 46%] Built target tinyobjloader
[ 46%] Building CXX object CMakeFiles/MK404.dir/cmake_pch.hxx.gch
In file included from /home/desktop/Nextcloud/Source-Code/MK404/master/build/CMakeFiles/MK404.dir/cmake_pch.hxx:5,
from :
/home/desktop/Nextcloud/Source-Code/MK404/master/utility/PCH.h:40:10: fatal error: gsl-lite.hpp: No such file or directory
40 | #include "gsl-lite.hpp"
| ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/MK404.dir/build.make:77: CMakeFiles/MK404.dir/cmake_pch.hxx.gch] Error 1
make[1]: *** [CMakeFiles/Makefile2:267: CMakeFiles/MK404.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
[ 44%] Built target simavr
[ 46%] Built target tinyobjloader
[ 46%] Building CXX object CMakeFiles/MK404.dir/cmake_pch.hxx.gch
In file included from /home/desktop/Nextcloud/Source-Code/MK404/master/build/CMakeFiles/MK404.dir/cmake_pch.hxx:5,
from :
/home/desktop/Nextcloud/Source-Code/MK404/master/utility/PCH.h:40:10: fatal error: gsl-lite.hpp: No such file or directory
40 | #include "gsl-lite.hpp"
| ^~~~~~~~~~~~~~
compilation terminated.
gmake[3]: *** [CMakeFiles/MK404.dir/build.make:77: CMakeFiles/MK404.dir/cmake_pch.hxx.gch] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:267: CMakeFiles/MK404.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:2785: SDCard/CMakeFiles/Prusa_MK3S_SDcard.bin.dir/rule] Error 2
gmake: *** [Makefile:1414: Prusa_MK3S_SDcard.bin] Error 2
[ 44%] Built target simavr
[ 46%] Built target tinyobjloader
[ 46%] Building CXX object CMakeFiles/MK404.dir/cmake_pch.hxx.gch
In file included from /home/desktop/Nextcloud/Source-Code/MK404/master/build/CMakeFiles/MK404.dir/cmake_pch.hxx:5,
from :
/home/desktop/Nextcloud/Source-Code/MK404/master/utility/PCH.h:40:10: fatal error: gsl-lite.hpp: No such file or directory
40 | #include "gsl-lite.hpp"
| ^~~~~~~~~~~~~~
compilation terminated.
gmake[3]: *** [CMakeFiles/MK404.dir/build.make:77: CMakeFiles/MK404.dir/cmake_pch.hxx.gch] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:267: CMakeFiles/MK404.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:2733: SDCard/CMakeFiles/Prusa_MK3_SDcard.bin.dir/rule] Error 2
gmake: *** [Makefile:1388: Prusa_MK3_SDcard.bin] Error 2
[ 44%] Built target simavr
[ 46%] Built target tinyobjloader
[ 46%] Building CXX object CMakeFiles/MK404.dir/cmake_pch.hxx.gch
In file included from /home/desktop/Nextcloud/Source-Code/MK404/master/build/CMakeFiles/MK404.dir/cmake_pch.hxx:5,
from :
/home/desktop/Nextcloud/Source-Code/MK404/master/utility/PCH.h:40:10: fatal error: gsl-lite.hpp: No such file or directory
40 | #include "gsl-lite.hpp"
| ^~~~~~~~~~~~~~
compilation terminated.
gmake[3]: *** [CMakeFiles/MK404.dir/build.make:77: CMakeFiles/MK404.dir/cmake_pch.hxx.gch] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:267: CMakeFiles/MK404.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:2655: SDCard/CMakeFiles/Prusa_MK25_13_SDcard.bin.dir/rule] Error 2
gmake: *** [Makefile:1349: Prusa_MK25_13_SDcard.bin] Error 2
[ 44%] Built target simavr
[ 46%] Built target tinyobjloader
[ 46%] Building CXX object CMakeFiles/MK404.dir/cmake_pch.hxx.gch
In file included from /home/desktop/Nextcloud/Source-Code/MK404/master/build/CMakeFiles/MK404.dir/cmake_pch.hxx:5,
from :
/home/desktop/Nextcloud/Source-Code/MK404/master/utility/PCH.h:40:10: fatal error: gsl-lite.hpp: No such file or directory
40 | #include "gsl-lite.hpp"
| ^~~~~~~~~~~~~~
compilation terminated.
gmake[3]: *** [CMakeFiles/MK404.dir/build.make:77: CMakeFiles/MK404.dir/cmake_pch.hxx.gch] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:267: CMakeFiles/MK404.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:2629: SDCard/CMakeFiles/Prusa_MK25S_13_SDcard.bin.dir/rule] Error 2
gmake: *** [Makefile:1336: Prusa_MK25S_13_SDcard.bin] Error 2
[ 44%] Built target simavr
[ 46%] Built target tinyobjloader
[ 46%] Building CXX object CMakeFiles/MK404.dir/cmake_pch.hxx.gch
In file included from /home/desktop/Nextcloud/Source-Code/MK404/master/build/CMakeFiles/MK404.dir/cmake_pch.hxx:5,
from :
/home/desktop/Nextcloud/Source-Code/MK404/master/utility/PCH.h:40:10: fatal error: gsl-lite.hpp: No such file or directory
40 | #include "gsl-lite.hpp"
| ^~~~~~~~~~~~~~
compilation terminated.
gmake[3]: *** [CMakeFiles/MK404.dir/build.make:77: CMakeFiles/MK404.dir/cmake_pch.hxx.gch] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:267: CMakeFiles/MK404.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:2811: SDCard/CMakeFiles/Prusa_MK3SMMU2_SDcard.bin.dir/rule] Error 2
gmake: *** [Makefile:1427: Prusa_MK3SMMU2_SDcard.bin] Error 2
[ 44%] Built target simavr
[ 46%] Built target tinyobjloader
[ 46%] Building CXX object CMakeFiles/MK404.dir/cmake_pch.hxx.gch
In file included from /home/desktop/Nextcloud/Source-Code/MK404/master/build/CMakeFiles/MK404.dir/cmake_pch.hxx:5,
from :
/home/desktop/Nextcloud/Source-Code/MK404/master/utility/PCH.h:40:10: fatal error: gsl-lite.hpp: No such file or directory
40 | #include "gsl-lite.hpp"
| ^~~~~~~~~~~~~~
compilation terminated.
gmake[3]: *** [CMakeFiles/MK404.dir/build.make:77: CMakeFiles/MK404.dir/cmake_pch.hxx.gch] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:267: CMakeFiles/MK404.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:2759: SDCard/CMakeFiles/Prusa_MK3MMU2_SDcard.bin.dir/rule] Error 2
gmake: *** [Makefile:1401: Prusa_MK3MMU2_SDcard.bin] Error 2

I can see the file in master/3rdParty. But the Directory is not being included during compiling for some reason

  • OS: Linux mint
  • MK404 release hash: 1ec65e8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions