How to install on linux

652 views
Skip to first unread message

Yuki

unread,
Apr 23, 2018, 12:46:41 AM4/23/18
to ProjectChrono
Hellow.

I'm trying to install chrono on linux(Ubuntu 16.04).   But, errors occor in installation procedures.

  OS: Ubuntu 16.04  64bit
  Chrono Ver.: 3.0.0
  Irrlicht Ver.: 1.8.4
  Compiler: gcc 5.4.0
  cmake: 3.5.1
  Build type: Debug

I'm installing according to a procedure of the following site.
http://api.projectchrono.org/tutorial_install_chrono.html

There was no problem up to the procedure step 6 in the above site.
After that, I get errors when I try to build using cmake with a procedure of the following site.
http://api.projectchrono.org/3.0.0/tutorial_install_project.html

The error message from cmake-gui is as follows:
Finding package Chrono...
   
Requested component Irrlicht (REQUIRED)
Library 'ChronoEngine' in package Chrono is not installed properly
Library 'ChronoEngine_irrlicht' in package Chrono is not installed properly
   CHRONO_CXX_FLAGS        
(Compiler flags):  -std=c++14 -pthread  -march=native -msse4.2 -mfpmath=sse  -march=native -mavx2  -march=native -mfma
   CHRONO_C_FLAGS          
(Compiler flags):  -pthread  -march=native -msse4.2 -mfpmath=sse  -march=native -mavx2  -march=native -mfma
   CHRONO_LINKER_FLAGS      
(Linker flags): -L/home/mypc/bin/chrono_build/lib64
   CHRONO_INCLUDE_DIRS      
(Chrono include directories): /home/mypc/src/chrono/src;/home/mypc/src/chrono/src/chrono;/home/mypc/src/chrono/src/chrono/collision/bullet;/home/mypc/src/chrono/src/chrono/collision/gimpact;/home/mypc/src/chrono/src/chrono/collision/convexdecomposition/HACD;/home/mypc/bin/chrono_build;/home/mypc/src/irrlicht-1.8.4/include
   CHRONO_LIB_NAMES        
(Chrono library names): ChronoEngine;ChronoEngine_irrlicht
   CHRONO_LIBRARIES        
(Chrono libraries): /home/mypc/src/irrlicht-1.8.4/lib/Linux/libIrrlicht.a;-lXxf86vm;-lglut;-lX11;-lGL
   CHRONO_DLL_NAMES        
(Chrono DLL names):
   CHRONO_DLLS              
(Chrono DLLs):
   CHRONO_DATA_DIR          
(Path to Chrono data folder): /home/mypc/src/chrono/data/
   CHRONO_VEHICLE_DATA_DIR  
(Path to Chrono::Vehicle data folder): /home/mypc/src/chrono/data/vehicle/
   CHRONO_FSI_DATA_DIR      
(Path to Chrono::fsi data folder): /home/mypc/src/chrono/data/fsi/
Configuring done


I built Irrlicht library, and confirmed that "lib/Linux/libIrrlicht.a" was created.
Can anyone help?

Thank you very much,
Yuki

Radu Serban

unread,
Apr 30, 2018, 10:36:20 AM4/30/18
to projec...@googlegroups.com

Hi Yuki,

It seems to me that you conflate two different things:

  1. configuring, building, (and maybe installing) the Chrono libraries
  2. configuring and building your own project that depends on Chrono

For the former, you must continue beyond step 6 in that first tutorial and actually build the Chrono libraries. Unfortunately, the procedure in step 7 in the tutorial only mentions the case of using Visual Studio (for Windows users).  In your case, once you completed step 6, CMake will have generated a hierarchy of Makefiles (the native build system on Linux).  So you must run 'make' from within the build tree (which you specified in step 6 during CMake configuration) and, optionally, 'make install'.   Once make completes, you should find a set of (shared) libraries in the sub-directory lib64/ and several executables (demos and unit tests, depending on what you selected during CMake configuration) in the bin/ sub-directory.

Once you have Chrono build, you can link your own project to the Chrono libraries, following the guidelines in that second tutorial.  For that, in step 5 of this procedure, you will need to specify where the Chrono CMake project configuration file is located (i.e. set the CMake variable Chrono_DIR).  You can point to either the Chrono build tree from above or else to the Chrono install tree (if you did perform the optional step of installing Chrono above).  The tutorial uses a Chrono build tree.

I hope this helps.  Let me know if you manage to build everything you need.

Best,
Radu

--
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 projectchron...@googlegroups.com.
To post to this group, send email to projec...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yuki

unread,
May 8, 2018, 8:02:28 AM5/8/18
to ProjectChrono
Hello Radu,

Thank you for your kind suggestion.
I could install it, after reviewing the installing procedure according your advice.

Thanks!

Best regards,
Yuki


2018年4月30日月曜日 23時36分20秒 UTC+9 Radu Serban:
Reply all
Reply to author
Forward
0 new messages