tianyikillua / medcoupling

Python repackaging of the MEDCoupling library
GNU Lesser General Public License v2.1
4 stars 2 forks source link

Unable to compile MEDCoupling_Swig on MacOS Ventura #4

Open tg-cea opened 1 year ago

tg-cea commented 1 year ago

Hello,

I wanted to use the Python medcoupling API on my Macbook (recently updated to Ventura OS with latest Xcode development tools) so I first tried a "pip install medcoupling" which did not work.

Then I found your very useful tool (thanks for that!) and retried again with the explained procedure. It seems that the problem comes from the compilation of the MEDCoupling_Swig part (the compilation of the MEDcoupling static library in the first step seems ok, since I can see the "libmedcoupling.a" and "libmedcouplingremapper.a" files in the build/src/MEDCoupling folder). I noted that there is a total of 5 errors during this second step of compilation, all giving the following type of message :

medcoupling/medCoupling-9.7.0/build/src/MEDCoupling_Swig/CMakeFiles/_MEDCoupling.dir/MEDCouplingPYTHON_wrap.cxx:60050:12: error: incompatible pointer types assigning to 'std::vector<MEDCoupling::Int64, std::allocator> ' (aka 'vector<long long, allocator> ') from 'std::vector<long, std::allocator> *' arg2 = ptr; ^~~

Also I want to precise that there are a lot of warnings (2910) but these are not a blocking problem.

Best regards, Thomas.

hhhcj commented 1 year ago

I build from the source of MEDCoupling. It showed out a same error message :)