isce2 icon indicating copy to clipboard operation
isce2 copied to clipboard

Compilation error using cmake

Open wangshuaicumt opened this issue 1 year ago • 4 comments

Dear ISCE2 team,

I want to use CUDA for acceleration, but when I use cmake to compile, I encounter the following error. I need help. Thank you.

%Q61U F(K ET@N74Y8CC1O

wangshuaicumt avatar Aug 24 '24 08:08 wangshuaicumt

openmotif is not well maintained under conda. Use the system provided libraries instead.

conda uninstall openmotif
ldconfig -p | grep libXm  

Ensure something like /lib/x86_64-linux-gnu/libXm.so exists. otherwise, install via

# Ubuntu/Debian 
sudo apt install libxm4
# Redhat CentOS
yum install motif, motif-devel

lijun99 avatar Jan 14 '25 18:01 lijun99

@lijun99 Dear lijun, I met same issue when using scons with GPU, can not find Xlib.h and Xm.h, even I have find in my conda environments. Do you know how to fix or correct it?

Arctic-Ambrun avatar Apr 02 '25 14:04 Arctic-Ambrun

With scons, you are supposed to specify the openmotif path in your SConfigISCE file as, taking conda as an example,

 MOTIFLIBPATH=$CONDA_PREFIX/lib
 X11LIBPATH=$CONDA_PREFIX/lib
 MOTIFINCPATH=$CONDA_PREFIX/include
 X11INCPATH=$CONDA_PREFIX/include

lijun99 avatar Apr 03 '25 04:04 lijun99

@lijun99 Dear lijun, thank you. I have blocked the compile of XM and successfully build it. Thank you

Arctic-Ambrun avatar Apr 03 '25 07:04 Arctic-Ambrun