installation problem

Post in this forum any question related to the installation on any of the supported platforms (Linux, Mac OS X, Windows)
hossein19
Posts: 1
Joined: Sat Jul 08, 2017 1:16 pm

installation problem

Postby hossein19 » Tue Jul 18, 2017 6:20 pm

Hello everybody! :)
im trying to install Geopsy on my laptop and when im using Qt 4 or Qt 5 i encounter two different errors!
(some details: im using ubuntu 17.04, gcc (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406, QMake version 2.01a)

1_when using QT 4 (4.8.7), after 20 mins of running 'make' i get this error:


../include/QGpCoreTools/Grid3D.h:229:36: warning: self-comparison always evaluates to false [-Wtautological-compare]
if ( nx != _nx || ny != ny || nz != nz ) {
~~~^~~~~
src/MiniSeedReader.cpp: In member function ‘void* GeopsyCore::MiniSeedReader::record(int, GeopsyCore::MiniSeedReader::Type&, int&)’:
src/MiniSeedReader.cpp:92:12: error: cannot convert ‘bool’ to ‘void*’ in return
return false;
^~~~~
Makefile.Release:3869: recipe for target 'release/MiniSeedReader.o' failed
make[2]: *** [release/MiniSeedReader.o] Error 1
make[2]: Leaving directory '/home/hosseinkhan/Downloads/geopsypack-55items-src-2.9.0/GeopsyCore'
Makefile:34: recipe for target 'release' failed
make[1]: *** [release] Error 2
make[1]: Leaving directory '/home/hosseinkhan/Downloads/geopsypack-55items-src-2.9.0/GeopsyCore'
Makefile:763: recipe for target 'sub-GeopsyCore-make_default-ordered' failed
make: *** [sub-GeopsyCore-make_default-ordered] Error 2






2_and if i use Qt 5 (newest version), again, after 30 mins of running 'make' i get this (sorry its too long):

/include/QGpCoreMath/StatisticalValue.h:354:19: error: call of overloaded ‘abs(double)’ is ambiguous
diff=abs((_mean-val.value())/_stddev);
~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/6/cstdlib:75:0,
from /usr/include/c++/6/bits/stl_algo.h:59,
from /usr/include/c++/6/algorithm:62,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:94,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qnamespace.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:46,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:4,
from ../include/QGpCoreTools/AbstractParameters.h:31,
from ../include/QGpCoreTools.h:6,
from src/ModalCurve.cpp:28:
/usr/include/stdlib.h:735:12: note: candidate: int abs(int)
extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
^~~
In file included from /usr/include/c++/6/bits/stl_algo.h:59:0,
from /usr/include/c++/6/algorithm:62,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:94,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qnamespace.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:46,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:4,
from ../include/QGpCoreTools/AbstractParameters.h:31,
from ../include/QGpCoreTools.h:6,
from src/ModalCurve.cpp:28:
/usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
^~~
/usr/include/c++/6/cstdlib:180:3: note: candidate: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qmath.h:54:0,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:67,
from ../include/QGpCoreTools/AbstractParameters.h:31,
from ../include/QGpCoreTools.h:6,
from src/ModalCurve.cpp:28:
/usr/include/c++/6/cmath:95:3: note: candidate: constexpr long double std::abs(long double)
abs(long double __x)
^~~
/usr/include/c++/6/cmath:91:3: note: candidate: constexpr float std::abs(float)
abs(float __x)
^~~
/usr/include/c++/6/cmath:85:3: note: candidate: constexpr double std::abs(double)
abs(double __x)
^~~
In file included from ../include/QGpCoreTools/CoreApplicationPrivate.h:35:0,
from ../include/QGpCoreTools/CoreApplication.h:33,
from ../include/QGpCoreTools.h:24,
from src/ModalCurve.cpp:28:
../include/QGpCoreTools/Number.h:89:15: note: candidate: double QGpCoreTools::abs(double)
inline double abs(double a)
^~~
In file included from ../include/QGpCoreTools/StringSection.h:33:0,
from ../include/QGpCoreTools/XMLClass.h:38,
from ../include/QGpCoreTools/ColumnTextDescription.h:32,
from ../include/QGpCoreTools.h:18,
from src/ModalCurve.cpp:28:
../include/QGpCoreTools/Complex.h:404:8: note: candidate: double QGpCoreTools::abs(const QGpCoreTools::Complex&)
double abs(const Complex& c)
^~~
In file included from ../include/QGpCoreMath/StatisticalPoint.h:33:0,
from ../include/QGpCoreMath/ComplexStatisticalProxy.h:31,
from ../include/QGpCoreMath.h:20,
from src/Profile.h:31,
from src/Seismic1DModel.h:36,
from src/ModalCurve.cpp:30:
../include/QGpCoreMath/StatisticalValue.h:356:19: error: call of overloaded ‘abs(double)’ is ambiguous
diff=abs(_mean-val.value());
~~~^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/6/cstdlib:75:0,
from /usr/include/c++/6/bits/stl_algo.h:59,
from /usr/include/c++/6/algorithm:62,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:94,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qnamespace.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:46,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:4,
from ../include/QGpCoreTools/AbstractParameters.h:31,
from ../include/QGpCoreTools.h:6,
from src/ModalCurve.cpp:28:
/usr/include/stdlib.h:735:12: note: candidate: int abs(int)
extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
^~~
In file included from /usr/include/c++/6/bits/stl_algo.h:59:0,
from /usr/include/c++/6/algorithm:62,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:94,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qnamespace.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:46,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:4,
from ../include/QGpCoreTools/AbstractParameters.h:31,
from ../include/QGpCoreTools.h:6,
from src/ModalCurve.cpp:28:
/usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
^~~
/usr/include/c++/6/cstdlib:180:3: note: candidate: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qmath.h:54:0,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:67,
from ../include/QGpCoreTools/AbstractParameters.h:31,
from ../include/QGpCoreTools.h:6,
from src/ModalCurve.cpp:28:
/usr/include/c++/6/cmath:95:3: note: candidate: constexpr long double std::abs(long double)
abs(long double __x)
^~~
/usr/include/c++/6/cmath:91:3: note: candidate: constexpr float std::abs(float)
abs(float __x)
^~~
/usr/include/c++/6/cmath:85:3: note: candidate: constexpr double std::abs(double)
abs(double __x)
^~~
In file included from ../include/QGpCoreTools/CoreApplicationPrivate.h:35:0,
from ../include/QGpCoreTools/CoreApplication.h:33,
from ../include/QGpCoreTools.h:24,
from src/ModalCurve.cpp:28:
../include/QGpCoreTools/Number.h:89:15: note: candidate: double QGpCoreTools::abs(double)
inline double abs(double a)
^~~
In file included from ../include/QGpCoreTools/StringSection.h:33:0,
from ../include/QGpCoreTools/XMLClass.h:38,
from ../include/QGpCoreTools/ColumnTextDescription.h:32,
from ../include/QGpCoreTools.h:18,
from src/ModalCurve.cpp:28:
../include/QGpCoreTools/Complex.h:404:8: note: candidate: double QGpCoreTools::abs(const QGpCoreTools::Complex&)
double abs(const Complex& c)
^~~
Makefile.Release:4294: recipe for target 'release/ModalCurve.o' failed
make[2]: *** [release/ModalCurve.o] Error 1
make[2]: Leaving directory '/home/hosseinkhan/Downloads/geopsypack-51items-src-0.0.0-snapshot-20170109/QGpCoreWave'
Makefile:38: recipe for target 'release' failed
make[1]: *** [release] Error 2
make[1]: Leaving directory '/home/hosseinkhan/Downloads/geopsypack-51items-src-0.0.0-snapshot-20170109/QGpCoreWave'
Makefile:630: recipe for target 'sub-QGpCoreWave-make_first-ordered' failed
make: *** [sub-QGpCoreWave-make_first-ordered] Error 2




please help me to solve this!! :(

admin
Site Admin
Posts: 408
Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:

Re: installation problem

Postby admin » Thu Oct 05, 2017 12:12 pm

Hi Hossein,

I already noticed the abs() issue with gcc 6.3
Can you precise which geopsy release you tried to install?
gcc --version
qmake -v

Regards,

Marc

vince
Posts: 4
Joined: Wed Mar 06, 2013 3:37 pm

Re: installation problem

Postby vince » Tue Oct 31, 2017 8:54 am

It seems I have a similar problem

src/MiniSeedReader.cpp: In member function ‘void* GeopsyCore::MiniSeedReader::record(int, GeopsyCore::MiniSeedReader::Type&, int&)’:
src/MiniSeedReader.cpp:92:12: error: cannot convert ‘bool’ to ‘void*’ in return
return false;

gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0
QMake version 3.1
Using Qt version 5.9.1 in /usr/lib/x86_64-linux-gnu

installing
geopsypack 2.10.1

vince
Posts: 4
Joined: Wed Mar 06, 2013 3:37 pm

Re: installation problem

Postby vince » Wed Nov 01, 2017 6:31 pm

I finally installed Geopsy

Removed the latest version of these packages from the system:
g++
gcc
gfortran

Installed the following packages:
gcc-6-base (6.4.0-8ubuntu1)
gfortran-4.8 (4.8.5-4ubuntu6)
libgfortran-4.8-dev (4.8.5-4ubuntu6)
libgfortran3 (6.4.0-8ubuntu1)

before installing
export QT_SELECT=qt4-x86_64-linux-gnu

so I have:
QMake version 3.1
Using Qt version 5.9.1 in /usr/lib/x86_64-linux-gnu

updated the link in /usr/bin for the compiler


Return to “Installation”

Who is online

Users browsing this forum: No registered users and 2 guests