Please stick with a single email thread.  I believe all problems you are having 
stem from the same place which I mentioned at least twice now.

IRRLICHT_LIBRARY should be set to the Irrlicht library file (NOT a directory)!

You are passing something like:
-DIRRLICHT_LIBRARY=/opt/hamzstlib/Physics/irrlicht-1.8.5/lib/Linux

In the example cmake command line I gave you (which works just fine on my 
machine) I set:
-DIRRLICHT_LIBRARY=/usr/lib/x86_64-linux-gnu/libIrrlicht.so

Please locate the library file libIrrlicht.so on your machine and set 
IRRLICHT_LIBRARY to be that.


You are misinterpreting the output from make.

  1.  The library libChronoEngine_vehicle.so was built just fine.  Look in the 
lib/ directory and you should see it there.  The make command stops due to 
earlier errors (from trying to build Chrono Irrlicht demos because you did not 
set the Irrlicht library correctly).
  2.  The problem is not really in libChronoEngine_irrlicht.so.  In fact, the 
library libChronoEngine_irrlicht.so is probably created and you can see it in 
lib/ as well.
The problem is that the Irrlicht library libIrrlicht.so is not known.  Note 
that these are shared libraries.  As such, errors will occur only when you try 
to link an executable that uses them.


Please get the above working first.  Once you fix the issue above by providing 
the correct full path to the Irrlicht library file libIrrlicht.so in the cmake 
variable IRRLICHT_LIBRARY, you should be able to build Chrono with BUILD_DEMOS 
enabled.  You will get the demo executables in the directory bin/ and can run 
them from within that directory.
If you want to play around with the demos, you can modify their source code and 
then run again make at the same top-level as the first time.  You should NOT 
try to run make in a demo subdirectory.

The demo programs distributed with Chrono are just that: demos.

  1.  Their full source code is provided with the distribution, so I’m not 
quite sure why you would expect us to post the source for all of them on the 
documentation website.  We chose to do so for a few of them (and in fact may 
decide to remove that from the website): indeed, that is NOT the place to get 
the code for a particular demo; you have that source code in the Chrono 
repository which you have cloned.
  2.  As I also mentioned a couple of times before, if you really want to 
experiment further with a particular demo or else want to write your own 
program based on the Chrono libraries, you should set up a separate project and 
configure that following the instructions at 
https://api.projectchrono.org/tutorial_install_project.html

--Radu

From: [email protected] <[email protected]> On Behalf 
Of Freya the Goddess
Sent: Saturday, May 21, 2022 9:27 AM
To: ProjectChrono <[email protected]>
Subject: Re: [chrono] Re: ProjectChrono Compilation Error with Irrlicht Module 
version 1.8.5

Hi all,

good day to you, I want to share the failed building / compiling with 
BUILD_DEMOS=ON

1. I am using Irrlicht-1.8.5 because I cannot compile Irrlicht-1.8.4 on my 
Linux OS system, I am able to test the Irrlicht demo on their website, all work 
nicely.
2. If I build Project Chrono with BUILD_DEMOS=OFF the compilation will be 
finished.

My question is based on my screenshot there must be some problem either in 
libraries linking or my ccmake options?

 Look at 42% compiling there are warning:
undefined reference to 'createDeviceEx'
undefined reference to 'irr::core::IdentityMatrix'
undefined reference to 'irr::video::IdentityMaterial'

Is the problem located on libChronoEngine_irrlicht.so ?

Then the compilation stop / failed when building libChronoEngine_vehicle.so

Is the problem on my system or there are some preconfiguration needed or maybe 
to set environment variables for irrlicht ?

Thank You

Le ven. 20 mai 2022 à 17:39, Freya the Goddess 
<[email protected]<mailto:[email protected]>> a écrit :
1. I use the develop branch. Is it better to use version 7.0 to clone the git?

2. cmake-gui or ccmake works fine here, but I just trying using typing
manually CMAKE

3. I need to fix some of the manual typed CMAKE commands. If it
complicates things more I go back to ccmake, I just want to make /
build Project Chrono well. Irrlicht version 1.8.5 has been tested and
works, but Irrlicht-1.8.4 can't produce the library (.a or .so /
static or shared), maybe that's why it has been fixed and works on
version 1.8.5 by the developers.

I will rebuild again with your advice, thanks Radu.

