<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear Konstantin,<div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks for the email, yes you are right, I was looking this tool time ago, but the fixup_bundle is just a part of the bigger problem, meaning if I want to create a DEB  package with CMake/CPack, how I could tell CPACK to use linuxdeployqt, in runtime.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">CMake/CPack in windows and mac osx are doing their job, but in linux no, in linux we need to many additional tools to create a package.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Waldo.</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 13 Dec 2017, at 20:19, Konstantin Tokarev <<a href="mailto:annulen@yandex.ru" class="">annulen@yandex.ru</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""> </div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""> </div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">13.12.2017, 22:16, "Waldo Valenzuela via CMake" <<a href="mailto:cmake@cmake.org" class="">cmake@cmake.org</a>>:</div><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class=""><div class="">Dear Miklos,<div class=""> </div><div class="">thanks for the email, and your suggestions, but the problem with fixup_bundle in ubuntu is that is not fixing the libraries locations from the executables meaning:</div><div class=""> </div><div class="">if I execute the idd command like this “ idd ./app” where “app” is the executable, the locations of the library is still is “no found", that should be in the location that was copy after running the INSTALL.</div><div class=""> </div><div class="">when you set LD_LIBRARY_PATH is for a temporally solution, or permanent if I modified the environment configuration of O.S.. The idea is that I want to create a standalone application.</div><div class=""> </div><div class="">Under this scenario, if I have an executable called “app” and a shared library call “lib.so”, fixup_bundle should fix the location of the “lib.so” in the same folder where is “app”.</div><div class=""> </div><div class="">Then if I run the command "idd ./app” the output should be:</div><div class=""> </div><div class="">lib.so => “xxxx”, where xxxx is folder where is located “app"</div></div></blockquote><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""> </div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Use linuxdeployqt (<a href="https://github.com/probonopd/linuxdeployqt" class="">https://github.com/probonopd/linuxdeployqt</a>)</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""> </div><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class=""><div class=""><div class=""> </div><div class="">Cheers,</div><div class=""> </div><div class="">Waldo.</div><div class=""> <div class=""> <blockquote type="cite" class=""><div class="">On 13 Dec 2017, at 03:58, Miklos Espak <<a href="mailto:espakm@gmail.com" class="">espakm@gmail.com</a>> wrote:</div> <div class=""><div class="">Hi,<div class=""> </div><div class="">you need to add the directory where the Qt libs have been installed (along with your application binaries) to the LD_LIBRARY_PATH. In your case it is <span style="font-size: 12.8px;" class="">'/home/waldo/Developer/</span><span style="font-size: 12.8px;" class="">install/Release/bratumia/bin/', as I see.</span><div class=""> </div><div class="">Also, you do *not* need to add the Qt plugin directories to the library path. The plugins are loaded at run-time. So that they can be found, you need to install a qt.conf file in the bin directory with the following contents:</div><div class=""> </div><div class="">[Paths]</div><div class="">Prefix=.</div><div class=""> </div><div class="">You also do *not* need to add "/usr/lib" and "/usr/lib/x86-..." to the library path. These libraries are searched for by default. If you did it because your Qt installation is there, that's wrong. The fixup_bundle function should have copied the necessary Qt libs in the install bin folder, so you just need to add that folder to the path.</div><div class=""> </div><div class="">Also, make sure that the DIRS variable contains all the directories where there are libraries to install, including dependencies.</div><div class=""> </div><div class="">I hope that helps.</div><div class=""> </div><div class="">Best regards,</div><div class="">Miklos</div><div class=""> </div><div class=""> </div></div></div><div class=""> <div class="">On 11 December 2017 at 19:07, Waldo Valenzuela via CMake<span class="Apple-converted-space"> </span><span class=""><<a target="_blank" href="mailto:cmake@cmake.org" class="">cmake@cmake.org</a>></span><span class="Apple-converted-space"> </span>wrote:<blockquote style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;" class="">Dear All,<br class=""><br class="">I am working on a multi-platform desktop app with Qt5-VTK8, on Windows and Mac no problem to created the standalone app, but in Ubuntu 16.04  I have several problems.<br class=""><br class="">I am using CodeBlocks to compile and run the app, and from CodeBlocks when I run the app there is no problem, it work normally like in windows and mac, but after run the installation, and If I want to run the app from the installation folder (./app ) I have several problems.<br class=""><br class=""><br class="">the CMakeList.txt is<br class=""><br class="">FILE(GLOB_RECURSE QTPLUGINS_IMAGEFORMATS ${QT_BASE_DIRECTORY}/plugins/imageformats/*${CMAKE_SHARED_LIBRARY_SUFFIX})<br class="">FILE(GLOB_RECURSE QTPLUGINS_PLATFORMS ${QT_BASE_DIRECTORY}/plugins/platforms/*${CMAKE_SHARED_LIBRARY_SUFFIX})<br class=""><br class="">SET(QTPLUGINS ${QTPLUGINS_IMAGEFORMATS} ${QTPLUGINS_PLATFORMS})<br class=""><br class="">MESSAGE("Project libraries: ${QTPLUGINS}")<br class=""><br class=""><br class="">INSTALL(CODE "<br class="">       <span class="Apple-converted-space"> </span>INCLUDE(BundleUtilities)<br class="">       <span class="Apple-converted-space"> </span>FIXUP_BUNDLE(\"${APPS}\" \"${QTPLUGINS}\" \"${DIRS}\")<br class="">             "<br class="">       <span class="Apple-converted-space"> </span>COMPONENT ${PROJECT_NAME})<br class=""><br class="">First I have this:<br class=""><br class="">-- fixup_bundle: fixing...<br class="">-- 132/260: fix-up not required on this platform '/home/waldo/Developer/Qt/5.6.3/gcc_64/plugins/imageformats/libqicns.so'<br class="">-- 133/260: fix-up not required on this platform '/home/waldo/Developer/install/Release/bratumia/bin/libQt5Core.so.5'<br class="">-- 134/260: fix-up not required on this platform '/home/waldo/Developer/install/Release/bratumia/bin/libQt5Gui.so.5’<br class=""><br class="">-- 167/260: fix-up not required on this platform '/home/waldo/Developer/install/Release/bratumia/bin/libITKEXPAT-4.13.so.1'<br class="">-- 168/260: fix-up not required on this platform '/home/waldo/Developer/install/Release/bratumia/bin/libITKIOBMP-4.13.so.1'<br class="">-- 169/260: fix-up not required on this platform '/home/waldo/Developer/install/Release/bratumia/bin/libITKIOBioRad-4.13.so.1<br class=""><br class="">then when I run: ldd ./app I have:<br class=""><br class="">       <span class="Apple-converted-space"> </span>libQt5Concurrent.so.5 => not found<br class="">       <span class="Apple-converted-space"> </span>libvtkRenderingImage-9.0.so.1 => not found<br class="">       <span class="Apple-converted-space"> </span>libvtkRenderingVolumeOpenGL2-9.0.so.1 => not found<br class=""><br class="">then if I fix manually the path of the libraries like this:<br class=""><br class="">export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib:/usr/lib/x86_64-linux-gnu:/home/waldo/app/bin/plugins/imageformats:/home/waldo/app/bin/plugins/platforms"<br class=""><br class="">I can run the application from through the command line from the installation folder, but I have this message and I can not see nothing<br class=""><br class="">QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled<br class="">QOpenGLWidget: Failed to create context<br class="">composeAndFlush: makeCurrent() failed<br class=""><br class=""><br class="">I think that the FIXUP_BUNDLE is doing nothing.<br class=""><br class="">Any help is welcome.<br class=""><br class="">Best regards,<br class=""><br class="">Waldo.<br class="">--<br class=""><br class="">Powered by<span class="Apple-converted-space"> </span><a target="_blank" href="http://www.kitware.com/" class="">www.kitware.com</a><br class=""><br class="">Please keep messages on-topic and check the CMake FAQ at:<span class="Apple-converted-space"> </span><a target="_blank" href="http://www.cmake.org/Wiki/CMake_FAQ" class="">http://www.cmake.org/Wiki/CMake_FAQ</a><br class=""><br class="">Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br class=""><br class="">CMake Support:<span class="Apple-converted-space"> </span><a target="_blank" href="http://cmake.org/cmake/help/support.html" class="">http://cmake.org/cmake/help/support.html</a><br class="">CMake Consulting:<span class="Apple-converted-space"> </span><a target="_blank" href="http://cmake.org/cmake/help/consulting.html" class="">http://cmake.org/cmake/help/consulting.html</a><br class="">CMake Training Courses:<span class="Apple-converted-space"> </span><a target="_blank" href="http://cmake.org/cmake/help/training.html" class="">http://cmake.org/cmake/help/training.html</a><br class=""><br class="">Visit other Kitware open-source projects at<span class="Apple-converted-space"> </span><a target="_blank" href="http://www.kitware.com/opensource/opensource.html" class="">http://www.kitware.com/opensource/opensource.html</a><br class=""><br class="">Follow this link to subscribe/unsubscribe:<br class=""><a target="_blank" href="http://public.kitware.com/mailman/listinfo/cmake" class="">http://public.kitware.com/mailman/listinfo/cmake</a></blockquote></div></div></div></blockquote></div></div></div>,<span class="">--<span class="Apple-converted-space"> </span></span><p class=""><br class="">Powered by<span class="Apple-converted-space"> </span><a href="http://www.kitware.com/" class="">www.kitware.com</a><br class=""><br class="">Please keep messages on-topic and check the CMake FAQ at:<span class="Apple-converted-space"> </span><a href="http://www.cmake.org/Wiki/CMake_FAQ" class="">http://www.cmake.org/Wiki/CMake_FAQ</a><br class=""><br class="">Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br class=""><br class="">CMake Support:<span class="Apple-converted-space"> </span><a href="http://cmake.org/cmake/help/support.html" class="">http://cmake.org/cmake/help/support.html</a><br class="">CMake Consulting:<span class="Apple-converted-space"> </span><a href="http://cmake.org/cmake/help/consulting.html" class="">http://cmake.org/cmake/help/consulting.html</a><br class="">CMake Training Courses:<span class="Apple-converted-space"> </span><a href="http://cmake.org/cmake/help/training.html" class="">http://cmake.org/cmake/help/training.html</a><br class=""><br class="">Visit other Kitware open-source projects at<span class="Apple-converted-space"> </span><a href="http://www.kitware.com/opensource/opensource.html" class="">http://www.kitware.com/opensource/opensource.html</a><br class=""><br class="">Follow this link to subscribe/unsubscribe:<br class=""><a href="http://public.kitware.com/mailman/listinfo/cmake" class="">http://public.kitware.com/mailman/listinfo/cmake</a></p></blockquote><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""> </div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""> </div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">-- <br class="">Regards,</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Konstantin</div></div></blockquote></div><br class=""></div></body></html>