Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling causes error ubuntu 18.04 amd64 #1

Open
DarkenLX opened this issue Oct 12, 2018 · 1 comment
Open

compiling causes error ubuntu 18.04 amd64 #1

DarkenLX opened this issue Oct 12, 2018 · 1 comment

Comments

@DarkenLX
Copy link

included from /usr/include/stdio.h:862:0,
from /home/louis/external_fastboot-master/usb_linux.c:29:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output between 29 and 284 bytes into a destination of size 80
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 26%] Building C object CMakeFiles/fastboot.dir/util_linux.c.o
[ 30%] Building C object CMakeFiles/fastboot.dir/libsparse/backed_block.c.o
[ 33%] Building C object CMakeFiles/fastboot.dir/libsparse/output_file.c.o
/home/louis/external_fastboot-master/libsparse/output_file.c:30:10: fatal error: zlib.h: No such file or directory
#include <zlib.h>
^~~~~~~~
compilation terminated.
CMakeFiles/fastboot.dir/build.make:278: recipe for target 'CMakeFiles/fastboot.dir/libsparse/output_file.c.o' failed
make[2]: *** [CMakeFiles/fastboot.dir/libsparse/output_file.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/fastboot.dir/all' failed
make[1]: *** [CMakeFiles/fastboot.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

@M1cha
Copy link
Member

M1cha commented Oct 12, 2018

you have to install zlib1g-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants