==== Chrono programs ====
Finding package Chrono...
CMake Error at /home/cralab/chrono/chrono_build/cmake/ChronoConfig.cmake:83 (list):
list does not recognize sub-command PREPEND
Call Stack (most recent call first):
slider_crank/CMakeLists.txt:16 (find_package)
CMake Error at /home/cralab/chrono/chrono_build/cmake/ChronoConfig.cmake:86 (list):
list does not recognize sub-command PREPEND
Call Stack (most recent call first):
slider_crank/CMakeLists.txt:16 (find_package)
Requested component Irrlicht (REQUIRED)
CMake Error at /home/cralab/chrono/chrono_build/cmake/ChronoConfig.cmake:258 (list):
list does not recognize sub-command PREPEND
Call Stack (most recent call first):
slider_crank/CMakeLists.txt:16 (find_package)
CMake Error at /home/cralab/chrono/chrono_build/cmake/ChronoConfig.cmake:264 (list):
list does not recognize sub-command PREPEND
Call Stack (most recent call first):
slider_crank/CMakeLists.txt:16 (find_package)
CHRONO_CXX_FLAGS (Compiler flags): ;-pthread;-fopenmp;-march=native
CHRONO_C_FLAGS (Compiler flags): ;-pthread;-fopenmp;-march=native
CHRONO_LINKER_FLAGS (Linker flags): -L/home/cralab/chrono/chrono_build/lib
CHRONO_INCLUDE_DIRS (Chrono include directories): /home/cralab/chrono/chrono/src;/home/cralab/chrono/chrono/src/chrono;/home/cralab/chrono/chrono/src/chrono/collision/bullet;/home/cralab/chrono/chrono/src/chrono/collision/gimpact;/home/cralab/chrono/chrono/src/chrono_thirdparty/HACD;/home/cralab/chrono/chrono/src/chrono_thirdparty/HACDv2;/home/cralab/chrono/chrono_build;/usr/local/include/eigen3;;/usr/include/irrlicht
CHRONO_LIB_NAMES (Chrono library names):
CHRONO_LIBRARIES (Chrono libraries): /usr/lib/gcc/x86_64-linux-gnu/7/libgomp.so;/usr/lib/x86_64-linux-gnu/libpthread.so;;/usr/lib/x86_64-linux-gnu/libIrrlicht.so;-lXxf86vm;-lglut;-lX11;-lGL
CHRONO_DLL_NAMES (Chrono DLL names):
CHRONO_DLLS (Chrono DLLs):
CHRONO_DATA_DIR (Path to Chrono data folder): /home/cralab/chrono/chrono/data/
CHRONO_VEHICLE_DATA_DIR (Path to Chrono::Vehicle data folder): /home/cralab/chrono/chrono/data/vehicle/
CHRONO_FSI_DATA_DIR (Path to Chrono::FSI data folder): /home/cralab/chrono/chrono/data/fsi/
...add slider_crank_0
CMake Error at slider_crank/CMakeLists.txt:55 (target_link_options):
Unknown CMake command "target_link_options".
Configuring incomplete, errors occurred!
See also "/home/cralab/chrono/chrono-tutorial-8.0.0_build/CMakeFiles/CMakeOutput.log".
---------------------------------------------------------------------
Hi Prakhar,
Thanks for pointing this out. We missed it in the 8.0 release but will make sure to update the template project in the latest development code so that it requires a proper CMake version, compatible with Chrono itself.
On a different note, like Dario also suggested, I encourage you to start using the latest code in the ‘main’ branch of the Chrono git repository. There have been many enhancements, new features, and bug fixes since the 8.0 release.
--Radu
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/bba06e8c-16b7-4791-b224-fdc349d63a75n%40googlegroups.com.
Hi Prakhar,
Thanks for the heads up. You are correct, this isa bug (most likely a copy and paste).
I’ll push the fix soon.
--Radu
From: projec...@googlegroups.com <projec...@googlegroups.com>
On Behalf Of Prakhar Gupta
Sent: Wednesday, October 11, 2023 7:22 PM
To: ProjectChrono <projec...@googlegroups.com>
Subject: Re: [chrono] CMake version problem for chrono tutorials
Radu,
I am building the main branch now - with the MATLAB module.
There seems to be a bug in https://github.com/projectchrono/chrono/blob/2e6cae2d6578531d73f56d28893740ea009544ab/src/chrono_matlab/ChMatlabEngine.h#L85C1-L85C75
This leads to following error during make:
----------------------------------------------------------------
In file included from /home/cralab/chrono/chrono/src/chrono_matlab/ChMatlabEngine.cpp:15:0:
/home/cralab/chrono/chrono/src/chrono_matlab/ChMatlabEngine.h:85:10: error: extra qualification ‘chrono::ChMatlabEngine::’ on member ‘GetString’ [-fpermissive]
bool ChMatlabEngine::GetString(std::string& str, std::string varname);
^~~~~~~~~~~~~~
src/chrono_matlab/CMakeFiles/ChronoEngine_matlab.dir/build.make:75: recipe for target 'src/chrono_matlab/CMakeFiles/ChronoEngine_matlab.dir/ChMatlabEngine.cpp.o' failed
---------------------------------------------------------------
I removed the extra class declaration and it works. If you agree with this fix, I can create an issue on github and create a pull request.
Prakhar
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/391fff37-1c21-4a8e-8451-5a1b28b965fcn%40googlegroups.com.
Prakhar,
Dario and I worked out a fix for the issue you reported with the Chrono project configuration script.
I tested this with the chrono-tutorial projects, on both Windows and Linux.
Please pull the latest code and let us know if this resolves your issue. Note that I also pushed the fix to the ChMatlabEngine.h header.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/CABG_7cX7vPE3t8xmcWw8yKHhaM4JH0ciEq0rhLDBO85kgbcj%3Dg%40mail.gmail.com.