News:

--

Main Menu

compile errror

Started by bernd_b, March 21, 2015, 07:03:36 PM

Previous topic - Next topic

sl1pkn07


CMakeFiles/libavcodec.dir/build.make:71: recipe for target 'ffmpeg/build/ffmpeg' failed
make[2]: *** [ffmpeg/build/ffmpeg] Error 1


in CMakeFiles/libavcodec.dir/build.make line 71:


ffmpeg/build/ffmpeg: ffmpeg/build/libavcodec/libADM6avcodec.so.56
@$(CMAKE_COMMAND) -E touch_nocreate ffmpeg/build/ffmpeg



â””â”â,¬Ã¢â€â,¬Ã¢â€â,¬Ã¢â€¢Â¼  LANG=C ls ffmpeg/build/ffmpeg
ls: cannot access ffmpeg/build/ffmpeg: No such file or directory


maybe bad rule to make ffmpeg? (make autogenerated?)


one question. in my kwedge, avidemux only need the libavfoo libraries, rigth, then why not change

--disable-ffplay --disable-ffprobe

in avidemux/cmake/admFFmpegBuild.cmake to

--disable-programs

? (to build only the libraries)

also no need generate a ffmpeg documentation(?), then why not add '--disable-doc' in a ffmpeg options?

greetings

mean

I'll push the updated ffmpeg soon, including your hints
It might help

bernd_b

So far nothing new I fear
git pull
Updating ee7b929..6424f73
Fast-forward
avidemux_core/ffmpeg_package/ffmpeg-2.4.3.tar.bz2                           | Bin 7369986 -> 0 bytes
avidemux_core/ffmpeg_package/ffmpeg-2.6.1.tar.bz2                           | Bin 0 -> 7802246 bytes
avidemux_core/ffmpeg_package/patches/libavcodec_put_bits.h.patch            |  12 ------------
avidemux_core/ffmpeg_package/patches/libavcodec_x86_fmtconvert_init.c.patch |  17 -----------------
avidemux_core/ffmpeg_package/patches/libavformat_matroskaenc.c.patch        |  47 ++++++++++++++++++++++++-----------------------
cmake/admFFmpegBuild.cmake                                                  |   6 +++---
6 files changed, 27 insertions(+), 55 deletions(-)
delete mode 100644 avidemux_core/ffmpeg_package/ffmpeg-2.4.3.tar.bz2
create mode 100644 avidemux_core/ffmpeg_package/ffmpeg-2.6.1.tar.bz2
delete mode 100644 avidemux_core/ffmpeg_package/patches/libavcodec_put_bits.h.patch
delete mode 100644 avidemux_core/ffmpeg_package/patches/libavcodec_x86_fmtconvert_init.c.patch
[bernd_b@amd64-archlinux avidemux2]$ bash bootStrap.sh --with-qt4 --with-cli
bash: bootStrap.sh: No such file or directory
[bernd_b@amd64-archlinux avidemux2]$ bash bootStrap.sh --with-qt4 --with-cli
bootStrap.bash                 bootStrapCrossMingw_w32Qt5.sh  bootStrapCrossMingw_w64.sh     
bootStrapCrossMac106.sh        bootStrapCrossMingw_w32.sh     bootStrapHaikuOS.bash         
bootStrapCrossMingw.sh         bootStrapCrossMingw_w64Qt5.sh  bootStrapOsx.bash             
[bernd_b@amd64-archlinux avidemux2]$ bash bootStrap.bash --with-qt4 --with-cli
CMAKE Version : 3.2.1
Cmake version >=2.8.7 doesnt need fakeroot
Build configuration :
******************* :
Build type :
Release build
    Core will be built
     Gtk will be skipped
    Qt4 will be built
    Cli will be built
    Plugins will be built
**BootStrapping avidemux **
Top dir : /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2
Fake installation directory=/mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/install

** CORE **
Building buildCore from ../avidemux_core with EXTRA=<>, DEBUG=<>
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done

#########################################
Configure for avidemux core libs Started
#########################################

-- [BUILD] EXTRA Cflags:
-- [BUILD] EXTRA CXXflags:
-- [BUILD] EXTRA LDflags:
-- [BUILD] Compiler /usr/bin/c++
-- [BUILD] Linker   /usr/bin/ld
-- Top Source dir is /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/avidemux_core/..

-- Checking Compiler support
-- *************************
-- Checking if compiler supports x86 64-bit - Yes
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian

-- CMAKE_INSTALL_PREFIX: /usr
-- AVIDEMUX_INSTALL_DIR: /usr
-- FAKEROOT                   : /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/install/
-- AVIDEMUX_BIN_DIR           : /usr/bin
-- AVIDEMUX_LIB_DIR           : /usr/lib
-- AVIDEMUX_INCLUDE_DIR       : /usr/include
-- AVIDEMUX_SEARCH_INCLUDE_DIR: /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/install//usr/include
-- AVIDEMUX_SEARCH_LIB_DIR    : /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/install//usr/lib

-- Checking for SCM
-- ****************
-- Seems to be git or git-svn...
-- Getting git-svn version from /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/avidemux_core/..
-- <6424f733886><150323>==> 150323_6424f733886

-- Checking for pkg-config
-- ***********************
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- Found pkg-config

-- Checking for pthreads
-- *********************
-- Found pthreads

-- Checking for zlib
-- *****************
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8")
-- Found zlib

-- Checking for gettext
-- ********************
-- Found libintl.h
-- Cound not find intl library
Could not find Gettext
-- libintl not required for gettext support

-- Checking for SDL
-- ****************
-- Found SDL

-- Checking for XVideo
-- *******************
-- Found X11/extensions/Xvlib.h
-- Found Xv library
-- Found XvShmPutImage in /usr/lib64/libXv.so
-- Found XVideo

-- Checking for execinfo
-- *********************
-- Found execinfo.h
-- Cound not find execinfo library
Could not find execinfo

-- Checking for VDPAU
-- *******************
-- Found vdpau/vdpau.h
-- Found VDPAU

-- Checking for LIBVA
-- *******************
-- Found va/va.h
-- Checking it is the right version...
-- Libva compile check failed
-- Change Dir: /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/buildCore/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec2798023966/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2798023966.dir/build.make CMakeFiles/cmTryCompileExec2798023966.dir/build
make[1]: Entering directory '/mnt/Data_bb/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/buildCore/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/buildCore/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec2798023966.dir/libva.cpp.o
/usr/bin/c++     -o CMakeFiles/cmTryCompileExec2798023966.dir/libva.cpp.o -c /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/cmake_compile_check/libva.cpp
/mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/cmake_compile_check/libva.cpp: In function ââ,¬Ëœint main(int, char**)ââ,¬â,,¢:
/mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/cmake_compile_check/libva.cpp:11:46: error: invalid conversion from ââ,¬Ëœintââ,¬â,,¢ to ââ,¬ËœVASurfaceID* {aka unsigned int*}ââ,¬â,,¢ [-fpermissive]
         vaCreateSurfaces(dpy,w,h,format,1,&id);
                                              ^
/mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/cmake_compile_check/libva.cpp:11:46: error: invalid conversion from ââ,¬ËœVASurfaceID* {aka unsigned int*}ââ,¬â,,¢ to ââ,¬Ëœunsigned intââ,¬â,,¢ [-fpermissive]
/mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/cmake_compile_check/libva.cpp:11:46: error: too few arguments to function ââ,¬ËœVAStatus vaCreateSurfaces(VADisplay, unsigned int, unsigned int, unsigned int, VASurfaceID*, unsigned int, VASurfaceAttrib*, unsigned int)ââ,¬â,,¢
In file included from /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/cmake_compile_check/libva.cpp:3:0:
/usr/include/va/va.h:853:1: note: declared here
vaCreateSurfaces(
^
CMakeFiles/cmTryCompileExec2798023966.dir/build.make:57: recipe for target 'CMakeFiles/cmTryCompileExec2798023966.dir/libva.cpp.o' failed
make[1]: *** [CMakeFiles/cmTryCompileExec2798023966.dir/libva.cpp.o] Error 1
make[1]: Leaving directory '/mnt/Data_bb/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/buildCore/CMakeFiles/CMakeTmp'
Makefile:117: recipe for target 'cmTryCompileExec2798023966/fast' failed
make: *** [cmTryCompileExec2798023966/fast] Error 2

Could not find LIBVA

-- Checking system headers
-- ***********************
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found

-- Checking for ftello
-- ********************
-- ftello present

-- Checking for sqlite
-- *******************
-- Found sqlite3.h
-- Found sqlite3 library
-- Found sqlite3_close in /usr/lib64/libsqlite3.so
-- Found SQLite

-- ADM_coreConfig.h generated

-- Found x265.h
-- Found x265_config.h
-- Creating /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/buildCore/ffmpeg
-- Checking for tar
-- ****************
-- Found tar

-- Unpacking ffmpeg from /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/avidemux_core/../avidemux_core/ffmpeg_package/ffmpeg-2.6.1.tar.bz2 to /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/buildCore/ffmpeg

-- Checking for patch
-- ******************
-- Found patch

-- -- Mine, Applying patch <libavcodec_ac3_h.patch> --
patching file libavcodec/ac3tab.h
Hunk #1 succeeded at 35 (offset 2 lines).
-- -- Mine, Applying patch <libavcodec_avcodec.h.patch> --
patching file libavcodec/avcodec.h
Hunk #1 succeeded at 766 with fuzz 1 (offset 10 lines).
Hunk #2 succeeded at 2304 (offset 55 lines).
Hunk #3 succeeded at 2328 with fuzz 1 (offset 56 lines).
-- -- Mine, Applying patch <libavcodec_ff_spsinfo.h.patch> --
patching file libavcodec/ff_spsinfo.h
-- -- Mine, Applying patch <libavcodec_golomb.h.patch> --
patching file libavcodec/golomb.h
Hunk #1 succeeded at 37 (offset 1 line).
-- -- Mine, Applying patch <libavcodec_h263dec.c.patch> --
patching file libavcodec/h263dec.c
Hunk #1 succeeded at 137 (offset 12 lines).
-- -- Mine, Applying patch <libavcodec_h264_parser.c.patch> --
patching file libavcodec/h264_parser.c
Hunk #1 succeeded at 40 with fuzz 2 (offset 6 lines).
-- -- Mine, Applying patch <libavcodec_libavcodec.v.patch> --
patching file libavcodec/libavcodec.v
-- -- Mine, Applying patch <libavcodec_mathops.h.patch> --
patching file libavcodec/mathops.h
Hunk #1 succeeded at 25 with fuzz 2 (offset 2 lines).
-- -- Mine, Applying patch <libavcodec_mpeg12enc.c.patch> --
patching file libavcodec/mpeg12enc.c
-- -- Mine, Applying patch <libavcodec_mpegvideo_enc.c.patch> --
patching file libavcodec/mpegvideo_enc.c
Hunk #1 succeeded at 469 (offset 46 lines).
Hunk #2 succeeded at 568 (offset 46 lines).
Hunk #3 succeeded at 576 (offset 46 lines).
-- -- Mine, Applying patch <libavcodec_vdpau.h.patch> --
patching file libavcodec/vdpau.h
Hunk #1 succeeded at 231 (offset 40 lines).
-- -- Mine, Applying patch <libavformat_isom.c.patch> --
patching file libavformat/isom.c
Hunk #1 succeeded at 280 (offset 15 lines).
-- -- Mine, Applying patch <libavformat_libavformat.v.patch> --
patching file libavformat/libavformat.v
-- -- Mine, Applying patch <libavformat_movenc.c.patch> --
patching file libavformat/movenc.c
Hunk #1 succeeded at 1126 with fuzz 2 (offset 286 lines).
-- -- Mine, Applying patch <libavformat_mpegtsenc.c.patch> --
patching file libavformat/mpegtsenc.c
Hunk #1 succeeded at 1208 with fuzz 2 (offset 13 lines).
-- -- Mine, Applying patch <libavutil_avutil.h.patch> --
patching file libavutil/avutil.h
Hunk #1 succeeded at 159 with fuzz 1 (offset 52 lines).
-- -- Mine, Applying patch <libavutil_lfg.c.patch> --
patching file libavutil/lfg.c
-- -- Mine, Applying patch <libavutil_lfg.h.patch> --
patching file libavutil/lfg.h
Hunk #1 succeeded at 24 with fuzz 2.
-- -- Mine, Applying patch <libavformat_matroskaenc.c.patch> --
patching file libavformat/matroskaenc.c
-- Patching Linux common.mak
patching file common.mak
Hunk #1 succeeded at 104 with fuzz 1 (offset 22 lines).

-- Checking for Bourne shell
-- *************************
-- Found Bourne shell

-- Checking for GNU Make
-- *********************
-- Found GNU Make

-- Configuring FFmpeg
-- Configuring done, processing
-- Patching config.mak - linux (2)
patching file config.mak
Hunk #1 succeeded at 102 with fuzz 2 (offset 43 lines).

-- AVFORMAT : 56, Major :
-- AVCODEC  : 56, Major :
-- AVUTIL   : 54, Major :
-- POSTPRC  : 53, Major :
-- SWSCALE  : 3, Major :

-- AVFORMAT : 56, Major :
-- AVCODEC  : 56, Major :
-- AVUTIL   : 54, Major :
-- POSTPRC  : 53, Major :
-- SWSCALE  : 3, Major :

-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success

**************************
***  Optional Library  ***
***      Summary       ***
**************************
*** Miscellaneous      ***
    gettext        Yes
    SDL            Yes
    XVideo         Yes
    VDPAU          Yes
    LIBVA          No
**************************
***   Release Build    ***
**************************

-- No packaging... (package=)

-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EDIT_COMMAND


-- Build files have been written to: /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/buildCore
** Failed at make, result in /tmp/logbuildCore**



Jan Gruuthuse

Ubuntu 14.04.2 LTS amd64: build was OK. attached logbuildCore

Jan Gruuthuse

#19
looks both similar except in yours: line 1010 (diffuse merge tool against both logbuildCore)
In file included from /usr/include/inttypes.h:25:0,
                 from /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/buildCore/ffmpeg/source/libswscale/utils.c:25:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
/usr/bin/cc -I. -I/mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/buildCore/ffmpeg/source/ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -DZLIB_CONST -DHAVE_AV_CONFIG_H -fmessage-length=0 -std=c99 -fomit-frame-pointer -fPIC -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL  -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -Wno-maybe-uninitialized  -MMD -MF libswscale/x86/hscale_fast_bilinear_simd.d -MT libswscale/x86/hscale_fast_bilinear_simd.o -c -o libswscale/x86/hscale_fast_bilinear_simd.o /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/buildCore/ffmpeg/source/libswscale/x86/hscale_fast_bilinear_simd.c

sl1pkn07

#20
thanks for the latest commit. unfortunately still break the build in the same point :S

but i found a solution for my problem:

remove this line

https://github.com/mean00/avidemux2/blob/6424f733886200c6592f24dd0111640aa65cae6b/cmake/admFFmpegBuild.cmake#L298

if remove, all build OK with zero problems, include Qt4 and CLI (with respective plugins)

i not sure why. but it works!

any can test this?

EDIT: boh, the multithread build still fail in build ffmpeg step. build upstream sources works ok always

greetings

mean

we dont build the exe any longer but mark them as target, i overtlooked that one

bernd_b

#22
Deleting the line mentioned by sl1pkn07 made the compile process run to the end.

Although, in between, I found these error messages:

-- Checking for FAAD
-- *****************
-- Found faad.h
-- Found faad library
-- Could not find faacDecInit in /usr/lib64/libfaad.so
-- Change Dir: /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/buildPluginsCommon/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec3099560844/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3099560844.dir/build.make CMakeFiles/cmTryCompileExec3099560844.dir/build
make[1]: Entering directory '/mnt/Data_bb/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/buildPluginsCommon/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/buildPluginsCommon/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3099560844.dir/CheckFunctionExists.c.o
/usr/bin/cc  -DCHECK_FUNCTION_EXISTS=faacDecInit -fmessage-length=0 -fmessage-length=0    -o CMakeFiles/cmTryCompileExec3099560844.dir/CheckFunctionExists.c.o   -c /mnt/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/cmake_compile_check/CheckFunctionExists.c
Linking C executable cmTryCompileExec3099560844
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3099560844.dir/link.txt --verbose=1
/usr/bin/cc   -fmessage-length=0 -fmessage-length=0     CMakeFiles/cmTryCompileExec3099560844.dir/CheckFunctionExists.c.o  -o cmTryCompileExec3099560844 -rdynamic -lfaad
CMakeFiles/cmTryCompileExec3099560844.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text+0x15): undefined reference to `faacDecInit'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTryCompileExec3099560844.dir/build.make:89: recipe for target 'cmTryCompileExec3099560844' failed
make[1]: *** [cmTryCompileExec3099560844] Error 1
make[1]: Leaving directory '/mnt/Data_bb/sda7/ffmpeg_neu/avidemux_2.6/avidemux2/buildPluginsCommon/CMakeFiles/CMakeTmp'
Makefile:117: recipe for target 'cmTryCompileExec3099560844/fast' failed
make: *** [cmTryCompileExec3099560844/fast] Error 2

-- Found NeAACDecInit in /usr/lib64/libfaad.so


But obviously this doesn't prevent the program to be build. The installed version introduces itself as "Avidemux v2.6.8 (150323_6424f733886)".