Hi
I am trying to install Geopsy 3.5.2 on Ubuntu 22.04 and with Qt 6.2.4, which is available from the Ubuntu packages. I have the following error message if I run the making-process:
../../geopsypack-src-3.5.2/QGpCoreTools/src/EnumAsString.h:57:10: error: ‘QLatin1StringView’ was not declared in this scope; did you mean ‘QLatin1String’?
57 | QMap<QLatin1StringView, int> _synonyms;
| ^~~~~~~~~~~~~~~~~
| QLatin1String
../../geopsypack-src-3.5.2/QGpCoreTools/src/EnumAsString.h:57:32: error: template argument 1 is invalid
57 | QMap<QLatin1StringView, int> _synonyms;
| ^
The configuration before was without any warnings. Could the problem be a too old Qt-version? Which Qt-version would be recommendable?
Installation problem
Re: Installation problem
Hi,
I'm using successfully Qt 5.15, 6.5 and 6.6. Below 6.5 you may encounter errors such as the one you reported. I've never tried Qt 6.7
Best regards,
Marc
I'm using successfully Qt 5.15, 6.5 and 6.6. Below 6.5 you may encounter errors such as the one you reported. I've never tried Qt 6.7
Best regards,
Marc
Re: Installation problem
1. Preface
This is a record of how I solved my installation problem on Linux (Centos).
I am using the Dinver tool to conduct NA inversion with my own forward modelling code.
Through comparison with a regular NA code, I found the Dinver tool is more effective.
[Btw, I wonder if the NA code in Geopsy could be installed independently, without installing all other softwares, which would be much more convenient.]
2. Installation problem
I try to install Geopsy-3.5.2. I note that in the configure file, Qt between 5.15.2 and 6.5.2 is recommended. But I got errors using Qt-6.5.0 and Qt-6.5.2:
geopsypack-src-3.5.2/QGpGuiTools/src/HttpAccess.cpp:122:32: error: ‘CertificateExpired’ is not a member of ‘QSslError’
122 | QSslError error(QSslError::CertificateExpired, cert);
These errors in 'QGpGuiTools/src/HttpAccess.cpp' seem to be incorrect usage of 'QSslError', but when I check for the docutment (https://doc.qt.io/qt-6/qsslerror.html), the usage looks correct.
3. How to solve
I found that these codes are trying to catch errors and then ignore the errors, which means they would in fact do nothing. So I simply commented them. The same is for other codes with errors.
A modified 'HttpAccess.cpp' is attached.
This is a record of how I solved my installation problem on Linux (Centos).
I am using the Dinver tool to conduct NA inversion with my own forward modelling code.
Through comparison with a regular NA code, I found the Dinver tool is more effective.
[Btw, I wonder if the NA code in Geopsy could be installed independently, without installing all other softwares, which would be much more convenient.]
2. Installation problem
I try to install Geopsy-3.5.2. I note that in the configure file, Qt between 5.15.2 and 6.5.2 is recommended. But I got errors using Qt-6.5.0 and Qt-6.5.2:
geopsypack-src-3.5.2/QGpGuiTools/src/HttpAccess.cpp:122:32: error: ‘CertificateExpired’ is not a member of ‘QSslError’
122 | QSslError error(QSslError::CertificateExpired, cert);
These errors in 'QGpGuiTools/src/HttpAccess.cpp' seem to be incorrect usage of 'QSslError', but when I check for the docutment (https://doc.qt.io/qt-6/qsslerror.html), the usage looks correct.
3. How to solve
I found that these codes are trying to catch errors and then ignore the errors, which means they would in fact do nothing. So I simply commented them. The same is for other codes with errors.
A modified 'HttpAccess.cpp' is attached.
- Attachments
-
- HttpAccess.cpp
- (7.32 KiB) Downloaded 8 times