r8138 - Link error on OSX 10.8 ML, missing openGlBenchmark -- Fix0red

Started by nibbles, August 12, 2012, 04:20:49 PM

Previous topic - Next topic

nibbles

Hey now, I'm getting a build error on OSX 10.8 Mountain Lion where 2.6 r8138 fails to link libADM_vf_glBenchmark.dylib due to missing OpenGL symbol getNextFrame:

Linking CXX shared library libADM_vf_glBenchmark.dylib
cd /tmp/homebrew-avidemux3-2.6-e4f4/buildPlugGui/ADM_videoFilters6_openGl/glBenchmark && /usr/local/Cellar/cmake/2.8.8/bin/cmake -E cmake_link_script CMakeFiles/ADM_vf_glBenchmark.dir/link.txt --verbose=1
/usr/bin/clang++   -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -g -O0 -g -shared  -L/usr/local/Cellar/readline/6.2.4/lib -L/usr/local/Cellar/gettext/0.18.1.1/lib -L/usr/local/lib -o libADM_vf_glBenchmark.dylib -install_name /tmp/homebrew-avidemux3-2.6-e4f4/buildPlugGui/ADM_videoFilters6_openGl/glBenchmark/libADM_vf_glBenchmark.dylib CMakeFiles/ADM_vf_glBenchmark.dir/sampleGl.cpp.o CMakeFiles/ADM_vf_glBenchmark.dir/moc_sampleGl.cxx.o -F/usr/local/Cellar/qt/4.8.2/lib -L/usr/local/Cellar/avidemux3/2.6/lib -lADM_UIQT46 -lADM_render6_qt4 -framework QtGui -framework QtCore -framework AGL -framework OpenGL -framework QtOpenGL -lADM_core6 -lADM_coreUI6 -lADM_coreVideoFilter6 -lADM_coreImage6 -lADM_coreUtils6 -lm
ld: warning: directory not found for option '-L/usr/local/lib/gcc'
Undefined symbols for architecture x86_64:
  "ADMBenchmark::printResult()", referenced from:
      openGlBenchmark::getNextFrame(unsigned int*, ADMImage*) in sampleGl.cpp.o
  "ADMBenchmark::end()", referenced from:
      openGlBenchmark::getNextFrame(unsigned int*, ADMImage*) in sampleGl.cpp.o
  "ADMBenchmark::start()", referenced from:
      openGlBenchmark::getNextFrame(unsigned int*, ADMImage*) in sampleGl.cpp.o
  "ADMBenchmark::getResult(float&, int&, int&)", referenced from:
      openGlBenchmark::getNextFrame(unsigned int*, ADMImage*) in sampleGl.cpp.o
  "ADMBenchmark::ADMBenchmark()", referenced from:
      openGlBenchmark::getNextFrame(unsigned int*, ADMImage*) in sampleGl.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [ADM_videoFilters6_openGl/glBenchmark/libADM_vf_glBenchmark.dylib] Error 1
make[1]: *** [ADM_videoFilters6_openGl/glBenchmark/CMakeFiles/ADM_vf_glBenchmark.dir/all] Error 2
make: *** [all] Error 2


The full make log is here: https://raw.github.com/gist/3332460
Thanks for your help.  I'm not sure if this is something new with ML.  I'll try it on Lion today to confirm.

mean


Jan Gruuthuse

Just guessing: just switched OS X from lion v10.7 to mountain lion v10.8, after holiday break?

nibbles

Sorry I've been afk. I can't recall the exact rev it worked.  I'm certain you had hit 8000+ though.  I'll try it on Lion now as I'm booted into it.  I forget how to get a specific revision, but I'll try to figure it out later.

nibbles


Jan Gruuthuse

Quote from: nibbles on August 30, 2012, 07:37:57 PM
Sorry I've been afk. I can't recall the exact rev it worked.  I'm certain you had hit 8000+ though.  I'll try it on Lion now as I'm booted into it.  I forget how to get a specific revision, but I'll try to figure it out later.
pySVN workbench (gui) has an update to revision number. Cli would be:
svn update -r REV.
Quote~/avidemux_2.6_branch_mean$ svn update -r 8165
U    avidemux_plugins/ADM_demuxers/Mp4/ADM_mp4Indexer.cpp
U    avidemux_plugins/ADM_demuxers/Mp4/ADM_mp4.h
Updated to revision 8165.