compile under debian: no zlib.h

hullo :slight_smile:

i am having trouble compiling blender on my debian sid box :eek:
i dont want to wait, until the debian mirrors have 2.3 on em and i dont want to use a precompiled version, because i want to try if its faster when compiled by myself - wings is much fast.
i arrived at getting ./configue to work, but make gets some errors … the first hing i noticed was that there seems to be no zlib.h … but i cant find that file … i cant install it, using apt-get (searched with apt-file search zlib.h) … but i think i have all dependences, because old blende rruns, and precompield as well …

gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../source/kernel/gen_messaging -I
../../../source/blender/writestreamglue -I../../../source/blender/readstreamglue
 -I../../../source/blender/inflate -funsigned-char -MT BLO_deflate.lo -MD -MP -M
F .deps/BLO_deflate.Tpo -c intern/BLO_deflate.c -o BLO_deflate.o
intern/BLO_deflate.c:38:18: zlib.h: No such file or directory
intern/BLO_deflate.c: In function `CHECK_ERR':
intern/BLO_deflate.c:54: error: `Z_OK' undeclared (first use in this function)
intern/BLO_deflate.c:54: error: (Each undeclared identifier is reported only onc
e
intern/BLO_deflate.c:54: error: for each function it appears in.)
intern/BLO_deflate.c: In function `BLO_deflate':
intern/BLO_deflate.c:74: error: `z_stream' undeclared (first use in this functio
n)
intern/BLO_deflate.c:74: error: parse error before "c_stream"
intern/BLO_deflate.c:76: error: `Bytef' undeclared (first use in this function)
intern/BLO_deflate.c:76: error: `compressBuf' undeclared (first use in this func
tion)
intern/BLO_deflate.c:77: error: `uInt' undeclared (first use in this function)
intern/BLO_deflate.c:77: error: parse error before "compressSize"
intern/BLO_deflate.c:87: error: `compressSize' undeclared (first use in this fun
ction)
intern/BLO_deflate.c:88: error: parse error before ')' token
intern/BLO_deflate.c:95: error: `c_stream' undeclared (first use in this functio
n)
intern/BLO_deflate.c:100: error: `alloc_func' undeclared (first use in this func
tion)
intern/BLO_deflate.c:100: error: parse error before numeric constant
intern/BLO_deflate.c:101: error: `free_func' undeclared (first use in this funct
ion)
intern/BLO_deflate.c:101: error: parse error before numeric constant
intern/BLO_deflate.c:102: error: `voidpf' undeclared (first use in this function
)
intern/BLO_deflate.c:102: error: parse error before numeric constant
intern/BLO_deflate.c:104: error: `Z_BEST_COMPRESSION' undeclared (first use in t
his function)
intern/BLO_deflate.c:113: error: parse error before "Bytef"
intern/BLO_deflate.c:123: error: `Z_FINISH' undeclared (first use in this functi
on)
intern/BLO_deflate.c:124: error: `Z_STREAM_END' undeclared (first use in this fu
nction)
intern/BLO_deflate.c:158: error: parse error before "Bytef"
intern/BLO_deflate.c:184: error: parse error before "Bytef"
make[4]: *** [BLO_deflate.lo] Error 1
make[4]: Leaving directory `/home/qiv/blender-2.30-src/source/blender/deflate'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/qiv/blender-2.30-src/source/blender'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/qiv/blender-2.30-src/source'
make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/qiv/blender-2.30-src'
make: *** [all] Error 2

thcx, bb :slight_smile:

zlib.h is a header file. You don’t need it to run precompiled versions. You only need it to compile the source yourself.

Usually linux library packages come in two parts, the stuff you need to run applications and the stuff you need to develop and build applications. You need to either install the zlib development package or build zlib from source.

i installed the packages zlibc, zlib1g and zlib1g-dev … the last one helped … but its now even worse, i get lines and lines of errors again … i just pasted the last reachable lines ;)… should go to the cinema … maybe i can find an error later … thank you :slight_smile:

