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.  [image: 1668514579777.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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/CALUh_%2B1muJfzwz9FhGVOQGH-RcEcyNjdOez%2BJ%2B3eVY%3DX7GTXuw%40mail.gmail.com.

Reply via email to