Yaoyiyao, This appears to be some issue with your mingw32 make. Try using the solution provided by Freya by directly invoking the gcc compiler (no need really to use make for this simple case). Alternatively, since you are on Windows, one possibility is to build the OpenCRG library using Visual Studio (the community edition is free). The code in OpenCRG’s c-api directory is quite simple, so it’s straightforward to set up a VS project to build it.
--Radu From: [email protected] <[email protected]> On Behalf Of yaoyiyao Sent: Wednesday, 16 November 2022 05:25 To: ProjectChrono <[email protected]> Subject: Re: [chrono] How to compile and install OPENCRG? Hi, I downloaded OpenCRG from https://www.asam.net/standards/detail/opencrg/.( I use custom Win10 OS ) I installed the C-compiler gcc on computer and have set up a standard make environment on your computer. then Open a command line interpreter. Change to the c-api directory. Run make. but failed. [cid:[email protected]] Many thanks in advance. On Tuesday, November 15, 2022 at 10:02:26 PM UTC+8 [email protected] wrote: Hi Yaoyiyao, I have tried OpenCRG and want to share it how to include it as library for Project Chrono. (I use custom Linux OS from BLFS book, you can adjust it with your own OS) 1. I downloaded it from this link: https://github.com/hlrs-vis/opencrg/archive/refs/tags/v1.1.2.tar.gz 2. Extract it, move it to the location you want it to be and rename it if you want, enter the directory and create the shared library, cd to \textbf{../OpenCRG/c-api/baseline/src} then type: gcc -g -O -c *.c gcc -shared -fPIC libOpenCRG.so *.c 3. Afterward, libOpenCRG.so is created and ready to be linked for your Project Chrono build later on, you may move the library to a more decent place like /opt/hamzstlib/lib 4. Now you can link the .so file to provide it for Chrono compiling / installation. Le mar. 15 nov. 2022 à 19:17, yaoyiyao <[email protected]> a écrit : Hello ,I want to use vehicle module and I choose ENABLE_OPENCRG in cmake, I download opencrg 1.1.2 ,but I can't provide the location of a local installation of OpenCRG, including the location of the headers, library, and the location of the OpenCRG DLL. [cid:~WRD1522.jpg] Many thanks in advance -- 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/d9dbbcb5-1854-4596-847b-a0573596a585n%40googlegroups.com<https://groups.google.com/d/msgid/projectchrono/d9dbbcb5-1854-4596-847b-a0573596a585n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- С наилучшими пожеланиями, Богиня Фрейя Atenciosamente, Freya the Goddess Meilleurs voeux, Freya the Goddess Liebe Grüße, Freya the Goddess Best wishes, Freya the Goddess よろしくお願いします、Freya the Goddess 最好的祝福,Freya the Goddess Matakwa mema, Freya the Goddess مع أطيب التمنيات ، فريا الإلهة -- 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]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/67a32571-c35a-4840-b022-25d1ba10ff9en%40googlegroups.com<https://groups.google.com/d/msgid/projectchrono/67a32571-c35a-4840-b022-25d1ba10ff9en%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/PH0PR06MB8237A5899B5AF98A1840E9F3A7079%40PH0PR06MB8237.namprd06.prod.outlook.com.