intern/mjpeg.c: In function `Decode_JPEG':
intern/mjpeg.c:151: error: storage size of `dinfo' isn't known
intern/mjpeg.c:152: error: storage size of `jerr' isn't known
intern/mjpeg.c:159: error: `TRUE' undeclared (first use in this function)
intern/mjpeg.c:163: error: `JCS_RGB' undeclared (first use in this function)
intern/mjpeg.c:164: error: `JDCT_IFAST' undeclared (first use in this function)
intern/mjpeg.c:170: error: `JSAMPARRAY' undeclared (first use in this function)
intern/mjpeg.c: In function `Compress_JPEG':
intern/mjpeg.c:200: error: storage size of `cinfo' isn't known
intern/mjpeg.c:201: error: storage size of `jerr' isn't known
intern/mjpeg.c:211: error: `JCS_RGB' undeclared (first use in this function)
intern/mjpeg.c:214: error: `JCS_YCbCr' undeclared (first use in this function)
intern/mjpeg.c:216: error: `TRUE' undeclared (first use in this function)
intern/mjpeg.c:228: error: `FALSE' undeclared (first use in this function)
intern/mjpeg.c:241: error: `JPEG_APP0' undeclared (first use in this function)
intern/mjpeg.c:247: error: `JPEG_COM' undeclared (first use in this function)
intern/mjpeg.c:251: error: `JSAMPARRAY' undeclared (first use in this function)
intern/mjpeg.c: At top level:
intern/mjpeg.c:381: error: parse error before "cinfo"
intern/mjpeg.c:385: error: parse error before "jpegmemdestmgr_empty_output_buffer"
intern/mjpeg.c:385: error: parse error before "cinfo"
intern/mjpeg.c: In function `jpegmemdestmgr_empty_output_buffer':
intern/mjpeg.c:386: error: `TRUE' undeclared (first use in this function)
intern/mjpeg.c: At top level:
intern/mjpeg.c:389: error: parse error before "cinfo"
intern/mjpeg.c: In function `jpegmemdestmgr_term_destination':
intern/mjpeg.c:390: error: `cinfo' undeclared (first use in this function)
intern/mjpeg.c: At top level:
intern/mjpeg.c:395: error: parse error before "cinfo"
intern/mjpeg.c: In function `jpegmemdestmgr_build':
intern/mjpeg.c:396: error: `cinfo' undeclared (first use in this function)
intern/mjpeg.c:402: error: `buffer' undeclared (first use in this function)
intern/mjpeg.c:403: error: `bufsize' undeclared (first use in this function)
intern/mjpeg.c: At top level:
intern/mjpeg.c:410: error: parse error before "dinfo"
intern/mjpeg.c:414: error: parse error before "jpegmemsrcmgr_fill_input_buffer"
intern/mjpeg.c:414: error: parse error before "dinfo"
intern/mjpeg.c: In function `jpegmemsrcmgr_fill_input_buffer':
intern/mjpeg.c:415: error: `dinfo' undeclared (first use in this function)
intern/mjpeg.c:418: error: `JWRN_JPEG_EOF' undeclared (first use in this function)
intern/mjpeg.c:420: error: `JOCTET' undeclared (first use in this function)
intern/mjpeg.c:420: error: parse error before numeric constant
intern/mjpeg.c:421: error: parse error before "JPEG_EOI"
intern/mjpeg.c:426: error: `TRUE' undeclared (first use in this function)
intern/mjpeg.c: At top level:
intern/mjpeg.c:429: error: parse error before "dinfo"
intern/mjpeg.c: In function `jpegmemsrcmgr_skip_input_data':
intern/mjpeg.c:430: error: `dinfo' undeclared (first use in this function)
intern/mjpeg.c:430: error: `skipcnt' undeclared (first use in this function)
intern/mjpeg.c: At top level:
intern/mjpeg.c:437: error: parse error before "dinfo"
intern/mjpeg.c: In function `jpegmemsrcmgr_term_source':
intern/mjpeg.c:438: error: `dinfo' undeclared (first use in this function)
intern/mjpeg.c: At top level:
intern/mjpeg.c:443: error: parse error before "dinfo"
intern/mjpeg.c: In function `jpegmemsrcmgr_build':
intern/mjpeg.c:444: error: `dinfo' undeclared (first use in this function)
intern/mjpeg.c:449: error: `jpeg_resync_to_restart' undeclared (first use in this fun
ction)
intern/mjpeg.c:452: error: `bufsize' undeclared (first use in this function)
intern/mjpeg.c:453: error: `buffer' undeclared (first use in this function)
make[4]: *** [mjpeg.lo] Error 1
make[4]: Leaving directory `/home/qiv/blender-2.30-src/source/blender/avi'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/qiv/blender-2.30-src/source/blender'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/qiv/blender-2.30-src/source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/qiv/blender-2.30-src'
make: *** [all] Error 2

after make clean; ./configure; make … end of make-output

It is not the last error message that is important. It is the first one. That tells you where things started to go south.

You should also take a good look at the output from running configure. Did it find all the things you expected? Like zlib for, for example?

tank you for the help :slight_smile:

i just did a ./configure again and pasted what i dont think is normal:

checking for g77… no
checking for f77… no
checking for xlf… no
checking for frt… no
checking for pgf77… no
checking for fl32… no
checking for af77… no
checking for fort77… no
checking for f90… no
checking for xlf90… no
checking for pgf90… no
checking for epcf90… no
checking for f95… no
checking for fort… no
checking for xlf95… no
checking for lf95… no
checking for g95… no
// the first time “no” comes up … in a quite long row :confused:

checking whether to build shared libraries… no
checking whether to build static libraries… yes
// there is a static and another precompiled blender version …
// static does not use opengl, i think … is this the same?
// i would like to use opengl … :wink:

checking jpeglib.h usability… no
checking jpeglib.h presence… no
checking for jpeglib.h… no
checking png.h usability… no
checking png.h presence… no
checking for png.h… no
// it looks like i should install some grafix developper packets …
// will do a search using apt-file

checking Carbon/Carbon.h usability… no
checking Carbon/Carbon.h presence… no
checking for Carbon/Carbon.h… no

checking for png_get_header_version in -lpng… no
checking for jpeg_destroy in -ljpeg… no
checking for sdl-config… no
checking for SDL - version >= 1.0.0… no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
checking for SDL_Init in -lSDL… no
// dunno what sdl is … i will have a look at some INSTALL and see, what i need for compiling blender …
// because i have everything needed for running a precompiled version …

but in the end it builds all makefiles … ./configure does not produce any serious errors or even stop earlier and not biuld the makefiles …

this block of stuff is checking for various compilers. f77 is a FORTRAN compiler. We just want C like gcc. IGNORE this.

checking whether to build shared libraries… no
checking whether to build static libraries… yes
// there is a static and another precompiled blender version …
// static does not use opengl, i think … is this the same?
// i would like to use opengl … :wink:

Blender uses opengl. Always. this is just for libs that may get created. IGNORE.

checking jpeglib.h usability… no
checking jpeglib.h presence… no
checking for jpeglib.h… no
checking png.h usability… no
checking png.h presence… no
checking for png.h… no
// it looks like i should install some grafix developper packets …
// will do a search using apt-file

This stuff is SERIOUS. We want these packages. install the development packages for jpeg, png and similar.

checking Carbon/Carbon.h usability… no
checking Carbon/Carbon.h presence… no
checking for Carbon/Carbon.h… no

stuff for mac users. IGNORE

checking for png_get_header_version in -lpng… no
checking for jpeg_destroy in -ljpeg… no
checking for sdl-config… no
checking for SDL - version >= 1.0.0… no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
checking for SDL_Init in -lSDL… no
// dunno what sdl is … i will have a look at some INSTALL and see, what i need for compiling blender …
// because i have everything needed for running a precompiled version …

SDL is Simple DirectMedia Layer, a library for graphics, sound and other goodies. Loki used it to port windos games to linux. Install it from www.libsdl.org .

To run a precompiled static program, you don’t need this stuff because it is all baked into the executable. To build the program yourself, you need it.

but in the end it builds all makefiles … ./configure does not produce any serious errors or even stop earlier and not biuld the makefiles …

Unless it finds a fatal error, configure will try to do the best with what it finds.

Remember that if you have installed packages in some ‘unusual’ place, like /opt instead of /usr/local, you have to help configure find them. Do a ./configure --help to see how.

argh, you are too fast :wink:

i had to install a lot of -dev packages and it worked … is it possible, to compiel it, without every feature running, or is it perfect, if i can run it?

btw it is worth it, to compile blender :slight_smile: - its fast i think :smiley:

anyway, thank you :slight_smile: