Open GuillermoPascual opened 2 years ago
Hi Guillermo!
It looks like the compiler fails to recognize the OpenMP routine omp_get_thread_num()
and the problems pile up from there.
The configure
script should find the approriate compiler flags for OpenMP. Seems like that didn't happen in your case. One way to ensure OpenMP support is to pass the appropriate compiler flags like this:
CFLAGS=-fopenmp CXXFLAGS=-fopenmp LDFLAGS=-fopenmp ./configure --prefix=$PREFIX
Cheers,
Reijo
Thanks Reijo,
I have seen that gcc in Mac refers to clang and then it doesn't allow -fopenmp flag, I have to use gcc-11 instead. Don't know if that can be the problem, and if it is the case how can I solve it.
Also when I add the flags I get the next error:
checking for g++... g++
checking whether the C++ compiler works... no
configure: error: in `/Users/pascualg/Downloads/libconviqt-master':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
Best regards, Guillermo
You can always look in config.log
to see why the compiler fails. Most likely your compiler does not support OpenMP threads. Unfortunately, libconviqt
will not compile without them. Your best bet is to install the gcc compiler suite from Macports or homebrew.
Hi,
I am trying to install Libconviqt on my MacOS system but I get the next errors when I try to build and install the library:
It seems like I am missing some package but I am not able to guess which one.
Thanks in advance, Guillermo