Generation of Qgis plugin descriptors fails with latest develop
Description
With latest develop
commit 9558e454228d6c4496ee575235b7121cb5b52edc
Merge: 09a58f3cdf 85cab3ff35
Author: Victor Poughon <victor.poughon@cnes.fr>
Date: Tue Jul 10 08:41:49 2018 +0200
Merge branch '1646-qt5-signal-slot' into 'develop'
Refactor in Modules/Wrappers/QtWidget
See merge request orfeotoolbox/otb!161
During compilation, Qt descriptor generation fails with a segmentation fault:
Scanning dependencies of target generate_descriptors
[ 94%] ./bin/otbQgisDescriptor MultivariateAlterationDetector ./lib/otb/applications ./share/otb/description/
Writing /home/michelj/dev/build/otb/share/otb/description/MultivariateAlterationDetector.txt
Updated /home/michelj/dev/build/otb/share/otb/description/algs.txt
[ 95%] ./bin/otbQgisDescriptor HomologousPointsExtraction ./lib/otb/applications ./share/otb/description/
Writing /home/michelj/dev/build/otb/share/otb/description/HomologousPointsExtraction.txt
Updated /home/michelj/dev/build/otb/share/otb/description/algs.txt
[ 95%] ./bin/otbQgisDescriptor DomainTransform ./lib/otb/applications ./share/otb/description/
Writing /home/michelj/dev/build/otb/share/otb/description/DomainTransform.txt
Updated /home/michelj/dev/build/otb/share/otb/description/algs.txt
[ 95%] ./bin/otbQgisDescriptor LineSegmentDetection ./lib/otb/applications ./share/otb/description/
Writing /home/michelj/dev/build/otb/share/otb/description/LineSegmentDetection.txt
Updated /home/michelj/dev/build/otb/share/otb/description/algs.txt
[ 95%] ./bin/otbQgisDescriptor EdgeExtraction ./lib/otb/applications ./share/otb/description/
Writing /home/michelj/dev/build/otb/share/otb/description/EdgeExtraction.txt
Updated /home/michelj/dev/build/otb/share/otb/description/algs.txt
[ 95%] ./bin/otbQgisDescriptor Smoothing ./lib/otb/applications ./share/otb/description/
Writing /home/michelj/dev/build/otb/share/otb/description/Smoothing.txt
Updated /home/michelj/dev/build/otb/share/otb/description/algs.txt
[ 95%] ./bin/otbQgisDescriptor ContrastEnhancement ./lib/otb/applications ./share/otb/description/
Writing /home/michelj/dev/build/otb/share/otb/description/ContrastEnhancement.txt
Updated /home/michelj/dev/build/otb/share/otb/description/algs.txt
[ 95%] ./bin/otbQgisDescriptor BundleToPerfectSensor ./lib/otb/applications ./share/otb/description/
Modules/Wrappers/QGIS/src/CMakeFiles/generate_descriptors.dir/build.make:137 : la recette pour la cible « share/otb/description/BundleToPerfectSensor.txt » a échouée
make[2]: *** [share/otb/description/BundleToPerfectSensor.txt] Erreur de segmentation
CMakeFiles/Makefile2:12308 : la recette pour la cible « Modules/Wrappers/QGIS/src/CMakeFiles/generate_descriptors.dir/all » a échouée
make[1]: *** [Modules/Wrappers/QGIS/src/CMakeFiles/generate_descriptors.dir/all] Erreur 2
make[1]: *** Attente des tâches non terminées....
Steps to reproduce
Build latest develop (see commit id above). What gdb says:
$ gdb --args ./bin/otbQgisDescriptor BundleToPerfectSensor ./lib/otb/applications ./share/otb/description/
Starting program: /home/michelj/dev/build/otb/bin/otbQgisDescriptor BundleToPerfectSensor ./lib/otb/applications ./share/otb/description/
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff76857da in otb::Wrapper::Application::SetLogger(otb::Logger*) () from /home/michelj/dev/build/otb/lib/libOTBApplicationEngine-6.7.so.1
Configuration information
Debian 9 64 bits with gcc 6.3.0