Following up on this- I see multiple people have asked about this on the forum. I am trying to use the VehicleCosim module, but I can't build it on a Windows machine because CMake fails to find the MPI libraries. I have tried msmpi and Intel MPI, both. Is it likely to be an issue with the environment variables? Which environment variables is the CMake looking for?
PS: I was able to build this on Linux, with mpich. But my linux machine does not have a GPU, and was hoping to setup Chrono on the Windows machine. Thanks! On Tuesday 24 January 2023 at 13:25:37 UTC-5 [email protected] wrote: > Hey Radu, > > Thank you for your help. I think I messed something else up when I tried > to rebuild initially because it did not seem to help. However, I deleted > the old folder and re-cloned and then did the submodule update and it > appears to have built with no errors. > > I do however, have another question. I can post this in a separate > conversation if that is preferred... > > I am having issues with finding the MPI library. I have installed the > Intel version(One API). > > Cmake still says it can not find MPI and thus is disabling some of the > vehicle module stuff. This shouldn't be an issue for right now, but mostly > I am just curious what I am doing wrong. I have looked all over google and > this group and I can not seem to find what I am looking for. Attached are > the modules I have enabled as well as the MPI variables in Cmake. > > Any idea why it is not finding them? > > Thank you! > Benjamin > > [image: enabledModules.PNG][image: mpiSettings.PNG] > > On Monday, January 23, 2023 at 4:58:26 PM UTC-5 Radu Serban wrote: > >> Benjamin, >> >> >> >> It looks like you did not initialize the git submodules. >> >> In a terminal, go to where you have cloned the Chrono source (which for >> you appears to be C:/WorkSpace/ProjectChrono/chrono) and type: >> % git submodule init >> >> % git submodule update >> >> Then rebuild the solution. >> >> >> >> What happened is that, because you do not have these submodules (in >> particular chpf), the Chrono FSI library couldn’t build which meant the >> vehicle co-simulation library couldn’t build which finally resulted in >> demos depending on one of these libraries not building. >> >> >> >> --Radu >> >> >> >> *From:* [email protected] <[email protected]> *On >> Behalf Of *Benjamin Johnson >> *Sent:* Monday, 23 January 2023 22:49 >> *To:* ProjectChrono <[email protected]> >> *Subject:* [chrono] Failing to build Demos >> >> >> >> Hello, >> >> >> >> I am having trouble getting Project Chrono installed on my Windows >> machine. It seems to be a linker error, but I am not really sure. >> >> >> >> Cmake does not show any errors(in red) when I configure. I am not really >> sure where to go from here. Any suggestions on things to try or resources >> to check would be grealy appreciated. >> >> >> >> I am seeing a lot of errors like this: >> >> >> >> 219>LINK : fatal error LNK1104: cannot open file >> '..\..\..\..\lib\Debug\ChronoEngine_vehicle_cosim.lib' >> 219>Done building project "demo_VEH_Cosim_WheelRig.vcxproj" -- FAILED. >> >> >> >> I am attaching the build output as well as the cmake config file incase >> that is helpful. >> >> >> >> I am using Visual Studio 2022 to build the project. >> >> >> >> Thanks for any help you can offer. >> >> >> >> Cheers, >> >> Benjamin >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ProjectChrono" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/projectchrono/2a13e786-d1ff-43b0-8dd3-7c99f38d825fn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/projectchrono/2a13e786-d1ff-43b0-8dd3-7c99f38d825fn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "ProjectChrono" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/ee62d57a-4e3f-46ad-965d-f6a31927eb44n%40googlegroups.com.
