[MacPorts] #26528: avidemux 2.5.3 uses ffmpeg port headers instead of its own
#26528: avidemux 2.5.3 uses ffmpeg port headers instead of its own -------------------------------+-------------------------------------------- Reporter: ak.ml@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: avidemux ffmpeg | Port: avidemux -------------------------------+-------------------------------------------- avidemux 2.5.3 fails to build at 59%.[[BR]] It looks like it tries to use the headers of the ffmpeg port rather than its own for some plugins.[[BR]] When ffmpeg is deactivated, avidemux compiles fine.[[BR]] MacIntel 10.5.8. -- Ticket URL: <https://trac.macports.org/ticket/26528> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26528: avidemux 2.5.3 uses ffmpeg port headers instead of its own -------------------------------+-------------------------------------------- Reporter: ak.ml@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: avidemux -------------------------------+-------------------------------------------- Changes (by raimue@…): * cc: css@… (added) * keywords: avidemux ffmpeg => Comment: The problem is, cmake always has `-I/opt/local/include` hardcoded and adds other paths specified with `include_directories(...)` at the end. Of course, this ends up in the wrong order, with `-I/opt/local/include` at the front while it should be the last. I tried to fix this in r71635 by adding this flag to cmake, as [http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:include_director... described in their documentation]: `-DCMAKE_INCLUDE_DIRECTORIES_BEFORE=ON` For me on Snow Leopard 10.6.4 using cmake @2.8.2_2+gui. ffmpeg @0.6_2 was active and installed at the same time, the build still was ''okay''. But this could still mean it is picking up wrong headers :-) And actually, you are right the order is still wrong even for me while building plugins: {{{ ... -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_avidemux/work/avidemux_2.5.3/avidemux/ADM_libraries/ffmpeg ... }}} I am adding css@ as cmake maintainer to CC as he might have a hint where to look at for this problem. I am clueless at the moment... -- Ticket URL: <https://trac.macports.org/ticket/26528#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26528: avidemux 2.5.3 uses ffmpeg port headers instead of its own -------------------------------+-------------------------------------------- Reporter: ak.ml@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: avidemux -------------------------------+-------------------------------------------- Comment(by css@…): Replying to [comment:1 raimue@…]:
I tried to fix this in r71635 by adding this flag to cmake, as [http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:include_director... described in their documentation]:
`-DCMAKE_INCLUDE_DIRECTORIES_BEFORE=ON`
I'm pretty sure that ''case is important''. Try `-DCMAKE_include_directories_BEFORE:BOOL=ON` instead. -- Ticket URL: <https://trac.macports.org/ticket/26528#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26528: avidemux 2.5.3 uses ffmpeg port headers instead of its own --------------------------------+------------------------------------------- Reporter: ak.ml@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: fixed | Keywords: Port: avidemux | --------------------------------+------------------------------------------- Changes (by raimue@…): * status: new => closed * resolution: => fixed Comment: Replying to [comment:3 css@…]:
I'm pretty sure that ''case is important''. Try `-DCMAKE_include_directories_BEFORE:BOOL=ON` instead.
Damn. Thank you for your help, this seems to solve the problem for me now even for the plugins. Committed in r71689. -- Ticket URL: <https://trac.macports.org/ticket/26528#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26528: avidemux 2.5.3 uses ffmpeg port headers instead of its own --------------------------------+------------------------------------------- Reporter: ak.ml@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: fixed | Keywords: Port: avidemux | --------------------------------+------------------------------------------- Comment(by ak.ml@…):
Damn. Thank you for your help, this seems to solve the problem for me now even for the plugins.
Committed in r71689.
I'm still having some issues compiling. -- Ticket URL: <https://trac.macports.org/ticket/26528#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26528: avidemux 2.5.3 uses ffmpeg port headers instead of its own --------------------------------+------------------------------------------- Reporter: ak.ml@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: | Keywords: Port: avidemux | --------------------------------+------------------------------------------- Changes (by raimue@…): * status: closed => reopened * resolution: fixed => -- Ticket URL: <https://trac.macports.org/ticket/26528#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26528: avidemux 2.5.3 uses ffmpeg port headers instead of its own --------------------------------+------------------------------------------- Reporter: ak.ml@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: | Keywords: Port: avidemux | --------------------------------+------------------------------------------- Comment(by kato23@…): The [http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:include_director... CMake 2.8 Documentation] of 2012-03-30 apparently has switched back to '''{{{CMAKE_INCLUDE_DIRECTORIES_BEFORE}}}''' (from previous {{{CMAKE_include_directories_BEFORE}}}). Editing the {{{avidemux}}} Portfile with respect to this change allows {{{avidemux @2.5.3_7+aac+dts+lame+ogg+x264+xvid}}} to build successfully on Mac OS X 10.6.8. {{{ # edit the avidemux Portfile cd "$(port dir avidemux)" cat <<-'EOF' | sudo ed -s Portfile H /-DCMAKE_include_directories_BEFORE=ON/s//-DCMAKE_INCLUDE_DIRECTORIES_BEFORE=ON/ wq EOF }}} (Deactivating an already installed {{{ffmpeg}}} port worked for me as well.) (Note: I installed {{{avidemux}}} in a custom location as described in the {{{MacPorts Guide}}}, [http://guide.macports.org/#installing.macports.source.multiple 2.3.4. Install Multiple MacPorts Copies].) -- Ticket URL: <https://trac.macports.org/ticket/26528#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26528: avidemux 2.5.3 uses ffmpeg port headers instead of its own --------------------------------+------------------------------------------- Reporter: ak.ml@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: fixed | Keywords: Port: avidemux | --------------------------------+------------------------------------------- Changes (by jmr@…): * status: reopened => closed * resolution: => fixed Comment: r92826 -- Ticket URL: <https://trac.macports.org/ticket/26528#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts