Opened 14 years ago

Closed 14 years ago

#26413 closed defect (fixed)

avidemux 2.5.3: No rule to make target `avidemux/ADM_libraries/ffmpeg/libswscale/libADM5swscale.0.dylib

Reported by: jwhowse4 Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: raimue (Rainer Müller)
Port: avidemux

Description

On an Intel Mac running Snow Leopard 10.6.4 and XCode 3.2.3, avidemux (with no variants) build fails with the following error. Any idea what the problem is?

[ 92%] Building CXX object avidemux/ADM_coreImage/src/CMakeFiles/ADM_coreImage.dir/ADM_vidFieldBlend.cpp.o
cd /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/build/avidemux/ADM_coreImage/src && /usr/bin/g++-4.2   -DADM_coreImage_EXPORTS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_CONFIG_H -O2 -arch x86_64  -O3 -DNDEBUG -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -fPIC -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/build/config -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_core/include -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreUI/include -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreImage/include -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreAudio/include -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_libraries/ADM_utilities -I/Library/Frameworks/R.framework/Headers -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_libraries/ffmpeg -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_libraries/ffmpeg/libavutil -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_libraries/ffmpeg/libpostproc   -o CMakeFiles/ADM_coreImage.dir/ADM_vidFieldBlend.cpp.o -c /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreImage/src/ADM_vidFieldBlend.cpp
/opt/macports/bin/cmake -E cmake_progress_report /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/build/CMakeFiles 
[ 92%] Building CXX object avidemux/ADM_coreImage/src/CMakeFiles/ADM_coreImage.dir/ADM_interlaceUtil.cpp.o
cd /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/build/avidemux/ADM_coreImage/src && /usr/bin/g++-4.2   -DADM_coreImage_EXPORTS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_CONFIG_H -O2 -arch x86_64  -O3 -DNDEBUG -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -fPIC -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/build/config -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_core/include -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreUI/include -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreImage/include -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreAudio/include -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_libraries/ADM_utilities -I/Library/Frameworks/R.framework/Headers -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_libraries/ffmpeg -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_libraries/ffmpeg/libavutil -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_libraries/ffmpeg/libpostproc   -o CMakeFiles/ADM_coreImage.dir/ADM_interlaceUtil.cpp.o -c /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreImage/src/ADM_interlaceUtil.cpp
/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreImage/src/ADM_interlaceUtil.cpp:38:2: warning: #warning remove mmxmacro and debug asm
/opt/macports/bin/cmake -E cmake_progress_report /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/build/CMakeFiles 
make[2]: *** No rule to make target `avidemux/ADM_libraries/ffmpeg/libswscale/libADM5swscale.0.dylib', needed by `avidemux/ADM_coreImage/src/libADM_coreImage.dylib'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[ 92%] Building CXX object avidemux/ADM_coreImage/src/CMakeFiles/ADM_coreImage.dir/DIA_flyDialog.cpp.o
cd /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/build/avidemux/ADM_coreImage/src && /usr/bin/g++-4.2   -DADM_coreImage_EXPORTS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_CONFIG_H -O2 -arch x86_64  -O3 -DNDEBUG -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -fPIC -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/build/config -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_core/include -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreUI/include -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreImage/include -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreAudio/include -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_libraries/ADM_utilities -I/Library/Frameworks/R.framework/Headers -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_libraries/ffmpeg -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_libraries/ffmpeg/libavutil -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_libraries/ffmpeg/libpostproc     -DADM_UI_TYPE_BUILD=99 -o CMakeFiles/ADM_coreImage.dir/DIA_flyDialog.cpp.o -c /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreImage/src/DIA_flyDialog.cpp
make[1]: *** [avidemux/ADM_coreImage/src/CMakeFiles/ADM_coreImage.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/opt/macports/bin/cmake -E cmake_progress_report /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/build/CMakeFiles 
[ 92%] Building C object avidemux/ADM_coreAudio/src/CMakeFiles/ADM_coreAudio.dir/ADM_libsamplerate/src_zoh.c.o
cd /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/build/avidemux/ADM_coreAudio/src && /usr/bin/gcc-4.2  -DADM_coreAudio_EXPORTS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_CONFIG_H -DADM_LEGACY_PROGGY -O2 -arch x86_64  -O3 -DNDEBUG -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -fPIC -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/build/config -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_core/include -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreUI/include -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreImage/include -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreAudio/include -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_libraries/ADM_utilities -I/Library/Frameworks/R.framework/Headers -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_libraries/ffmpeg -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_libraries/ffmpeg/libavutil -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_libraries/ffmpeg/libpostproc   -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreAudio/src -o CMakeFiles/ADM_coreAudio.dir/ADM_libsamplerate/src_zoh.c.o   -c /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreAudio/src/ADM_libsamplerate/src_zoh.c
In file included from /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_core/include/ADM_default.h:28,
                 from /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreAudio/src/ADM_libsamplerate/config.h:1,
                 from /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreAudio/src/ADM_libsamplerate/src_zoh.c:29:
/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_core/include/ADM_assert.h:81:1: warning: "memcpy" redefined
In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/string.h:148,
                 from /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_coreAudio/src/ADM_libsamplerate/src_zoh.c:27:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/secure/_string.h:50:1: warning: this is the location of the previous definition
Linking CXX shared library libADM_coreAudio.dylib
cd /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/build/avidemux/ADM_coreAudio/src && /opt/macports/bin/cmake -E cmake_link_script CMakeFiles/ADM_coreAudio.dir/link.txt --verbose=1
/usr/bin/g++-4.2  -O2 -arch x86_64  -O3 -DNDEBUG -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -dynamiclib -headerpad_max_install_names -L/opt/macports/lib -arch x86_64 -o libADM_coreAudio.dylib -install_name /opt/macports/lib/libADM_coreAudio.dylib CMakeFiles/ADM_coreAudio.dir/ADM_audioUtils.cpp.o CMakeFiles/ADM_coreAudio.dir/audioencoder.cpp.o CMakeFiles/ADM_coreAudio.dir/ADM_audioFilter.cpp.o CMakeFiles/ADM_coreAudio.dir/ADM_audioResample.cpp.o CMakeFiles/ADM_coreAudio.dir/ADM_libsamplerate/samplerate.c.o CMakeFiles/ADM_coreAudio.dir/ADM_libsamplerate/src_linear.c.o CMakeFiles/ADM_coreAudio.dir/ADM_libsamplerate/src_sinc.c.o CMakeFiles/ADM_coreAudio.dir/ADM_libsamplerate/src_zoh.c.o ../../ADM_core/src/libADM_core.dylib -ldl -framework Carbon 
/opt/macports/bin/cmake -E cmake_progress_report /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/build/CMakeFiles  19
[ 92%] Built target ADM_coreAudio
make: *** [all] Error 2
shell command " cd "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/build" && /usr/bin/make -j2 all " returned error 2
Error: Target org.macports.build returned: shell command failed
Warning: the following items did not execute (for avidemux): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for avidemux is at: /opt/macports/var/macports/logs/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (3)

main.log (120.3 KB) - added by ak.ml@… 14 years ago.
main.log on MacIntel 10.5.8
config.err (46.9 KB) - added by ak.ml@… 14 years ago.
config.er on MacIntel 10.5.8
main.2.log (168.0 KB) - added by ak.ml@… 14 years ago.
main.log on MacIntel 10.5.8 with gcc40 selected and ffmpeg installed

Download all attachments as: .zip

Change History (10)

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: raimue@… added
Port: avidemux added
Summary: avidemux build failsavidemux 2.5.3: No rule to make target `avidemux/ADM_libraries/ffmpeg/libswscale/libADM5swscale.0.dylib

Cc'ing Rainer who just updated avidemux to version 2.5.3 yesterday.

comment:2 Changed 14 years ago by raimue (Rainer Müller)

Hm, cannot reproduce this. I am not sure what is happening there, but I guess that a patch for the included ffmpeg failed. I increased the verbosity of avidemux in r71330 which could help to identify errors like this. But a full build log would be required.

Could you please check for files ending with '*.rej' in work/avidemux_2.5.3/avidemux/ADM_libraries/ffmpeg/ and provide them if there are any? Also, find work/avidemux_2.5.3/avidemux/ADM_libraries/ffmpeg/ -name '*.dylib*' to see what got build.

Changed 14 years ago by ak.ml@…

Attachment: main.log added

main.log on MacIntel 10.5.8

Changed 14 years ago by ak.ml@…

Attachment: config.err added

config.er on MacIntel 10.5.8

comment:3 Changed 14 years ago by ak.ml@…

I'm having also issues configuring avidemux with a MacIntel on 10.5.8.
Not sure if it's the same issue.
Attached main.log and ffmpeg's config.err

$ port -v installed avidemux yasm ffmpeg
The following ports are currently installed:
  avidemux @2.4.4_0 (active)
  ffmpeg @0.6_2 (active) platform='darwin 9' archs='i386'
  yasm @1.1.0_0 (active) platform='darwin 9' archs='i386'

comment:4 in reply to:  3 ; Changed 14 years ago by raimue (Rainer Müller)

This seems to be a different issue.

First of all, avidemux is not using the ffmpeg port, but includes it's own sources. It looks like it is not UsingTheRightCompiler for this. You seem to have a gcc in your path which is not /usr/bin/gcc. Probably you changed it by using gcc_select. I will look into the issue, but as a workaround, try to select the Apple provided version of gcc.

comment:5 in reply to:  4 ; Changed 14 years ago by ak.ml@…

Thanks for the gcc_select suggestion. I have the error when I select mp-gcc44 which I probably did earlier.

$ sudo gcc_select -f gcc40
Selecting version "gcc40" for gcc

$ gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5493~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5493)

However it stops compiling at 2%. This time it seems related to ffmpeg being installed and active. I will deactivate ffmpeg and see what it brings.

$ port provides /opt/local/include/libavutil/common.h
/opt/local/include/libavutil/common.h is provided by: ffmpeg

Changed 14 years ago by ak.ml@…

Attachment: main.2.log added

main.log on MacIntel 10.5.8 with gcc40 selected and ffmpeg installed

comment:6 in reply to:  5 Changed 14 years ago by raimue (Rainer Müller)

Replying to ak.ml@…:

However it stops compiling at 2%. This time it seems related to ffmpeg being installed and active. I will deactivate ffmpeg and see what it brings.

Should be fixed by r71635. But please open separate tickets for new issues next time to make it easier to track these.

comment:7 Changed 14 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

Most probably fixed by r71636. Please reopen if the original reported error still occurs, otherwise open new tickets.

Note: See TracTickets for help on using tickets.