Re: [otb-users] Re: Trouble with building Mac Build Error QT-5 Error
Hi, No need to change external_otb.cmake. The 3 steps you proposed should be fine. A few clarifications though: * With cmake, you need to prefix each setting with "-D" : -DOTB_USE_QT=OFF -DCMAKE_INSTALL_PREFIX=~/OTB/install * Step 2 : just "cd OTB/build" should be fine. Guillaume Quoting Shaffiq Somani : or do we change the verbiage in the external_otb.cmake file which has a line that states -DOTB_USE_QT:BOOL=${OTB_USE_QT} to -DOTB_USE_QT=OFF. Thanks, Shaffiq On Tuesday, September 4, 2018 at 11:44:26 PM UTC-4, Shaffiq Somani wrote: Dear Guillaume, Thanks for the update. I had no luck installing the QT5 and make it work. If I do do a script, how do I disable the Qt with " *-DOTB_USE_QT=OFF*" since I am not sure on how to incorporate the line. Are the steps shown below are the ones that I follow, since I am not really a computer programmer or a CMAKE person. 1. *cmake *-DOTB_USE_QT=OFF * CMAKE_INSTALL_PREFIX=~/OTB/install ../otb/SuperBuild* *2. *cd ~/OTB/build 3. make or do I do something differently. Thanks, Shaffiq On Tuesday, September 4, 2018 at 2:31:44 AM UTC-4, Guillaume Pasero wrote: Hi, We usually build OTB on macOS 10.10 and this error doesn't show up. You can disable Qt with "-DOTB_USE_QT=OFF", your OTB will not use Qt (meaning no GUI launcher for application, no monteverdi, no mapla, but you will still have command line applications). In your case, I am not sure Homebrew can help. What you can try is to get a Qt 5 install on your system, and use it in the SuperBuild with -DUSE_SYSTEM_QT5=ON. Regards, Guillaume On 09/04/2018 05:52 AM, Shaffiq Somani wrote: Almost forgot. I am using Mac OS High Sierra, 4 cores, and the superbuild option. I am stuck at 14%. Do I need to install Homebrew to get it resolved or is there any other place I should post it. Thanks On Monday, September 3, 2018 at 12:17:33 PM UTC-4, Shaffiq Somani wrote: Hello, I am trying to build the OTB Toolbox, using CMAKE. However, the QT5 had an installation failure which is listed below. Has anyone had the issue and know how to resolve it for the MAC OS High Sierra. I am following the command lines from https://www.orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech2.html *Terminal Error* CMake Error at /Users/shaffiqsomani/OTB/build/QT5/src/QT5-stamp/QT5-build-Release.cmake:16 (message): Command failed: 2 '/Applications/Xcode.app/Contents/Developer/usr/bin/make' See also /Users/shaffiqsomani/OTB/build/QT5/src/QT5-stamp/QT5-build-*.log make[2]: *** [QT5/src/QT5-stamp/QT5-build] Error 1 make[1]: *** [CMakeFiles/QT5.dir/all] Error 2 make: *** [all] Error 2 *QT5-build-err.log* ld: warning: direct access in function 'QHash::insert(QString const&, int const&)' from file '/Users/shaffiqsomani/OTB/build/QT5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' to global weak symbol 'QHash::deleteNode2(QHashData::Node*)' from file '.obj/rcc.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings. ld: warning: direct access in function 'QHash::insert(QString const&, int const&)' from file '/Users/shaffiqsomani/OTB/build/QT5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' to global weak symbol 'QHash::deleteNode2(QHashData::Node*)' from file '.obj/rcc.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings. ld: warning: direct access in function 'QHash::insert(QString const&, int const&)' from file '/Users/shaffiqsomani/OTB/build/QT5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' to global weak symbol 'QHashint>::duplicateNode(QHashData::Node*, void*)' from file '.obj/rcc.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings. ld: warning: direct access in function 'QCommandLineParserPrivate::~QCommandLineParserPrivate()' from file '/Users/shaffiqsomani/OTB/build/QT5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' to global weak symbol 'QHash::deleteNode2(QHashData::Node*)' from file '.obj/rcc.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings. ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/shaffiqsomani/OTB/install/lib/libz.dylib /Users/shaffiqsomani/OTB/build/QT5/src/QT5/qtbase/src/network/access/qnetworkaccessdebugpipebackend_p.h:0: Note: No relevant classes found. No output generated. ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/shaffiqsomani/OTB/install/lib/libz.dylib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file:
Re: [otb-users] Re: Trouble with building Mac Build Error QT-5 Error
or do we change the verbiage in the external_otb.cmake file which has a line that states -DOTB_USE_QT:BOOL=${OTB_USE_QT} to -DOTB_USE_QT=OFF. Thanks, Shaffiq On Tuesday, September 4, 2018 at 11:44:26 PM UTC-4, Shaffiq Somani wrote: > > Dear Guillaume, > > Thanks for the update. I had no luck installing the QT5 and make it > work. If I do do a script, how do I disable the Qt with " > *-DOTB_USE_QT=OFF*" since I am not sure on how to incorporate the line. > > Are the steps shown below are the ones that I follow, since I am not > really a computer programmer or a CMAKE person. > > 1. *cmake *-DOTB_USE_QT=OFF > * CMAKE_INSTALL_PREFIX=~/OTB/install ../otb/SuperBuild* > *2. *cd ~/OTB/build > 3. make > > or do I do something differently. > > Thanks, > > Shaffiq > > > > On Tuesday, September 4, 2018 at 2:31:44 AM UTC-4, Guillaume Pasero wrote: >> >> Hi, >> >> We usually build OTB on macOS 10.10 and this error doesn't show up. You >> can disable Qt with "-DOTB_USE_QT=OFF", your OTB will not use Qt >> (meaning no GUI launcher for application, no monteverdi, no mapla, but you >> will still have command line applications). >> >> In your case, I am not sure Homebrew can help. What you can try is to get >> a Qt 5 install on your system, and use it in the SuperBuild with >> -DUSE_SYSTEM_QT5=ON. >> >> Regards, >> Guillaume >> >> On 09/04/2018 05:52 AM, Shaffiq Somani wrote: >> >> Almost forgot. >> >> I am using Mac OS High Sierra, 4 cores, and the superbuild option. I am >> stuck at 14%. Do I need to install Homebrew to get it resolved or is there >> any other place I should post it. >> >> Thanks >> >> On Monday, September 3, 2018 at 12:17:33 PM UTC-4, Shaffiq Somani wrote: >>> >>> Hello, >>> >>> I am trying to build the OTB Toolbox, using CMAKE. However, the QT5 >>> had an installation failure which is listed below. Has anyone had the >>> issue and know how to resolve it for the MAC OS High Sierra. I am >>> following the command lines from >>> >>> https://www.orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech2.html >>> >>> >>> *Terminal Error* >>> >>> CMake Error at >>> /Users/shaffiqsomani/OTB/build/QT5/src/QT5-stamp/QT5-build-Release.cmake:16 >>> (message): >>> >>> Command failed: 2 >>> >>> >>>'/Applications/Xcode.app/Contents/Developer/usr/bin/make' >>> >>> >>> See also >>> >>> >>> /Users/shaffiqsomani/OTB/build/QT5/src/QT5-stamp/QT5-build-*.log >>> >>> >>> >>> make[2]: *** [QT5/src/QT5-stamp/QT5-build] Error 1 >>> >>> make[1]: *** [CMakeFiles/QT5.dir/all] Error 2 >>> >>> make: *** [all] Error 2 >>> >>> >>> *QT5-build-err.log* >>> >>> ld: warning: direct access in function 'QHash>> int>::insert(QString const&, int const&)' from file >>> '/Users/shaffiqsomani/OTB/build/QT5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' >>> >>> to global weak symbol 'QHash::deleteNode2(QHashData::Node*)' >>> from file '.obj/rcc.o' means the weak symbol cannot be overridden at >>> runtime. This was likely caused by different translation units being >>> compiled with different visibility settings. >>> >>> ld: warning: direct access in function 'QHash>> int>::insert(QString const&, int const&)' from file >>> '/Users/shaffiqsomani/OTB/build/QT5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' >>> >>> to global weak symbol 'QHash::deleteNode2(QHashData::Node*)' >>> from file '.obj/rcc.o' means the weak symbol cannot be overridden at >>> runtime. This was likely caused by different translation units being >>> compiled with different visibility settings. >>> >>> ld: warning: direct access in function 'QHash>> int>::insert(QString const&, int const&)' from file >>> '/Users/shaffiqsomani/OTB/build/QT5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' >>> >>> to global weak symbol 'QHash::duplicateNode(QHashData::Node*, >>> void*)' from file '.obj/rcc.o' means the weak symbol cannot be overridden >>> at runtime. This was likely caused by different translation units being >>> compiled with different visibility settings. >>> >>> ld: warning: direct access in function >>> 'QCommandLineParserPrivate::~QCommandLineParserPrivate()' from file >>> '/Users/shaffiqsomani/OTB/build/QT5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' >>> >>> to global weak symbol 'QHash::deleteNode2(QHashData::Node*)' >>> from file '.obj/rcc.o' means the weak symbol cannot be overridden at >>> runtime. This was likely caused by different translation units being >>> compiled with different visibility settings. >>> >>> ld: warning: linking against a dylib which is not safe for use in >>> application extensions: /Users/shaffiqsomani/OTB/install/lib/libz.dylib >>> >>> /Users/shaffiqsomani/OTB/build/QT5/src/QT5/qtbase/src/network/access/qnetworkaccessdebugpipebackend_p.h:0: >>> >>> Note: No relevant classes found. No output generated. >>> >>> ld: warning: linking against a dylib which is not safe for use in >>> application extensions:
Re: [otb-users] Re: Trouble with building Mac Build Error QT-5 Error
Dear Guillaume, Thanks for the update. I had no luck installing the QT5 and make it work. If I do do a script, how do I disable the Qt with " *-DOTB_USE_QT=OFF*" since I am not sure on how to incorporate the line. Are the steps shown below are the ones that I follow, since I am not really a computer programmer or a CMAKE person. 1. *cmake *-DOTB_USE_QT=OFF * CMAKE_INSTALL_PREFIX=~/OTB/install ../otb/SuperBuild* *2. *cd ~/OTB/build 3. make or do I do something differently. Thanks, Shaffiq On Tuesday, September 4, 2018 at 2:31:44 AM UTC-4, Guillaume Pasero wrote: > > Hi, > > We usually build OTB on macOS 10.10 and this error doesn't show up. You > can disable Qt with "-DOTB_USE_QT=OFF", your OTB will not use Qt (meaning > no GUI launcher for application, no monteverdi, no mapla, but you will > still have command line applications). > > In your case, I am not sure Homebrew can help. What you can try is to get > a Qt 5 install on your system, and use it in the SuperBuild with > -DUSE_SYSTEM_QT5=ON. > > Regards, > Guillaume > > On 09/04/2018 05:52 AM, Shaffiq Somani wrote: > > Almost forgot. > > I am using Mac OS High Sierra, 4 cores, and the superbuild option. I am > stuck at 14%. Do I need to install Homebrew to get it resolved or is there > any other place I should post it. > > Thanks > > On Monday, September 3, 2018 at 12:17:33 PM UTC-4, Shaffiq Somani wrote: >> >> Hello, >> >> I am trying to build the OTB Toolbox, using CMAKE. However, the QT5 had >> an installation failure which is listed below. Has anyone had the issue >> and know how to resolve it for the MAC OS High Sierra. I am following the >> command lines from >> >> https://www.orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech2.html >> >> >> *Terminal Error* >> >> CMake Error at >> /Users/shaffiqsomani/OTB/build/QT5/src/QT5-stamp/QT5-build-Release.cmake:16 >> (message): >> >> Command failed: 2 >> >> >>'/Applications/Xcode.app/Contents/Developer/usr/bin/make' >> >> >> See also >> >> >> /Users/shaffiqsomani/OTB/build/QT5/src/QT5-stamp/QT5-build-*.log >> >> >> >> make[2]: *** [QT5/src/QT5-stamp/QT5-build] Error 1 >> >> make[1]: *** [CMakeFiles/QT5.dir/all] Error 2 >> >> make: *** [all] Error 2 >> >> >> *QT5-build-err.log* >> >> ld: warning: direct access in function 'QHash> int>::insert(QString const&, int const&)' from file >> '/Users/shaffiqsomani/OTB/build/QT5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' >> >> to global weak symbol 'QHash::deleteNode2(QHashData::Node*)' >> from file '.obj/rcc.o' means the weak symbol cannot be overridden at >> runtime. This was likely caused by different translation units being >> compiled with different visibility settings. >> >> ld: warning: direct access in function 'QHash> int>::insert(QString const&, int const&)' from file >> '/Users/shaffiqsomani/OTB/build/QT5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' >> >> to global weak symbol 'QHash::deleteNode2(QHashData::Node*)' >> from file '.obj/rcc.o' means the weak symbol cannot be overridden at >> runtime. This was likely caused by different translation units being >> compiled with different visibility settings. >> >> ld: warning: direct access in function 'QHash> int>::insert(QString const&, int const&)' from file >> '/Users/shaffiqsomani/OTB/build/QT5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' >> >> to global weak symbol 'QHash::duplicateNode(QHashData::Node*, >> void*)' from file '.obj/rcc.o' means the weak symbol cannot be overridden >> at runtime. This was likely caused by different translation units being >> compiled with different visibility settings. >> >> ld: warning: direct access in function >> 'QCommandLineParserPrivate::~QCommandLineParserPrivate()' from file >> '/Users/shaffiqsomani/OTB/build/QT5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' >> >> to global weak symbol 'QHash::deleteNode2(QHashData::Node*)' >> from file '.obj/rcc.o' means the weak symbol cannot be overridden at >> runtime. This was likely caused by different translation units being >> compiled with different visibility settings. >> >> ld: warning: linking against a dylib which is not safe for use in >> application extensions: /Users/shaffiqsomani/OTB/install/lib/libz.dylib >> >> /Users/shaffiqsomani/OTB/build/QT5/src/QT5/qtbase/src/network/access/qnetworkaccessdebugpipebackend_p.h:0: >> >> Note: No relevant classes found. No output generated. >> >> ld: warning: linking against a dylib which is not safe for use in >> application extensions: /Users/shaffiqsomani/OTB/install/lib/libz.dylib >> >> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: >> >> file: ../../../lib/libqtharfbuzz.a(hb-warning.o) has no symbols >> >> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: >> >> file: ../../../lib/libqtharfbuzz.a(hb-warning.o) has no symbols >> >> ld: warning: linking
Re: [otb-users] Re: Trouble with building Mac Build Error QT-5 Error
Hi, We usually build OTB on macOS 10.10 and this error doesn't show up. You can disable Qt with "-DOTB_USE_QT=OFF", your OTB will not use Qt (meaning no GUI launcher for application, no monteverdi, no mapla, but you will still have command line applications). In your case, I am not sure Homebrew can help. What you can try is to get a Qt 5 install on your system, and use it in the SuperBuild with -DUSE_SYSTEM_QT5=ON. Regards, Guillaume On 09/04/2018 05:52 AM, Shaffiq Somani wrote: Almost forgot. I am using Mac OS High Sierra, 4 cores, and the superbuild option. I am stuck at 14%. Do I need to install Homebrew to get it resolved or is there any other place I should post it. Thanks On Monday, September 3, 2018 at 12:17:33 PM UTC-4, Shaffiq Somani wrote: Hello, I am trying to build the OTB Toolbox, using CMAKE. However, the QT5 had an installation failure which is listed below. Has anyone had the issue and know how to resolve it for the MAC OS High Sierra. I am following the command lines from https://www.orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech2.html Terminal Error CMake Error at /Users/shaffiqsomani/OTB/build/QT5/src/QT5-stamp/QT5-build-Release.cmake:16 (message): Command failed: 2 '/Applications/Xcode.app/Contents/Developer/usr/bin/make' See also /Users/shaffiqsomani/OTB/build/QT5/src/QT5-stamp/QT5-build-*.log make[2]: *** [QT5/src/QT5-stamp/QT5-build] Error 1 make[1]: *** [CMakeFiles/QT5.dir/all] Error 2 make: *** [all] Error 2 QT5-build-err.log ld: warning: direct access in function 'QHash::insert(QString const&, int const&)' from file '/Users/shaffiqsomani/OTB/build/QT5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' to global weak symbol 'QHash::deleteNode2(QHashData::Node*)' from file '.obj/rcc.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings. ld: warning: direct access in function 'QHash::insert(QString const&, int const&)' from file '/Users/shaffiqsomani/OTB/build/QT5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' to global weak symbol 'QHash::deleteNode2(QHashData::Node*)' from file '.obj/rcc.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings. ld: warning: direct access in function 'QHash::insert(QString const&, int const&)' from file '/Users/shaffiqsomani/OTB/build/QT5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' to global weak symbol 'QHash::duplicateNode(QHashData::Node*, void*)' from file '.obj/rcc.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings. ld: warning: direct access in function 'QCommandLineParserPrivate::~QCommandLineParserPrivate()' from file '/Users/shaffiqsomani/OTB/build/QT5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' to global weak symbol 'QHash::deleteNode2(QHashData::Node*)' from file '.obj/rcc.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings. ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/shaffiqsomani/OTB/install/lib/libz.dylib