Re: [Qgis-user] Qgis failed to startup

2016-06-27 Thread Richard Duivenvoorde
Hi Christophe,

forwarding to dev list...

But do I see:
libQt5Widgets.so.5 ??

Are you aware that you are using Qt5.
Because building that is still experimental (but could be ok if you know
what you are doing).

Better to remove all the Qt5 stuff, and be sure that all your paths
point to the Qt4 versions of the libraries!
I think you mixup Qt4 and Qt5 versions of libs...

FYI, on Debian I start ccmake .. with the following:

# master
ccmake -DCMAKE_BUILD_TYPE=Debug
-DCMAKE_INSTALL_PREFIX=/home/richard/apps/qgis/master/debug
-DWITH_INTERNAL_QWTPOLAR=ON -DWITH_SERVER=TRUE -DBUILD_TESTING=FALSE ..

Regards,

Richard Duivenvoorde


On 27-06-16 18:05, christoph wrote:
> Hello,
> 
> I tried what you told me,
> 
> this is what I get!
> 
> but I cannot get any good out of it!
> 
> What is A CRC mismatch?
> 
> christoph@excelsior:~/myworld/QGIS/cmake_qgis/output/bin$ source
> /home/christoph/myworld/sharedsourcen/gislibs.sh
> christoph@excelsior:~/myworld/QGIS/cmake_qgis/output/bin$ sudo ldconfig
> [sudo] password for christoph:
> christoph@excelsior:~/myworld/QGIS/cmake_qgis/output/bin$ gdb ./qgis
> GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
> Copyright (C) 2014 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> 
> 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:
> .
> Find the GDB manual and other documentation resources online at:
> .
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from ./qgis...(no debugging symbols found)...done.
> (gdb) run
> Starting program: /home/christoph/myworld/QGIS/cmake_qgis/output/bin/qgis
> warning: the debug information found in "/lib64/ld-2.19.so" does not
> match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch).
> 
> [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.
> __memcpy_sse2_unaligned () at
> ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:158
> 158../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Datei oder
> Verzeichnis nicht gefunden.
> (gdb) bt
> #0  __memcpy_sse2_unaligned () at
> ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:158
> #1  0x747ab56c in memcpy (__len=8, __src=0x7fffeca60400,
> __dest=) at /usr/include/x86_64-linux-gnu/bits/string3.h:51
> #2  QByteArray::append (this=0x7fffcc30, str=0x7fffeca60400
> "QWidget") at tools/qbytearray.cpp:1651
> #3  0x7fffec71d186 in ?? () from
> /home/christoph/myworld/qt-everywhere-opensource-src-5.6.0/build/lib/libQt5Widgets.so.5
> 
> #4  0x77dea9ba in call_init (l=,
> argc=argc@entry=1, argv=argv@entry=0x7fffccd8,
> env=env@entry=0x7fffcce8) at dl-init.c:78
> #5  0x77deaaa3 in call_init (env=0x7fffcce8,
> argv=0x7fffccd8, argc=1, l=) at dl-init.c:36
> #6  _dl_init (main_map=0x77ffe1a8, argc=1, argv=0x7fffccd8,
> env=0x7fffcce8) at dl-init.c:126
> #7  0x77ddd1ca in _dl_start_user () from
> /lib64/ld-linux-x86-64.so.2
> #8  0x0001 in ?? ()
> #9  0x7fffcfb3 in ?? ()
> #10 0x in ?? ()
> 
> On 2016-06-14 09:32, Richard Duivenvoorde wrote:
>> On 14-06-16 09:23, christoph wrote:
>>> Hi, Richard,
>>> yes I did all what you described,
>>> but still no clue why I get the error!
>>> All that is in my home directory.
>> I sometimes use 'strace' to see what happens when something stops.
>>
>> So: try to build with debug info, that is use: -DCMAKE_BUILD_TYPE=Debug
>> or set it to Debug in ccmake..
>>
>> export de LD_LIBRARY_PATH (as in your script)
>> And then
>> strace 
>> Maybe the segfault on the end reveals more info.
>>
>> And if that fails, install gdb, and learn how to show stacktrace with
>> that
>> In short:
>> gdb qgis
>> (gdb) run
>> then after crash call backtrace:
>> (gdb) bt
>>
>> Hope this helps
>>
>> Richard
> 
> 

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Qgis failed to startup

