Opened 14 years ago

Closed 13 years ago

#22739 closed defect (fixed)

avidemux-2.4.4 build failure on case-sensitive filesystem

Reported by: thierry.parmentelat@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: avidemux

Description

I am facing an issue when trying to build avidemux on a plain leopard box (just to avoid confusion, I had first started on snow leopard and posted on users about that, I've seen the related ticket and so I have now moved to plain leopard)

I am accessing the box remotely and cannot find the accurate version of leopard, might be 10.5.8 as far as I remember; I am up-to-date wrt software updates as of today december 1st 2009

sh-3.2# port version 
Version: 1.8.1
sh-3.2# xcodebuild -version
Xcode 3.1.3
Component versions: DevToolsCore-1192.0; DevToolsSupport-1186.0
BuildVersion: 9M2736
sh-3.2# uname -a
Darwin zircon.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

I've updated the port installation by running

  103  sudo port selfupdate
  104  sudo port upgrade outdated

The interesting part in the build log below seems to be

CMake Error in avidemux/ADM_libraries/ADM_libsdl/CMakeLists.txt:
  Cannot find source file "SDLmain.m".  Tried extensions .c .C .c++ .cc .cpp
  .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

I might have a clue about the problem; I am using a case-sensitive file-system, as some of the projects that I am working on come file filenames like FOO and Foo as different files.

So, what I found is

sh-3.2# cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/
sh-3.2# find . -name SDLmain.m
sh-3.2# find . -name SDLMain.m
./work/avidemux_2.4.4/avidemux/ADM_libraries/ADM_libsdl/SDLMain.m

Looks like it's not the exact filename that is searched, but I guess on case-insensitive filesystems this would just incidentally work

sh-3.2# port clean avidemux
...
sh-3.2# port install -v 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 not found(esd.h)
-- Esd support off
-- <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>
-- <-DICONV_NEED_CONST> Not needed
-- 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.8
-- 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.8.0
-- CMAKE_SYSTEM_NAME: Darwin
-- CMAKE_SYSTEM_VERSION: 9.8.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 
*******************
**  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         No
OSS         No
ARTS        No
JACK        No
PULSE SIMP  No
*** Misc       ***
SDL         Yes
FreeType    Yes
FontConfig  Yes
Gettext     Yes
Xvideo      Yes
samplerate  No
*******************
*******************
-- Configuring done
CMake Error in avidemux/ADM_libraries/ADM_libsdl/CMakeLists.txt:
  Cannot find source file "SDLmain.m".  Tried extensions .c .C .c++ .cc .cpp
  .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx


-- Build files have been written to: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.4.4

Change History (5)

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

Keywords: avidemux SDLmain removed
Port: avidemux added

comment:2 in reply to:  description Changed 14 years ago by thierry.parmentelat@…

Replying to thierry.parmentelat@…:

Just wanted to add a note about how I worked around this issue; right after the problem triggered, I created a symlink so that cmake finds the file it is looking for

sh-3.2# cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/
sh-3.2# cd ./work/avidemux_2.4.4/avidemux/ADM_libraries/ADM_libsdl/
sh-3.2# ln -s SDLMain.m SDLmain.m

then running 'port install avidemux' eventually succeeds and the binaries seem to work fine so far

comment:3 Changed 13 years ago by jmroot (Joshua Root)

Summary: avidemux-2.4.4 build failure on Leopard (NOT snow leopard)avidemux-2.4.4 build failure on case-sensitive filesystem

comment:4 Changed 13 years ago by jmroot (Joshua Root)

Is this still a problem with 2.5.3?

comment:5 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.