Ventoy Forums
【Solved】Grub compile error - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy General Use (https://forums.ventoy.net/forumdisplay.php?fid=1)
+--- Forum: Ventoy Discussion Forum (https://forums.ventoy.net/forumdisplay.php?fid=2)
+--- Thread: 【Solved】Grub compile error (/showthread.php?tid=1507)



【Solved】Grub compile error - mrplick - 01-07-2021

Hello,
Tried to compile Ventoy 1.32 from source.
Grub Core.img is coming out at 0kb.
I am getting this error when compiling Grub separately.
Compiles fine on 1.31 source.  Compiled using Longpanda's guide on Github.
Likely an error on my part as I am new to compiling.

ventoy/ventoy.c:49:19: fatal error: miniz.h: No such file or directory
#include "miniz.h"
                  ^
compilation terminated.
make[3]: *** [ventoy/ventoy_module-ventoy.o] Error 1
make[3]: Leaving directory `/home/Ventoy-master/GRUB2/SRC/grub-2.04/grub-core'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/home/Ventoy-master/GRUB2/SRC/grub-2.04/grub-core'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/Ventoy-master/GRUB2/SRC/grub-2.04'
make: *** [install] Error 2
grub-mkimage: error: cannot open `/home/Ventoy-master/GRUB2/SRC/grub-2.04/../../../GRUB2/INSTALL/lib/grub/i386-efi/moddep.lst': No such file or directory.
grub-mknetdir: error: cannot open `/home/Ventoy-master/GRUB2/INSTALL/lib/grub/i386-efi/moddep.lst': No such file or directory.


RE: Grub compile error - longpanda - 01-08-2021

Oh, I missed the new files.
I have commited to the git, please update it.

https://github.com/ventoy/Ventoy/blob/master/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/miniz.h
https://github.com/ventoy/Ventoy/blob/master/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/miniz.c


RE: Grub compile error - mrplick - 01-09-2021

(01-08-2021, 03:04 AM)longpanda Wrote: Oh, I missed the new files.
I have commited to the git, please update it.

https://github.com/ventoy/Ventoy/blob/master/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/miniz.h
https://github.com/ventoy/Ventoy/blob/master/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/miniz.c
Thanks,
That fixed it.