Opened 16 years ago

Closed 15 years ago

#17792 closed defect (fixed)

vxl fails to build if ffmpeg is installed

Reported by: jwhowse4 Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: vxl

Description

On an intel mac running Leopard 10.5.6 and Xcode 3.1.2 vxl fails to build with the following error. It looks to me as if this may be related to the fact that I can not update ffmpeg. Any suggestions?

Error: Target org.macports.build returned: shell command " cd "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_devel_vxl/work/vxl-1.11.0" && make all " returned error 2
Command output: /opt/macports/include/ffmpeg/avcodec.h:2349: warning: 'ImgReSampleContext' is deprecated (declared at /opt/macports/include/ffmpeg/avcodec.h:2343)
/opt/macports/include/ffmpeg/avcodec.h:2359: warning: 'ImgReSampleContext' is deprecated (declared at /opt/macports/include/ffmpeg/avcodec.h:2343)
[ 34%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_clip.o
[ 34%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_movie.o
[ 34%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_frame.o
[ 34%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_frame_resource.o
[ 34%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_image_list_codec.o
[ 34%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_io.o
[ 34%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_mpegcodec.o
[ 34%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_mpegcodec_helper.o
[ 35%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_ffmpeg_codec.o
/opt/macports/include/ffmpeg/avcodec.h:2349: warning: 'ImgReSampleContext' is deprecated (declared at /opt/macports/include/ffmpeg/avcodec.h:2343)
/opt/macports/include/ffmpeg/avcodec.h:2359: warning: 'ImgReSampleContext' is deprecated (declared at /opt/macports/include/ffmpeg/avcodec.h:2343)
/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_devel_vxl/work/vxl-1.11.0/core/vidl/vidl_ffmpeg_codec.cxx: In member function 'vil_image_view<vxl_byte> vidl_ffmpeg_codec::cur_frame() const':
/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_devel_vxl/work/vxl-1.11.0/core/vidl/vidl_ffmpeg_codec.cxx:259: warning: 'img_convert' is deprecated (declared at /opt/macports/include/ffmpeg/avcodec.h:2511)
/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_devel_vxl/work/vxl-1.11.0/core/vidl/vidl_ffmpeg_codec.cxx:261: warning: 'img_convert' is deprecated (declared at /opt/macports/include/ffmpeg/avcodec.h:2511)
[ 35%] Building CXX object core/vidl/CMakeFiles/vidl.dir/Templates/vbl_smart_ptr+vidl_clip-.o
[ 35%] Building CXX object core/vidl/CMakeFiles/vidl.dir/Templates/vbl_smart_ptr+vidl_codec-.o
[ 35%] Building CXX object core/vidl/CMakeFiles/vidl.dir/Templates/vbl_smart_ptr+vidl_frame-.o
[ 35%] Building CXX object core/vidl/CMakeFiles/vidl.dir/Templates/vbl_smart_ptr+vidl_image_list_codec-.o
[ 35%] Building CXX object core/vidl/CMakeFiles/vidl.dir/Templates/vbl_smart_ptr+vidl_movie-.o
Linking CXX shared library ../../lib/libvidl.dylib
Undefined symbols:
  "_img_convert", referenced from:
      vidl_ffmpeg_codec::cur_frame() const in vidl_ffmpeg_codec.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [lib/libvidl.dylib] Error 1
make[1]: *** [core/vidl/CMakeFiles/vidl.dir/all] Error 2
make: *** [all] Error 2

Change History (13)

comment:1 Changed 16 years ago by jwhowse4

When I deactivate ffmpeg 0.4.9-pre1_12, vxl builds and installs correctly.

comment:2 Changed 16 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to toby@…
Port: vxl added

Assigning to maintainer.

comment:3 Changed 16 years ago by tobypeterson

Summary: vxl fails to buildvxl fails to build if ffmpeg is installed

comment:4 Changed 16 years ago by tobypeterson

Status: newassigned

comment:5 Changed 16 years ago by tobypeterson

Milestone: Port Bugs
Priority: NormalLow
Version: 1.7.0

comment:6 Changed 16 years ago by blb@…

Milestone: Port Bugs

comment:7 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:8 Changed 15 years ago by dweber@…

Similar build failure on the same platform,

--->  Fetching vxl
--->  Attempting to fetch vxl-1.12.0.zip from http://internap.dl.sourceforge.net/vxl
--->  Verifying checksum(s) for vxl
--->  Extracting vxl
--->  Applying patches to vxl
--->  Configuring vxl
--->  Building vxl
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_vxl/work/vxl-1.12.0" && make all " returned error 2
Command output: [ 41%] Building CXX object core/vcsl/CMakeFiles/vcsl.dir/Templates/vbl_smart_ptr+vcsl_spatial_transformation-.o
[ 41%] Building CXX object core/vcsl/CMakeFiles/vcsl.dir/Templates/vbl_smart_ptr+vcsl_spherical-.o
[ 41%] Building CXX object core/vcsl/CMakeFiles/vcsl.dir/Templates/vbl_smart_ptr+vcsl_spheroid-.o
[ 41%] Building CXX object core/vcsl/CMakeFiles/vcsl.dir/Templates/vbl_smart_ptr+vcsl_translation-.o
[ 41%] Building CXX object core/vcsl/CMakeFiles/vcsl.dir/Templates/vbl_smart_ptr+vcsl_unit-.o
[ 41%] Building CXX object core/vcsl/CMakeFiles/vcsl.dir/Templates/vbl_smart_ptr+vcsl_utm-.o
Linking CXX shared library ../../lib/libvcsl.dylib
[ 41%] Built target vcsl
Scanning dependencies of target example_create_image_vil
[ 41%] Building CXX object core/examples/CMakeFiles/example_create_image_vil.dir/create_image_vil.o
Linking CXX executable example_create_image_vil
[ 41%] Built target example_create_image_vil
Scanning dependencies of target vidl
[ 41%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_vob_frame_index.o
[ 41%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_file_sequence.o
[ 41%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_codec.o
[ 41%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_clip.o
[ 42%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_movie.o
[ 42%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_frame.o
[ 42%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_frame_resource.o
[ 42%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_image_list_codec.o
[ 42%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_io.o
[ 42%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_mpegcodec.o
[ 42%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_mpegcodec_helper.o
[ 42%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_ffmpeg_codec.o
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_vxl/work/vxl-1.12.0/core/vidl/vidl_ffmpeg_codec.cxx: In member function 'vil_image_view<vxl_byte> vidl_ffmpeg_codec::cur_frame() const':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_vxl/work/vxl-1.12.0/core/vidl/vidl_ffmpeg_codec.cxx:261: error: 'img_convert' was not declared in this scope
make[2]: *** [core/vidl/CMakeFiles/vidl.dir/vidl_ffmpeg_codec.o] Error 1
make[1]: *** [core/vidl/CMakeFiles/vidl.dir/all] Error 2
make: *** [all] Error 2

Error: Status 1 encountered during processing.

$ port installed ffmpeg
The following ports are currently installed:
  ffmpeg @0.5_2 (active)

comment:9 Changed 15 years ago by dbevans (David B. Evans)

I'm just guessing but is it possible that vxl is building using its own internal copy of ffmpeg (many ports do) which is not compatible with our installed version and it is looking for include files/libraries in the MacPorts system path before it looks for the ones that are local to vxl?

This would explain why it builds when port ffmpeg is not present.

comment:10 Changed 15 years ago by tobypeterson

I'm not disputing that it's broken... I just can't be bothered to install ffmpeg and its billion deps.

comment:11 Changed 15 years ago by tobypeterson

Priority: LowNormal

comment:12 Changed 15 years ago by tobypeterson

Owner: changed from toby@… to macports-tickets@…
Status: assignednew

comment:13 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

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

This should be fixed now; see #24654.

Note: See TracTickets for help on using tickets.