Closed ebrahimraeyat closed 2 years ago
Hi, @ebrahimraeyat. Good work :+1:
I think there is a problem when linking to Gmsh. Could you run sh local_install.sh
again, just to be sure that you're linking with the latest compiled libraries?
Cheers.
It works?
No, I had been installed gmsh with pip and had been linked some library together according to this issue:
https://github.com/xcfem/xc/issues/92#issuecomment-823336313
then I compiled it via linked you sended. but one question:
Is xc_base still is required? beacause in xc_code_install.sh is compiling, but in repo said that it is not required. I examined either both of those, but nothing changed.
I don't have FreeCAD installation on this ubuntu. Thanks.
Hi, @ebrahimraeyat
I think the headers you're using for gmsh doesn't correspond to the libraries. You can check this by inspecting the GMSH_API_VERSION
lines in gmsh.h. In my machine they are as follows:
#define GMSH_API_VERSION_MAJOR 4
#define GMSH_API_VERSION_MINOR 8
#define GMSH_API_VERSION_PATCH 4
The version of the gmsh library version accompanies the file name. You can use locate gmsh.h
to find all the header files (maybe you have two versions of the header...).
Have you uninstalled the gmsh package shipped with Ubuntu 20.04?
xc_utils is no longer required, all its code has been integrated into xc. xc_base is a python module that provides some basic classes (geometric primitives, ...). I didn't notice xc_code_install is outdated, thanks for the heads-up.
export of locate gmsh.h
ebrahim@DESKTOP-GT2QLMA:/mnt/c/Users/ebi$ locate gmsh.h
/home/ebrahim/.local/lib/python3.8/site-packages/gmsh-4.8.4-Linux64-sdk/include/gmsh.h
/home/ebrahim/.local/lib/python3.8/site-packages/gmsh-4.8.4-Linux64-sdk/include/gmsh.h_cwrap
/home/ebrahim/xc/gmsh/api/gmsh.h
/home/ebrahim/xc/gmsh/api/gmsh.h_cwrap
/home/ebrahim/xc/gmsh/contrib/Netgen/nglib_gmsh.h
/home/ebrahim/xc/gmsh/contrib/bamg/bamg-gmsh.hpp
/home/ebrahim/xc/gmsh/doc/gmsh.html
/usr/local/include/gmsh.h
/usr/local/include/gmsh.h_cwrap
/usr/share/doc/gmsh-doc/gmsh.html
the content of /usr/local/include/gmsh.h is:
#define GMSH_API_VERSION "4.9.0"
#define GMSH_API_VERSION_MAJOR 4
#define GMSH_API_VERSION_MINOR 9
#define GMSH_API_VERSION_PATCH 0
the content of /home/ebrahim/.local/lib/python3.8/site-packages/gmsh-4.8.4-Linux64-sdk/include/gmsh.h
#define GMSH_API_VERSION "4.8.0"
#define GMSH_API_VERSION_MAJOR 4
#define GMSH_API_VERSION_MINOR 8
#define GMSH_API_VERSION_PATCH 0
I think I must remove some of this gmsh. thanks.
Yeah, you have a little mess there. You need to clean it up. :)
If I can help, just let me know.
finally I installed it successfully, but some test gives me this error:
(test_uls_checking_aisc_05.py:15708): Gdk-CRITICAL **: 08:11:24.670: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
test test_uls_checking_aisc_05.py: ok.
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
and also when I want to run my previous model, it gives the segmentation fault error, I think it is related to graphic show. I installed xming, but it is not corrected.
So now it's running. Good news. I think it's better to close this issue, and open a new issue for each new problem. This way, they can serve as a reference for other users with similar problems.
Hi @lcpt. finally I compiled xc on my ubuntu 20.04 in my wsl in windows 10. but one error:
Thanks