Opened 15 years ago

Closed 15 years ago

#19859 closed defect (fixed)

avidemux 2.4.4 fails to build with cmake 2.6.4

Reported by: markus@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: jmroot (Joshua Root)
Port: avidemux

Description

markus-heberlings-macbook-pro:~ markus$ sudo port -v install avidemux +no_x11
--->  Configuring avidemux
#####################################
Configure Started
#####################################
EXTRA Cflags:-O2
EXTRA CXXflags:-O2
-- <Checking for PKG-CONFIG>
-- <***********************>
-- OK /opt/local/bin/pkg-config
-- <Checking for LibXML2>
-- <*********************>
-- LibXML2 OK
-- <Checking for FreeType through PKG-CONFIG>
-- <****************************************>
-- LDFLAGS <-L/opt/local/lib -lfreetype -lz>
-- LIBS </opt/local/lib>
-- OK
-- FreeType Found (-I/opt/local/include/freetype2 -I/opt/local/include/opt/local/include)
-- <Checking for X11>
-- <******************************>
-- OK
-- <Checking for GLIB>
-- <******************************>
-- OK
GLIB Found (-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include)
-- <Checking for GTK>
-- <******************************>
-- OK
-- <Checking for Gthread>
-- <******************************>
-- OK -L/opt/local/lib -lgthread-2.0 -lglib-2.0 -lintl -liconv
-- <Checking for QT4>
-- <******************************>
-- Checking CPU and OS
-- <Checking gettext>
-- <****************>
-- libintl Header Path: /opt/local/include
-- libintl Library Path: /opt/local/lib/libintl.dylib
-- Ok, libintl needed
-- <Checking SSSE3>
-- <******************************>
-- OK, GCC inline asm supported SSSE3
-- <Checking for SDL>
-- <*****************>
-- Found
-- Flags: -I/opt/local/include/SDL
-- Libraries: /opt/local/lib/libSDLmain.a;/opt/local/lib/libSDL.dylib;-framework Cocoa
-- <Checking for FontConfig>
-- <******************************>
-- Header fontconfig/fontconfig.h Found
-- Lib fontconfig Found
-- FontConfig OK
-- <Checking for Xvideo>
-- <******************************>
-- Header X11/extensions/Xvlib.h Found
-- Lib Xv Found
-- Xvideo OK
-- Flags: -include X11/Xlib.h /opt/local/include;/opt/local/include;/opt/local/include
-- Libraries: -lSM;-lICE;/opt/local/lib/libX11.dylib;/opt/local/lib/libXext.dylib
-- <Checking for OSS>
-- <*****************>
-- Not found
-- <** ARTS **>
-- <---------->
-- Not found
-- <** PulseAudio **>
-- <---------------->
-- Could NOT find LibXml2
-- <Checking for Esd>
-- <******************************>
-- Header esd.h Found
-- Lib esd Found
-- Esd OK
-- <Checking for Jack>
-- <******************************>
Header not found(jack/jack.h)
-- Jack support off
-- <Checking for Aften>
-- <******************************>
Header not found(aften/aften.h)
-- Aften support off
-- <Checking for libsamplerate>
-- <******************************>
Header not found(samplerate.h)
-- libsamplerate support off
-- <Checking for iconv.h>
-- <******************************>
-- libiconv found, probably needed
-- <Checking if iconv needs const>
-- Inconsistent compiler output with:FALSE, without:FALSE
-- **********************************
-- Change Dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4/CMakeFiles/CMakeTmp

Run Build Command:/opt/local/bin/gmake "cmTryCompileExec/fast"
/opt/local/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4/CMakeFiles/CMakeTmp'
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/iconv_check.cpp.o
/usr/bin/g++-4.0   -DICONV_NEED_CONST -O2     -o CMakeFiles/cmTryCompileExec.dir/iconv_check.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4/cmake_compile_check/iconv_check.cpp
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4/cmake_compile_check/iconv_check.cpp: In function 'int main(int, char**)':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4/cmake_compile_check/iconv_check.cpp:12: error: invalid conversion from 'const char**' to 'char**'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4/cmake_compile_check/iconv_check.cpp:12: error:   initializing argument 2 of 'size_t iconv(void*, char**, size_t*, char**, size_t*)'
gmake[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/iconv_check.cpp.o] Fehler 1
gmake: *** [cmTryCompileExec/fast] Fehler 2