Le ven. 20 mai 2022 à 16:16, 'Radu Serban' via ProjectChrono
<[email protected]<mailto:[email protected]>> a écrit 
:
>
> For demo_FEA_basic, you do not need any additional packages and do not need 
> to enable any optional Chrono modules.  Of course, you still need to specify 
> the path to the Eigen headers.
>
> But first things first.  What version of Chrono are you using? I recall you 
> saying that you cloned the repository. Please make sure you are on the 
> *develop* branch.
>
> Ideally, you would use cmake-gui or ccmake which will guide you better 
> through satisfying all requirements.  Do you not have access to one of those 
> in your distribution?
>
> The cmake command line you posted below has several issues:
> - there are no Chrono cmake variables named "CMAKE_ENABLE_MODULE_***"
> - we expect to set the variable EIGEN3_INCLUDE_DIR
> - IRRLICHT_LIBRARY should be set to the Irrlicht library *file* (not a 
> directory)
>
> I suggest you try a minimal build, adjusting appropriately the following 
> command which works fine on my machine:
>
> cmake -DCMAKE_BUILD_TYPE=Release 
> -DEIGEN3_INCLUDE_DIR=/home/radu/Packages/eigen-3.4.0 
> -DENABLE_MODULE_IRRLICHT=ON -DIRRLICHT_ROOT=/usr/include/irrlicht 
> -DIRRLICHT_LIBRARY=/usr/lib/x86_64-linux-gnu/libIrrlicht.so 
> ~/Repositories/chrono
>
> (Several of the options you set explicitly default to those values anyway)
>
> --Radu
>
>
> -----Original Message-----
> From: [email protected]<mailto:[email protected]> 
> <[email protected]<mailto:[email protected]>> On 
> Behalf Of Freya the Goddess
> Sent: Friday, May 20, 2022 10:37 AM
> To: ProjectChrono 
> <[email protected]<mailto:[email protected]>>
> Subject: Re: [chrono] Re: ProjectChrono Compilation Error with Irrlicht 
> Module version 1.8.5
>
> Hi Radu, thanks for your reply, the error is basically stop at 80% compiling 
> when building or linking the demo_FEA_basic, is there any required package to 
> build this demo_FEA_basic?
>
> I think I just need to ask the steps to make Project Chrono built right from 
> any of you using Linux. Since my OS is GNU/Linux but my own flavor.
>
> Usually ccmake .. is nice after I type:
> mkdir build && cd build
>
> But for manually typed CMAKE, If anyone can help me if this commands are 
> prepared to build Chrono or not:
> mkdir build && cd build &&
> cmake -DCMAKE_BUILD_TYPE=Release
> -DCMAKE_INSTALL_PREFIX=/opt/hamzstlib/Physics
> -DCMAKE_BUILD_DEMOS=ON
> -DCMAKE_ENABLE_MODULE_IRRLICHT=ON
> -DCMAKE_ENABLE_OPENMP=ON
> -DUSE_BULLET_OPENMP=ON
> -DUSE_EIGEN_OPENMP=ON
> -DUSE_SIMD=ON 
> -DIRRLICHT_LIBRARY=/opt/hamzstlib/Physics/irrlicht-1.8.5/lib/Linux
> -DIRRLICHT_ROOT=/opt/hamzstlib/Physics/irrlicht-1.8.5/
> -DEIGEN_DIR=/opt/hamzstlib/share/eigen3/cmake .. && make
>
> Le ven. 20 mai 2022 à 13:14, 'Radu Serban' via ProjectChrono 
> <[email protected]<mailto:[email protected]>> a 
> écrit :
> >
> > I'm not sure how you configure and build Chrono...
> > demo_FEA_basic does *not* use Irrlicht, so it cannot be "the same error".
> > --Radu
> >
> > -----Original Message-----
> > From: [email protected]<mailto:[email protected]> 
> > <[email protected]<mailto:[email protected]>>
> > On Behalf Of Freya the Goddess
> > Sent: Friday, May 20, 2022 12:54 AM
> > Cc: ProjectChrono 
> > <[email protected]<mailto:[email protected]>>
> > Subject: Re: [chrono] Re: ProjectChrono Compilation Error with
> > Irrlicht Module version 1.8.5
> >
> > It still prompts the same error when compiling demo_FEA_basic
> >
> > I will try irrlicht-1.8.4 then
> >
> > Le ven. 20 mai 2022 à 04:30, Freya the Goddess 
> > <[email protected]<mailto:[email protected]>> a écrit :
> > >
> > > I try to compile again with the right path to library,
> > > irrlicht-1.8.5/lib/Linux and then use Release as the build mode.
> > > Will tell you the result
> > >
> > > Le jeu. 19 mai 2022 à 22:06, 'Radu Serban' via ProjectChrono
> > > <[email protected]<mailto:[email protected]>> a 
> > > écrit :
> > > >
> > > > The issue is not Irrlicht 1.8.5.  That should work fine.
> > > >
> > > > The problem is that you are not passing a *library* for 
> > > > IRRLICHT_LIBRARY (but rather a directory) in your CMake configuration.
> > > >
> > > > Note also that you may want to build the code in Release mode.
> > > >
> > > >
> > > >
> > > > --Radu
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > From: 'JASON Z' via ProjectChrono 
> > > > <[email protected]<mailto:[email protected]>>
> > > > Sent: Thursday, May 19, 2022 4:56 PM
> > > > To: ProjectChrono 
> > > > <[email protected]<mailto:[email protected]>>
> > > > Subject: [chrono] Re: ProjectChrono Compilation Error with
> > > > Irrlicht Module version 1.8.5
> > > >
> > > >
> > > >
> > > > The link on the text might be wrong, see here:
> > > > https://irrlicht.sourceforge.io/?p=1575
> > > >
> > > > On Thursday, May 19, 2022 at 9:52:57 AM UTC-5 JASON Z wrote:
> > > >
> > > > Hi,
> > > >
> > > >
> > > >
> > > > Could you please try  Irrlicht 1.8.4 instead of Irrlicht 1.8.5. 1.8.4 
> > > > version has been widely tested.
> > > >
> > > > Anyone feel free to add any comments.
> > > >
> > > >
> > > >
> > > > Thanks,
> > > >
> > > > Jason
> > > >
> > > > On Thursday, May 19, 2022 at 8:10:05 AM UTC-5 
> > > > [email protected]<mailto:[email protected]> wrote:
> > > >
> > > > Dear all,
> > > >
> > > >
> > > >
> > > > I want to build Project Chrono, I git clone it and use ccmake with 
> > > > configuration only using Irrlicht module.
> > > >
> > > >
> > > >
> > > > When it is almost finished, it prompts an error:
> > > >
> > > >
> > > >
> > > > libChronoEngine_irrlicht.so undefined reference to 'createDeviceEx'
> > > > 'irr::core::IdentityMatrix'
> > > > 'irr::video::IdentityMaterial'
> > > >
> > > >
> > > >
> > > > Anyone knows how to fix this issue?
> > > >
> > > >
> > > >
> > > > Thank You
> > > >
> > > > --
> > > > 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:projectchrono%[email protected]>.
> > > > To view this discussion on the web visit 
> > > > https://groups.google.com/d/msgid/projectchrono/53e9ec7a-8bf5-46c8-a999-ba53c04e4d9en%40googlegroups.com.
> > > >
> > > > --
> > > > 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:projectchrono%[email protected]>.
> > > > To view this discussion on the web visit 
> > > > https://groups.google.com/d/msgid/projectchrono/PH0PR06MB8237BB02FB71D78EB749DED2A7D09%40PH0PR06MB8237.namprd06.prod.outlook.com.
> > >
> > >
> > >
> > > --
> > > С наилучшими пожеланиями, Богиня Фрейя 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
> > > مع أطيب التمنيات ، فريا الإلهة
> >
> >
> >
> > --
> > С наилучшими пожеланиями, Богиня Фрейя 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:projectchrono%[email protected]>.
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msgid/projectchrono/CALUh_%2B3%3D2FCSqk%3DN%2BjC_3eHOJryVVMJHCx3CgzTVDRLd3tKLug%40mail.gmail.com.
> >
> > --
> > 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:projectchrono%[email protected]>.
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msgid/projectchrono/PH0PR06MB823723B0234B6FD486FA0152A7D39%40PH0PR06MB8237.namprd06.prod.outlook.com.
>
>
>
> --
> С наилучшими пожеланиями, Богиня Фрейя
> 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:projectchrono%[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/projectchrono/CALUh_%2B16V8O6QKEmu2_n0jCFsz8i9sdCrWg7Yua7uRBL75VFow%40mail.gmail.com.
>
> --
> You received this message because you are subscribed to a topic in the Google 
> Groups "ProjectChrono" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/projectchrono/qqDP0GlhgOo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected]<mailto:projectchrono%[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/projectchrono/PH0PR06MB8237ADBC792748C0F270398DA7D39%40PH0PR06MB8237.namprd06.prod.outlook.com.



--
С наилучшими пожеланиями, Богиня Фрейя
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
مع أطيب التمنيات ، فريا الإلهة


--
С наилучшими пожеланиями, Богиня Фрейя
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/CALUh_%2B1NM%2BmxBjcg%3DyCw6Or8m5WZOqLLX5s3nE%2BcaF_6C_nBOw%40mail.gmail.com<https://groups.google.com/d/msgid/projectchrono/CALUh_%2B1NM%2BmxBjcg%3DyCw6Or8m5WZOqLLX5s3nE%2BcaF_6C_nBOw%40mail.gmail.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/PH0PR06MB823718A22B112B20845ABBE6A7D29%40PH0PR06MB8237.namprd06.prod.outlook.com.

Reply via email to