<div> </div><div> </div><div>13.12.2017, 22:16, "Waldo Valenzuela via CMake" <cmake@cmake.org>:</div><blockquote type="cite"><div>Dear Miklos,<div> </div><div>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> </div><div>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> </div><div>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> </div><div>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> </div><div>Then if I run the command "idd ./app” the output should be:</div><div> </div><div>lib.so => “xxxx”, where xxxx is folder where is located “app"</div></div></blockquote><div> </div><div>Use linuxdeployqt (https://github.com/probonopd/linuxdeployqt)</div><div> </div><blockquote type="cite"><div><div> </div><div>Cheers,</div><div> </div><div>Waldo.</div><div> <div> <blockquote type="cite"><div>On 13 Dec 2017, at 03:58, Miklos Espak <<a href="mailto:espakm@gmail.com">espakm@gmail.com</a>> wrote:</div> <div><div>Hi,<div> </div><div>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;">'/home/waldo/Developer/</span><span style="font-size:12.8px;">install/Release/bratumia/bin/', as I see.</span><div> </div><div>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> </div><div>[Paths]</div><div>Prefix=.</div><div> </div><div>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> </div><div>Also, make sure that the DIRS variable contains all the directories where there are libraries to install, including dependencies.</div><div> </div><div>I hope that helps.</div><div> </div><div>Best regards,</div><div>Miklos</div><div> </div><div> </div></div></div><div> <div>On 11 December 2017 at 19:07, Waldo Valenzuela via CMake <span><<a target="_blank" href="mailto:cmake@cmake.org">cmake@cmake.org</a>></span> wrote:<blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex;">Dear All,<br /><br />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 /><br />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 /><br /><br />the CMakeList.txt is<br /><br />FILE(GLOB_RECURSE QTPLUGINS_IMAGEFORMATS ${QT_BASE_DIRECTORY}/plugins/imageformats/*${CMAKE_SHARED_LIBRARY_SUFFIX})<br />FILE(GLOB_RECURSE QTPLUGINS_PLATFORMS ${QT_BASE_DIRECTORY}/plugins/platforms/*${CMAKE_SHARED_LIBRARY_SUFFIX})<br /><br />SET(QTPLUGINS ${QTPLUGINS_IMAGEFORMATS} ${QTPLUGINS_PLATFORMS})<br /><br />MESSAGE("Project libraries: ${QTPLUGINS}")<br /><br /><br />INSTALL(CODE "<br />        INCLUDE(BundleUtilities)<br />        FIXUP_BUNDLE(\"${APPS}\" \"${QTPLUGINS}\" \"${DIRS}\")<br />             "<br />        COMPONENT ${PROJECT_NAME})<br /><br />First I have this:<br /><br />-- fixup_bundle: fixing...<br />-- 132/260: fix-up not required on this platform '/home/waldo/Developer/Qt/5.6.3/gcc_64/plugins/imageformats/libqicns.so'<br />-- 133/260: fix-up not required on this platform '/home/waldo/Developer/install/Release/bratumia/bin/libQt5Core.so.5'<br />-- 134/260: fix-up not required on this platform '/home/waldo/Developer/install/Release/bratumia/bin/libQt5Gui.so.5’<br /><br />-- 167/260: fix-up not required on this platform '/home/waldo/Developer/install/Release/bratumia/bin/libITKEXPAT-4.13.so.1'<br />-- 168/260: fix-up not required on this platform '/home/waldo/Developer/install/Release/bratumia/bin/libITKIOBMP-4.13.so.1'<br />-- 169/260: fix-up not required on this platform '/home/waldo/Developer/install/Release/bratumia/bin/libITKIOBioRad-4.13.so.1<br /><br />then when I run: ldd ./app I have:<br /><br />        libQt5Concurrent.so.5 => not found<br />        libvtkRenderingImage-9.0.so.1 => not found<br />        libvtkRenderingVolumeOpenGL2-9.0.so.1 => not found<br /><br />then if I fix manually the path of the libraries like this:<br /><br />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 /><br />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 /><br />QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled<br />QOpenGLWidget: Failed to create context<br />composeAndFlush: makeCurrent() failed<br /><br /><br />I think that the FIXUP_BUNDLE is doing nothing.<br /><br />Any help is welcome.<br /><br />Best regards,<br /><br />Waldo.<br />--<br /><br />Powered by <a target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br /><br />Please keep messages on-topic and check the CMake FAQ at: <a target="_blank" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br /><br />Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br /><br />CMake Support: <a target="_blank" href="http://cmake.org/cmake/help/support.html">http://cmake.org/cmake/help/support.html</a><br />CMake Consulting: <a target="_blank" href="http://cmake.org/cmake/help/consulting.html">http://cmake.org/cmake/help/consulting.html</a><br />CMake Training Courses: <a target="_blank" href="http://cmake.org/cmake/help/training.html">http://cmake.org/cmake/help/training.html</a><br /><br />Visit other Kitware open-source projects at <a target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br /><br />Follow this link to subscribe/unsubscribe:<br /><a target="_blank" href="http://public.kitware.com/mailman/listinfo/cmake">http://public.kitware.com/mailman/listinfo/cmake</a></blockquote></div></div></div></blockquote></div></div></div>,<span>-- </span><p><br />Powered by <a href="http://www.kitware.com/">www.kitware.com</a><br /><br />Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br /><br />Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br /><br />CMake Support: <a href="http://cmake.org/cmake/help/support.html">http://cmake.org/cmake/help/support.html</a><br />CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html">http://cmake.org/cmake/help/consulting.html</a><br />CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html">http://cmake.org/cmake/help/training.html</a><br /><br />Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br /><br />Follow this link to subscribe/unsubscribe:<br /><a href="http://public.kitware.com/mailman/listinfo/cmake">http://public.kitware.com/mailman/listinfo/cmake</a></p></blockquote><div> </div><div> </div><div>-- <br />Regards,</div><div>Konstantin</div><div> </div>