Xiangyu-Hu / SPHinXsys

SPHinXsys provides C++ APIs for engineering simulation and optimization. It aims at complex systems driven by fluid, structure, multi-body dynamics and beyond. The multi-physics library is based on a unique and unified computational framework by which strong coupling has been achieved for all involved physics.
https://www.sphinxsys.org/
Apache License 2.0
259 stars 199 forks source link

latest master cannot compile through #52

Closed alundilong closed 2 years ago

alundilong commented 2 years ago

Old master works fine (around 5-7 days back, cannot remember exactly). For current master, visual studio 2017 (windows 10) reports a numerous errors related to xstring, stdexcept, xlocinfo...., etc. Please see the attached.

I would like to checkout a new branch to work on a new feature, but I cannot move on.

image

Xiangyu-Hu commented 2 years ago

I have just do compile the in in MSVC 2019, it works. There are two test cases not compile in windows due to google test setup in cmake files. Other cases and the library are all ok.

Xiangyu-Hu commented 2 years ago

May be a issue to Cmake? Did you rerun the Cmake with deleting cache?

alundilong commented 2 years ago

May be a issue to Cmake? Did you rerun the Cmake with deleting cache?

Yes. I see the same problem. Two test cases failed compiling due to googletest setup. The error in CMake lead VS's failure in locating gtest.lib.

alundilong commented 2 years ago

May be a issue to Cmake? Did you rerun the Cmake with deleting cache?

Yes. I see the same problem. Two test cases failed compiling due to googletest setup. The error in CMake lead VS's failure in locating gtest.lib.

alundilong commented 2 years ago

I have just do compile the in in MSVC 2019, it works. There are two test cases not compile in windows due to google test setup in cmake files. Other cases and the library are all ok.

I'll try MSVC 2019 out later. Thanks.

alundilong commented 2 years ago

Now I find files, such as c_exp.c, c_cos.c, at SPHINXsys/src/shared/clapack_for_SPHinXsys/F2CLIBS/libf2c/ are causing problems.

lALPD4PvN-97y4HNA5LNBok_1673_914
alundilong commented 2 years ago

Remove files at SPHINXsys\src\shared\clapack_for_SPHinXsys and \SPHINXsys\src\shared\simbody, compile was successful except for two test cases which need a manual setting of add gtest.lib through visual studio.

alundilong commented 2 years ago

My git-clone seems downloaded all submodules which should be ignored. This is root causing the failure. Now the alarm is cleared. Thank you for attention. @Xiangyu-Hu