Problem to start opendtect by installation from source

526 views
Skip to first unread message

milcham

unread,
Apr 16, 2016, 12:47:37 PM4/16/16
to OpendTect Developers
Dear all,
I Installed opendtect by OpendTect_Installer_lux64.sh script and everything goes well.
I performed, also, a second installation by sources that download by from https://github.com/OpendTect/OpendTect.git.
I compiled and installed opendtect in debug mode (CMAKE_BUILD_TYPE=Debug)
My problem is that when I run start_dtect -> /home/opendTect/git/installation/bin/start_dtect* from my command line
I have a segmentation fault:
/start_dtect
Setting up GMT environment ... GMT installation directory not found
Setting up Madagascar environment ... Madagascar installation directory not found
Segmentation fault (core dumped)
I do not know if this could be useful, but If I launch the script in debug mode, (I understand that it is need to set export DTECT_START_DEBUGGER=/usr/bin/gdb, but I'm not sure)
output is:
17:14:09 $ ./start_dtect
Setting up GMT environment ... GMT installation directory not found
Setting up Madagascar environment ... Madagascar installation directory not found
DTECT_HOME: /home/opendTect/git/installation
DTECT_SETTINGS: /home/opendTect/git/installation/.od
Original cmd: /bin/csh /home/opendTect/git/installation/bin/od_exec od_main
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/opendTect/git/installation/bin/lux64/Debug/od_main...done.
(gdb) r
Starting program: /home/opendTect/git/installation/bin/lux64/Debug/od_main
[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.
0x00007fffe77b15cd in ?? () from /home/opendTect/OpendTect_Installer_lux64/bin/lux64/Release/libQtGui.so.4

Did you have some idea about the problem?

Thank you so much
Best regards
G


milcham

unread,
Apr 28, 2016, 5:43:24 PM4/28/16
to OpendTect Developers
Hello,

Maybe I understand what caused the segmentation fault.
I tempted to fix it, but without success.
I think that problem is cause by fact that I compiled opendtect with qt5, but, at run, opendtect looks for libQtGui.so.4 instead libQt5Gui,
How to do?  I need to use libQt5 but my efforts did not give results...

Best regards

Raman Singh

unread,
Apr 29, 2016, 1:47:38 AM4/29/16
to devel...@opendtect.org
Hi Gianluigi,


I think that problem is cause by fact that I compiled opendtect with qt5, but, at run, opendtect looks for libQtGui.so.4 instead libQt5Gui,
How to do?  I need to use libQt5 but my efforts did not give results...

In the terminal where you run OpendTect, set the environment variable LD_LIBRARY_PATH to use Qt5 libraries. For example,

setenv LD_LIBRARY_PATH /usr/local/qt5/lib:${LD_LIBRARY_PATH}

I hope this helps.

Regards,

Raman K Singh
Manager Software Development
______________________________

dGB Earth Sciences, India
Phone: +91 22 25704984
Fax: +91 22 25704977
Mobile: +91 98 33452542
E-mail: raman...@dgbes.com
Internet: dgbes.com & opendtect.org
______________________________


--
You received this message because you are subscribed to the Google Groups "OpendTect Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@opendtect.org.
To post to this group, send email to devel...@opendtect.org.
Visit this group at https://groups.google.com/a/opendtect.org/group/developers/.
To view this discussion on the web visit https://groups.google.com/a/opendtect.org/d/msgid/developers/f96ee4c5-8b22-441b-aeee-5376249c37a1%40opendtect.org.
For more options, visit https://groups.google.com/a/opendtect.org/d/optout.

gianluigi caddeo

unread,
Apr 29, 2016, 3:58:16 AM4/29/16
to devel...@opendtect.org
Hello Raman,
thank you very much,
I just tempted to set LD_LIBRARY_PATH
(but without success) using export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}

07:30:12 $ export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}
07:30:32 $ pwd
/home/gcaddeo/openDTect/git/installation/bin/lux64
07:30:38 $ cd Debug/
07:30:42 $ ./od_ma
od_madexec  od_main    
07:30:42 $ ./od_main
Segmentation fault (core dumped)
07:30:48 $ cd ../Release/
07:30:57 $ ./od_main
Segmentation fault (core dumped)


I'm using an UBUNTU MACHINE (Linux milcham 3.19.0-58-generic #64~14.04.1-Ubuntu SMP Fri Mar 18 19:05:43 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux) in which I installed qt4 and qt5 packages from apt-get.

this is my dirs tree:
 07:27:51 $ sudo find /usr -name "libQtGui*"
/usr/lib/i386-linux-gnu/libQtGui.so.4.8
/usr/lib/i386-linux-gnu/libQtGui.so.4
/usr/lib/i386-linux-gnu/libQtGui.so.4.8.6
/usr/lib/x86_64-linux-gnu/libQtGui.so.4.8
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
/usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6
07:27:52 $
07:27:52 $ sudo find /usr -name "libQt5*" | grep Gui
17:/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
25:/usr/lib/x86_64-linux-gnu/libQt5Gui.so
32:/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.2
48:/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.2.1
102:/usr/lib/x86_64-linux-gnu/libQt5Gui.prl

I also used qtchooser tool to switch between libraries, but nothing...
qtchooser --print-env
QT_SELECT="default"
QTTOOLDIR="/usr/lib/x86_64-linux-gnu/qt5/bin"
QTLIBDIR="/usr/lib/x86_64-linux-gnu"


I attach also my cmake configuration for qt (Today I have a doubt for /usr/lib/libosgQt.so and I will re-check it)


Thank you so much
Best regards
G






--

Gianluigi Caddeo

Via Miniere 7,
09010  Nuxis  | Italy

Skype ggigi78

This e-mail is confidential and may also contain privileged information. If you are not the intended recipient you are not authorised to read, print, save, process or disclose this message. If you have received this message by mistake, please inform the sender immediately and delete this e-mail, its attachments and any copies.

Any use, distribution, reproduction or disclosure by any person other than the intended recipient is strictly prohibited and the person responsible may incur penalties.

Thank you

od_cmake.png
Reply all
Reply to author
Forward
0 new messages