Page 1 of 1

OpenBLAS-DEV issue on OpenSUSE

Posted: Mon May 29, 2023 7:55 pm
by rastoku
Hi,

I am trying to compile Geopsy 3.4.2 on OpenSUSE. I am getting the known error related to OpenBLAS during compilation, please see below.

geopsypack-src-3.4.2/QGpCoreTools/src/Global.cpp:76:5: error: ‘openblas_set_num_threads’ was not declared in this scope

openblas dev package has been installed but the issue is still there, please see attached screenshots and txt files for more details.

I've tested the compilation on Debian (the same pc) and it has finished successfully with openblas-dev installed.

Could you please help to resolve it on OpenSUSE. it is very stable and recently updated (secure) European OS.

Thank you in advance,

Re: OpenBLAS-DEV issue on OpenSUSE

Posted: Tue May 30, 2023 8:29 am
by admin
Hi,

I guess that it is linked to a bad define related to the link to OpenBlas.
Can you edit the file "QGpCoreTools/configure-3.4"?
At line 645, you should find:

Code: Select all

INCLUDE_DEFINE=$(echo $OPEN_BLAS_INCLUDE | awk '{print toupper($0)}' | sed "s/-\\//_/g")
Replace it by

Code: Select all

INCLUDE_DEFINE=$(echo $OPEN_BLAS_INCLUDE | awk '{print toupper($0)}' | sed "s/[-\\/]/_/g")
Two square brackets must be added in the sed command.

Restart the configure script. You can run "configure.cache" to keep the same arguments.
Does it get better? I'm waiting for your confirmation before introducing this modification for the next releases.

Marc

Re: OpenBLAS-DEV issue on OpenSUSE

Posted: Tue May 30, 2023 9:00 pm
by rastoku
Hi Marc,

it works, the compilation has finished successfully. Thank you!

VBR