ZoneMinder / zmdockerfiles

Dockerfiles for the ZoneMinder project build system and for running ZoneMinder
210 stars 106 forks source link

Dev Docker image does not build #63

Closed roddone closed 4 years ago

roddone commented 4 years ago

I'm using the dev docker image.

As described in #61 there is a problem with the repository used, so I changed it to "ppa:iconnor/zoneminder-1.34", but that's not my biggest problem.

When building the image, the command "RUN make && make install" fails with the following error :

[ 22%] Building CXX object src/CMakeFiles/zm.dir/zm_ffmpeg_camera.cpp.o /ZoneMinder/src/zm_ffmpeg_camera.cpp: In member function 'virtual int FfmpegCamera::CaptureAndRecord(Image&, timeval, char*)': /ZoneMinder/src/zm_ffmpeg_camera.cpp:978:50: error: 'hw_pix_fmt' was not declared in this scope if ( (ret == AVERROR_INVALIDDATA ) && (hw_pix_fmt != AV_PIX_FMT_NONE) ) { ^ src/CMakeFiles/zm.dir/build.make:446: recipe for target 'src/CMakeFiles/zm.dir/zm_ffmpeg_camera.cpp.o' failed make[2]: [src/CMakeFiles/zm.dir/zm_ffmpeg_camera.cpp.o] Error 1 make[1]: [src/CMakeFiles/zm.dir/all] Error 2 CMakeFiles/Makefile2:376: recipe for target 'src/CMakeFiles/zm.dir/all' failed Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 The command '/bin/sh -c make && make install' returned a non-zero code: 2

I am not familiar with C language nor ZM build system so I can't make it work. Am I missing something ?

zhuykovkb commented 4 years ago

@roddone try to use ppa:iconnor/zoneminder-master instead of ppa:iconnor/zoneminder-1.34. it works for me.

roddone commented 4 years ago

So, it turns out the repository WAS my biggest problem 😂. using ppa:iconnor/zoneminder-master instead of ppa:iconnor/zoneminder-1.34 solved my problem, thanks !

Before closing this issue, my ZM does not finds the fonts so I don't have any glyphs. image It seems to be a missing configuration but I don't find any clue in the docs. Do you have any idea ?

zhuykovkb commented 4 years ago

@roddone if it’s possible, write me to telegram @zhuykovkb, I’ll try to help you:)