Update multimedia/avidmux to 2.6.19
Kevin Oberman
rkoberman at gmail.com
Sun Aug 6 00:08:05 UTC 2017
I am attempting to update multimedia/avidemux to a modern release and
convert it to use Qt5 as Qt4 is rotting and upstream supports Qt5. Worse,
when compiled with Qt4, it frequently is dumping core due to a change in
the kernel to more thoroughly check memory use (committed by kib in 320666).
I have hit a problem that I don't really know how to approach due to my
unfamiliarity with cmake and C++. The problem is with
cmake/admCheckMiscLibs.cmake. There is a patch for the old port, but the
line modified has been re-written to include the change made by the current
patch, but now is not working. the current/old patch is:
--- cmake/admCheckMiscLibs.cmake.orig 2015-05-30 14:09:29 UTC
+++ cmake/admCheckMiscLibs.cmake
@@ -67,7 +67,7 @@ ENDIF (UNIX AND NOT APPLE)
MESSAGE(STATUS "Checking for execinfo")
MESSAGE(STATUS "*********************")
-FIND_HEADER_AND_LIB(execinfo execinfo.h execinfo backtrace_symbols)
+FIND_HEADER_AND_LIB(EXECINFO execinfo.h execinfo backtrace_symbols)
PRINT_LIBRARY_INFO("execinfo" EXECINFO_FOUND "${LIBEXECINFO_INCLUDE_DIR}"
"${LIBEXECINFO_LIBRARY_DIR}")
IF (LIBEXECINFO_INCLUDE_DIR)
Since the line is now:
FIND_HEADER_AND_LIB(EXECINFO execinfo.h c backtrace_symbols)
I just tried leaving it as-is, but I get this error:
CMake Error at
/usr/ports/multimedia/avidemux-new/work/avidemux_2.6.19/cmake/admCheckMiscLibs.cmake:83
(ADM_COMPILE):
ADM_COMPILE Macro invoked with incorrect arguments for macro named:
ADM_COMPILE
Call Stack (most recent call first):
/usr/ports/multimedia/avidemux-new/work/avidemux_2.6.19/cmake/admMainChecks.cmake:164
(INCLUDE)
CMakeLists.txt:28 (include)
-- Does not work, without Change Dir:
/usr/ports/multimedia/avidemux-new/work/.build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/local/bin/gmake" "cmTC_8e4e2/fast"
gmake[2]: Entering directory
'/usr/ports/multimedia/avidemux-new/work/.build/CMakeFiles/CMakeTmp'
gmake -f CMakeFiles/cmTC_8e4e2.dir/build.make
CMakeFiles/cmTC_8e4e2.dir/build
gmake[3]: Entering directory
'/usr/ports/multimedia/avidemux-new/work/.build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_8e4e2.dir/execinfo.cpp.o
/usr/local/bin/g++5 -I/usr/local/include -O2 -pipe
-fno-omit-frame-pointer -DLIBICONV_PLUG -fstack-protector
-Wl,-rpath=/usr/local/lib/gcc5 -fno-strict-aliasing -I/usr/local/include
-DLIBICONV_PLUG -Wl,-rpath=/usr/local/lib/gcc5 -o
CMakeFiles/cmTC_8e4e2.dir/execinfo.cpp.o -c
/usr/ports/multimedia/avidemux-new/work/avidemux_2.6.19/cmake/cmake_compile_check/execinfo.cpp
Linking CXX executable cmTC_8e4e2
/usr/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_8e4e2.dir/link.txt --verbose=1
/usr/local/bin/g++5 -O2 -pipe -fno-omit-frame-pointer -DLIBICONV_PLUG
-fstack-protector -Wl,-rpath=/usr/local/lib/gcc5 -fno-strict-aliasing
-I/usr/local/include -DLIBICONV_PLUG -Wl,-rpath=/usr/local/lib/gcc5
CMakeFiles/cmTC_8e4e2.dir/execinfo.cpp.o -o cmTC_8e4e2
CMakeFiles/cmTC_8e4e2.dir/execinfo.cpp.o: In function `print_trace()':
execinfo.cpp:(.text+0x19): undefined reference to `backtrace'
execinfo.cpp:(.text+0x27): undefined reference to `backtrace_symbols'
collect2: error: ld returned 1 exit status
gmake[3]: *** [CMakeFiles/cmTC_8e4e2.dir/build.make:98: cmTC_8e4e2] Error 1
gmake[3]: Leaving directory
'/usr/ports/multimedia/avidemux-new/work/.build/CMakeFiles/CMakeTmp'
gmake[2]: *** [Makefile:126: cmTC_8e4e2/fast] Error 2
gmake[2]: Leaving directory
'/usr/ports/multimedia/avidemux-new/work/.build/CMakeFiles/CMakeTmp'
-- Does not work, with
(NOTE: The error report just stops at this point.)
Can anyone provide a pointer as to what is wrong and how to fix it? While
the name is poor as it now supports most popular CODECs and muxiplexors and
has no special AVI ties, it is a very handy little "quick" video
editor/fmpeg front-end that I find far superior to HandBrake.
Thanks in advance!
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman at gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
More information about the freebsd-multimedia
mailing list