Author Topic: Build fails with QT5  (Read 389 times)

Blues

  • Newbie
  • *
  • Posts: 27
Build fails with QT5
« on: October 13, 2016, 08:12:55 PM »
It builds fine with QT4. What is wrong with my QT5?
Code: [Select]
/usr/bin/cmake -E cmake_link_script CMakeFiles/avidemux3_qt5.dir/link.txt --verbose=1
/usr/bin/c++    -fmessage-length=0 -O3 -DNDEBUG   CMakeFiles/avidemux3_qt5.dir/home/saul/work/avidemux2/avidemux/common/ADM_preview.cpp.o CMakeFiles/avidemux3_qt5.dir/home/saul/work/avidemux2/avidemux/common/ADM_previewNavigate.cpp.o CMakeFiles/avidemux3_qt5.dir/home/saul/work/avidemux2/avidemux/common/gui_main.cpp.o CMakeFiles/avidemux3_qt5.dir/home/saul/work/avidemux2/avidemux/common/gui_autodrive.cpp.o CMakeFiles/avidemux3_qt5.dir/home/saul/work/avidemux2/avidemux/common/GUI_jobs.cpp.o CMakeFiles/avidemux3_qt5.dir/home/saul/work/avidemux2/avidemux/common/gui_navigate.cpp.o CMakeFiles/avidemux3_qt5.dir/home/saul/work/avidemux2/avidemux/common/gui_play.cpp.o CMakeFiles/avidemux3_qt5.dir/home/saul/work/avidemux2/avidemux/common/gui_save.cpp.o CMakeFiles/avidemux3_qt5.dir/home/saul/work/avidemux2/avidemux/common/gui_savenew.cpp.o CMakeFiles/avidemux3_qt5.dir/home/saul/work/avidemux2/avidemux/common/main.cpp.o CMakeFiles/avidemux3_qt5.dir/home/saul/work/avidemux2/avidemux/common/gui_action.cpp.o CMakeFiles/avidemux3_qt5.dir/home/saul/work/avidemux2/avidemux/common/gui_blackframes.cpp.o CMakeFiles/avidemux3_qt5.dir/home/saul/work/avidemux2/avidemux/common/ADM_gettext.cpp.o CMakeFiles/avidemux3_qt5.dir/home/saul/work/avidemux2/avidemux/common/ADM_slave.cpp.o  -o avidemux3_qt5  -L/home/saul/work/avidemux2/install/usr/local/lib64 -rdynamic commonQt4/ADM_muxerGate/src/libADM_muxerGate6.a commonQt4/ADM_audioFilter/src/libADM_audioFilter6.a commonQt4/ADM_editor/src/libADM_editor6.a commonQt4/ADM_audioCodec/src/libADM_audiocodec6.a commonQt4/ADM_videoCodec/src/libADM_videocodec6.a -lADM_coreVideoCodec6 commonQt4/ADM_commonUI/libADM_commonUI6.a -lADM_coreVDPAU6 -lADM_coreLibVA6 /home/saul/work/avidemux2/install//usr/local/lib64/libADM6avcodec.so.57 /home/saul/work/avidemux2/install//usr/local/lib64/libADM6avutil.so.55 -lADM_coreJobs commonQt4/ADM_osSupport/libADM_osSupport6.a commonQt4/ADM_script2/src/libADM_script6.a commonQt4/ADM_videoEncoder/src/libADM_videoEncoder6.a commonQt4/ADM_videoFilter2/src/libADM_internalVideoFilter6.a commonQt4/ADM_toolkit/libADM_toolkit6.a -lADM_core6 -lADM_audioParser6 -lADM_coreAudio6 -lADM_coreAudioFilterAPI6 -lADM_coreAudioDevice6 -lADM_coreAudioEncoder6 -lADM_coreDemuxer6 -lADM_coreImage6 -lADM_coreMuxer6 -lADM_coreUI6 -lADM_coreUtils6 -lADM_coreSocket6 -lADM_coreVideoEncoder6 -lADM_coreVideoFilter6 ADM_userInterfacesQT5/ADM_gui/libADM_guiQT5.a ADM_userInterfacesQT5/ADM_filters/libADM_filtersQT5.a ADM_userInterfacesQT5/ADM_dialog/libADM_dialogQt4.a ADM_update/src/libADM_updateQT56.a commonQt4/ADM_videoFilter2/src/libADM_internalVideoFilter6.a ADM_UIsQt4/src/libADM_UIQT56.so ADM_userInterfacesQT5/ADM_gui/libADM_guiQT5.a ADM_userInterfacesQT5/libADM_UI_QT56.a ADM_userInterfacesQT5/ADM_shell/libADM_shellQT5.a commonQt4/ADM_toolkit/libADM_toolkit6.a -lADM_coreAudio6 -lADM_coreAudioDevice6 commonQt4/ADM_osSupport/libADM_osSupport6.a /usr/lib64/libQt5Network.so.5.6.2 -lpthread -lX11 -lm -lstdc++ -lpthread -lADM_coreAudioFilterAPI6 -lADM_coreAudioEncoder6 -lADM_coreDemuxer6 -lADM_coreMuxer6 -lADM_coreSocket6 -lADM_coreVideoEncoder6 -lpthread -lX11 -lm -lstdc++ -lpthread -lX11 -lm -lstdc++ -lADM_coreScript -lADM_coreVideoFilter6 commonQt4/ADM_render/libADM_render6_QT5.so -lADM_coreVDPAU6 ADM_openGL/src/libADM_openGLQT56.so -lADM_core6 -lADM_coreImage6 -lADM_coreUI6 /usr/lib64/libQt5OpenGL.so.5.6.2 /usr/lib64/libQt5Widgets.so.5.6.2 /usr/lib64/libQt5Gui.so.5.6.2 -lGLU -lGL -lXv -lADM_coreUtils6 /usr/lib64/libQt5Core.so.5.6.2 -Wl,-rpath,/home/saul/work/avidemux2/install/usr/local/lib64:/home/saul/work/avidemux2/buildQt5/ADM_UIsQt4/src:/home/saul/work/avidemux2/buildQt5/commonQt4/ADM_render:/home/saul/work/avidemux2/buildQt5/ADM_openGL/src:
commonQt4/ADM_render/libADM_render6_QT5.so: error: undefined reference to 'XShmAttach'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/avidemux3_qt5.dir/build.make:474: avidemux3_qt5] Error 1
make[2]: Leaving directory '/home/saul/work/avidemux2/buildQt5'
make[1]: *** [CMakeFiles/Makefile2:90: CMakeFiles/avidemux3_qt5.dir/all] Error 2
make[1]: Leaving directory '/home/saul/work/avidemux2/buildQt5'
make: *** [Makefile:131: all] Error 2
« Last Edit: October 13, 2016, 08:14:47 PM by Blues »

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 829
Re: Build fails with QT5
« Reply #1 on: October 13, 2016, 10:56:26 PM »
The line above you've cut away

Code: [Select]
[100%] Linking CXX executable avidemux3_qt5
would indicate that it is the final step which fails and at a guess the linker might miss headers(?) for libXext.

In case the linking failure can't be attributed to libXext or libXext devel package missing, you could check if downgrading to Qt 5.6.1 helps. I guess no one tests building Avidemux with 5.6.2 as no major distribution delivers an update one day after the release while openSUSE and Fedora 25 already moved to 5.7.0.
« Last Edit: October 13, 2016, 10:59:19 PM by eumagga0x2a »

Blues

  • Newbie
  • *
  • Posts: 27
Re: Build fails with QT5
« Reply #2 on: November 01, 2016, 10:43:58 PM »
It errors out with gold linker, no problem with bfd.