-- **********************************
-- Change Dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4/CMakeFiles/CMakeTmp

Run Build Command:/opt/local/bin/gmake "cmTryCompileExec/fast"
/opt/local/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4/CMakeFiles/CMakeTmp'
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/iconv_check.cpp.o
/usr/bin/g++-4.0    -O2     -o CMakeFiles/cmTryCompileExec.dir/iconv_check.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4/cmake_compile_check/iconv_check.cpp
Linking CXX executable cmTryCompileExec
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/g++-4.0    -O2   -Wl,-search_paths_first -headerpad_max_install_names -fPIC -L/opt/local/lib CMakeFiles/cmTryCompileExec.dir/iconv_check.cpp.o  -o cmTryCompileExec  -liconv 
Undefined symbols:
  "_iconv", referenced from:
      _main in iconv_check.cpp.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
gmake[1]: *** [cmTryCompileExec] Fehler 1
gmake[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Fehler 2

-- No
-- <Checking for Lame>
-- <******************************>
-- Header lame/lame.h Found
-- Lib mp3lame Found
-- Lame OK
-- <Checking for Xvid>
-- <******************************>
-- Header xvid.h Found
-- Lib xvidcore Found
-- Xvid OK
-- <Checking for AMRNB>
-- <******************************>
Header not found(amrnb/interf_dec.h)
-- AMRNB support off
-- <Checking for libdca>
-- <******************************>
Header not found(dts.h)
-- libdca support off
-- Trying libdca instead of libdts
-- <Checking for libdca>
-- <******************************>
Header not found(dts.h)
-- libdca support off
-- <Checking for x264>
-- <******************************>
-- Header x264.h Found
-- Lib x264 Found
-- x264 OK
-- <Checking for FAAD>
-- <******************************>
-- Header faad.h Found
Lib not found
-- FAAD support off
-- Trying neaac variant
-- <Checking for NeAAC>
-- <******************************>
-- Header faad.h Found
-- Lib faad Found
-- NeAAC OK
-- <Checking if faad needs old proto>
-- <-DOLD_FAAD_PROTO -I/opt/local/include> needed
-- Yes
-- <Checking for FAAC>
-- <******************************>
-- Header faac.h Found
-- Lib faac Found
-- FAAC OK
-- <Checking for Vorbis>
-- <******************************>
-- Header vorbis/vorbisenc.h Found
-- Lib vorbis Found
-- Vorbis OK
-- <Checking for Vorbis>
-- <******************************>
-- Header vorbis/vorbisenc.h Found
-- Lib vorbisenc Found
-- Vorbis OK
-- <Checking for Invalid>
-- <******************************>
Header not found(dummy_header.h)
-- Invalid support off
-- <Checking for Invalid>
-- <******************************>
-- Header stdio.h Found
Lib not found
-- Invalid support off
-- CMAKE_BINARY_DIR:         /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4
-- CMAKE_CURRENT_BINARY_DIR: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4
-- CMAKE_SOURCE_DIR:         /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4
-- CMAKE_CURRENT_SOURCE_DIR: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4
-- PROJECT_BINARY_DIR: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4
-- PROJECT_SOURCE_DIR: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4
-- EXECUTABLE_OUTPUT_PATH: 
-- LIBRARY_OUTPUT_PATH:     
-- CMAKE_MODULE_PATH: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4/cmake
-- CMAKE_COMMAND: /opt/local/bin/cmake
-- CMAKE_ROOT: /opt/local/share/cmake-2.6
-- CMAKE_CURRENT_LIST_FILE: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4/cmake/adm_log.cmake
-- CMAKE_CURRENT_LIST_LINE: 50
-- CMAKE_INCLUDE_PATH: /opt/local/include
-- CMAKE_LIBRARY_PATH: /opt/local/lib
-- CMAKE_SYSTEM: Darwin-9.7.0
-- CMAKE_SYSTEM_NAME: Darwin
-- CMAKE_SYSTEM_VERSION: 9.7.0
-- CMAKE_SYSTEM_PROCESSOR: i386
-- UNIX: 1
-- WIN32: 
-- APPLE: 1
-- MINGW: 
-- CYGWIN: 
-- BORLAND: 
-- MSVC: 
-- MSVC_IDE: 
-- MSVC60: 
-- MSVC70: 
-- MSVC71: 
-- MSVC80: 
-- CMAKE_COMPILER_2005: 
-- CMAKE_SKIP_RULE_DEPENDENCY: 
-- CMAKE_SKIP_INSTALL_ALL_DEPENDENCY: 
-- CMAKE_SKIP_RPATH: NO
-- CMAKE_VERBOSE_MAKEFILE: FALSE
-- CMAKE_SUPPRESS_REGENERATION: 
-- CMAKE_C_FLAGS: -O2
-- CMAKE_CXX_FLAGS: -O2
-- CMAKE_BUILD_TYPE: 
-- BUILD_SHARED_LIBS: 
-- CMAKE_C_COMPILER: /usr/bin/gcc-4.0
-- CMAKE_CXX_COMPILER: /usr/bin/g++-4.0
-- CMAKE_COMPILER_IS_GNUCC: 1
-- CMAKE_COMPILER_IS_GNUCXX : 1
-- CMAKE_AR: /usr/bin/ar
-- CMAKE_RANLIB: /usr/bin/ranlib
-- ** RELEASE BUILD (Release)**
LINK_FLAGS 
CMake Error at avidemux/CMakeLists.txt:95 (ADD_SUBDIRECTORY):
  The binary directory

    /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4/avidemux/ADM_filter

  is already used to build another source directory, so it cannot be used to
  build source directory

    /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4/avidemux/ADM_filter

  Specify a unique binary directory name.


*******************
**  Summary      **
*******************
Gtk         TRUE
Qt4         
*** Video Codec ***
X264        Yes
Xvid4       Yes
*** Audio Codec ***
LAME        Yes
FAAD        Yes
FAAC        Yes
Vorbis      Yes
Aften       No
libDCA      No
libAMRNB    No
*** Audio Device ***
ESD         Yes
OSS         No
ARTS        No
JACK        No
PULSE SIMP  No
*** Misc       ***
SDL         Yes
FreeType    Yes
FontConfig  Yes
Gettext     Yes
Xvideo      Yes
samplerate  No
*******************
*******************
-- Configuring incomplete, errors occurred!
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4" && cmake -DCMAKE_INSTALL_PREFIX=/opt/local -DCMAKE_C_FLAGS="-O2" -DCMAKE_CXX_FLAGS="-O2" -DCMAKE_INCLUDE_PATH=/opt/local/include -DCMAKE_LIBRARY_PATH=/opt/local/lib " returned error 1
Command output: *******************
Gtk         TRUE
Qt4         
*** Video Codec ***
X264        Yes
Xvid4       Yes
*** Audio Codec ***
LAME        Yes
FAAD        Yes
FAAC        Yes
Vorbis      Yes
Aften       No
libDCA      No
libAMRNB    No
*** Audio Device ***
ESD         Yes
OSS         No
ARTS        No
JACK        No
PULSE SIMP  No
*** Misc       ***
SDL         Yes
FreeType    Yes
FontConfig  Yes
Gettext     Yes
Xvideo      Yes
samplerate  No
*******************
*******************
-- Configuring incomplete, errors occurred!

Warning: the following items did not execute (for avidemux): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Seems to be the same as this http://bugs.gentoo.org/show_bug.cgi?id=268618 The patch in that bug report also fixes it for me, so I have attached it to this report.

Attachments (1)

avidemux-2.4.4-cmake.patch.txt (820 bytes) - added by markus@… 15 years ago.

Download all attachments as: .zip

Change History (2)

Changed 15 years ago by markus@…

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Cc: jmr@… added
Resolution: fixed
Status: newclosed

Thanks, applied in r51829.

Note: See TracTickets for help on using tickets.