2016-06-14 Thread Matthias Kuhn
Hi Christoph


On 06/13/2016 10:03 PM, christoph wrote:
> Hi, I built Qgis from git clone source,
> ccmake ..
> make -> without any errors,
> make install -> without any errors
> Qgis/build/bin/ qgis error -> Speicherzugriffsfehler
> anyone a idea what is causing that?
>
> christoph@excelsior:~/myworld/QGIS/build/bin$ ./qgis
> Speicherzugriffsfehler

Either run the installation

  make install
  qgis

Or run from the build folder (isolated, I use that for development)

  make
  ./output/bin/qgis

Not sure if it's this but it could potentially lead to qgis picking up
wrong libraries.

Cheers Matthias

>
> cheers chris
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

-- 
Matthias Kuhn
OPENGIS.ch - https://www.opengis.ch
Spatial • (Q)GIS • PostGIS • Open Source

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Qgis failed to startup

2016-06-14 Thread Richard Duivenvoorde
On 14-06-16 09:23, christoph wrote:
> Hi, Richard,
> yes I did all what you described,
> but still no clue why I get the error!
> All that is in my home directory.

I sometimes use 'strace' to see what happens when something stops.

So: try to build with debug info, that is use: -DCMAKE_BUILD_TYPE=Debug
or set it to Debug in ccmake..

export de LD_LIBRARY_PATH (as in your script)
And then
strace 
Maybe the segfault on the end reveals more info.

And if that fails, install gdb, and learn how to show stacktrace with
that
In short:
gdb qgis
(gdb) run
then after crash call backtrace:
(gdb) bt

Hope this helps

Richard
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Qgis failed to startup

2016-06-14 Thread Richard Duivenvoorde
On 13-06-16 22:03, christoph wrote:
> Hi, I built Qgis from git clone source,
> ccmake ..
> make -> without any errors,
> make install -> without any errors
> Qgis/build/bin/ qgis error -> Speicherzugriffsfehler
> anyone a idea what is causing that?
> 
> christoph@excelsior:~/myworld/QGIS/build/bin$ ./qgis
> Speicherzugriffsfehler

Hi Chris,

what distro/OS/version are you on?

(maybe you are better of on dev-list for such questions)

If you build like you do you can either run from build/output/bin directory.
OR you do make install, and if you did not point to a custom install
directory, I think you have todo 'sudo make install' because QGIS is
copying stuff to places where normal users have no write permission.

My take: install in your home dir (you can compile/run several versions
then):

-DCMAKE_INSTALL_PREFIX=/home/YOU/bin/qgis/2.1x

And create a little startup script like belose (take away stuff you do
not need, and fix paths for your situation)...:

# path to libs in install dir
# path to oracle lib
# path to grass70 lib
export
LD_LIBRARY_PATH=/home/richard/apps/qgis/master/debug/lib/:/home/richard/dev/oracle/12.1/instantclient_12_1:/usr/lib/grass70/lib

# passing ALL parameters to qgis bin
# eg to be able to call a certain translation
# qgis --lang nl
/home/richard/apps/qgis/master/debug/bin/qgis "$@"

Hope this helps,

Richard Duivenvoorde


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Qgis failed to startup

2016-06-13 Thread christoph

Hi, I built Qgis from git clone source,
ccmake ..
make -> without any errors,
make install -> without any errors
Qgis/build/bin/ qgis error -> Speicherzugriffsfehler
anyone a idea what is causing that?

christoph@excelsior:~/myworld/QGIS/build/bin$ ./qgis
Speicherzugriffsfehler

cheers chris
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user