Failed to build gstreamer-1.0 under debian stretch
user@debian9:~/cerbero$ ./cerbero-uninstalled -v nvcodec package gstreamer-1.0
Building the following recipes: libffi zlib glib bash-completion libunwind gobject-introspection gstreamer-1.0 libxml2 libogg libpng pixman expat bzip2 freetype fontconfig cairo fribidi harfbuzz pango libvorbis libtheora libvisual orc opus graphene libjpeg-turbo cdparanoia gst-plugins-base-1.0 gst-shell speex tiff gdk-pixbuf glib-networking libpsl sqlite3 libsoup mpg123 lame wavpack flac taglib libvpx libdv gst-plugins-good-1.0 libass libkate openh264 librtmp libsrtp libdca libmms libdvdread libdvdnav libnice soundtouch vo-aacenc libcroco librsvg openjpeg spandsp webrtc-audio-processing sbc ladspa srt libusrsctp zbar gst-plugins-bad-1.0 a52dec opencore-amr x264 gst-plugins-ugly-1.0 json-glib gst-rtsp-server-1.0 ffmpeg gst-libav-1.0 gst-validate gst-editing-services-1.0
Building using 8 job(s) with the following job subdivisions: install: 1, compile: 3, and 4 general job(s)
[(1/77) zlib -> already built]
[(2/77) libffi -> already built]
[(3/77) glib -> already built]
[(4/77) libpng -> already built]
[(5/77) expat -> already built]
[(6/77) cdparanoia -> already built]
[(7/77) bzip2 -> already built]
[(8/77) freetype -> already built]
[(9/77) libogg -> already built]
[(10/77) fontconfig -> already built]
[(11/77) bash-completion -> already built]
[(12/77) pixman -> already built]
[(13/77) libvorbis -> already built]
[(14/77) libxml2 -> already built]
[(15/77) fribidi -> already built]
[(16/77) libvisual -> already built]
[(17/77) opus -> already built]
[(18/77) libjpeg-turbo -> built]
[(19/77) orc -> built]
[(19/77) FETCH: cairo, openh264, tiff CONFIGURE: openjpeg COMPILE: gobject-introspection, libtheora, libunwind]Running command 'cmake -DCMAKE_INSTALL_PREFIX=/home/user/cerbero/build/dist/linux_x86_64 -H/home/user/cerbero/build/sources/linux_x86_64/openjpeg-2.3.1 -B/home/user/cerbero/build/sources/linux_x86_64/openjpeg-2.3.1/_builddir -DCMAKE_LIBRARY_OUTPUT_PATH=/home/user/cerbero/build/dist/linux_x86_64/lib -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_BINDIR=bin -DCMAKE_INSTALL_INCLUDEDIR=include -DBUILD_CODEC:bool=off -DBUILD_PKGCONFIG_FILES:bool=on -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ '-DCMAKE_C_FLAGS= -Wall -g -O2 -m64 ' '-DCMAKE_CXX_FLAGS= -Wall -g -O2 -m64 ' -DLIB_SUFFIX= -DCMAKE_BUILD_TYPE=Release '-DCMAKE_FIND_ROOT_PATH=$CERBERO_PREFIX' -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true .'
CMake Error: The source directory "/home/user/cerbero/build/sources/linux_x86_64/openjpeg-2.3.1/_builddir" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
Recipe 'openjpeg' failed at the build step 'configure'
Command Error: Running ['cmake', '-DCMAKE_INSTALL_PREFIX=/home/user/cerbero/build/dist/linux_x86_64', '-H/home/user/cerbero/build/sources/linux_x86_64/openjpeg-2.3.1', '-B/home/user/cerbero/build/sources/linux_x86_64/openjpeg-2.3.1/_builddir', '-DCMAKE_LIBRARY_OUTPUT_PATH=/home/user/cerbero/build/dist/linux_x86_64/lib', '-DCMAKE_INSTALL_LIBDIR=lib', '-DCMAKE_INSTALL_BINDIR=bin', '-DCMAKE_INSTALL_INCLUDEDIR=include', '-DBUILD_CODEC:bool=off', '-DBUILD_PKGCONFIG_FILES:bool=on', '-DCMAKE_C_COMPILER=gcc', '-DCMAKE_CXX_COMPILER=g++', '-DCMAKE_C_FLAGS= -Wall -g -O2 -m64 ', '-DCMAKE_CXX_FLAGS= -Wall -g -O2 -m64 ', '-DLIB_SUFFIX=', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_FIND_ROOT_PATH=$CERBERO_PREFIX', '-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true', '.'] returned 1
Output in logfile /home/user/cerbero/build/logs/linux_x86_64/openjpeg-configure.log
Select an action to proceed:
[0] Enter the shell
[1] Rebuild the recipe from scratch
[2] Rebuild starting from the failed step
[3] Skip recipe
[4] Abort
upd: it seems that by some reason current directory is set to _builddir where is of course no CMakeLists.txt. When run manually from right source directory. all is ok. Building is ok under ubuntu 19.10 too.
Edited by oleg krutov