Hi Davide,
the reason for this error is that you provided a path for Irrlicht that 
contains backslashes '\'. You need to replace them with forward slashes '/' 
since the backslash is intended as an escape character.
Before building any project (i.e. using the 'template_project' that you can 
find in the repo) make sure to build the Chrono library properly.

I think that after this fix you should be good to go.

Dario

Il giorno mercoledì 18 ottobre 2023 alle 10:30:47 UTC+2 
[email protected] ha scritto:

> Hi Dario,
> thank you very much for the suggestion! I followed your indications and 
> now it seems to work. Anyway, I provide to you the right CMake log (I 
> copied and pasted in the *Cmake log.txt* file just to be more tidy) and 
> *CMakeCache.txt* file.
> However, i tried to build a project following the guide on the website, 
> but when i configure Cmake it gives me the following error:  
> CMake Error at 
> C:/Users/USER/Documents/chrono_build/cmake/chrono-config.cmake:298 (list):
>
> Syntax error in cmake code at
>
> C:/Users/USER/Documents/chrono_build/cmake/chrono-config.cmake:298
>
> when parsing string
>
> C:\Users\USER\Documents\libraries\irrlicht-1.8.5/include
>
> Invalid character escape '\U'.
> Call Stack (most recent call first):
> CMakeLists.txt:65 (find_package)
> I apologize for my insistence, but I have to do my master thesis using 
> this program and I'm trying to figure out how to use it properly.
> Thank you for your support!
>
>
> Il giorno mar 17 ott 2023 alle ore 23:11 Dario Mangoni <
> [email protected]> ha scritto:
>
>> Hi Davide,
>> probably I misguided you: by sending the CMake log I meant to copy and 
>> paste all the text that you find below the 
>> *Configure|Generate|OpenProject* buttons.
>> Moreover, it would be great if you can also attach the *CMakeCache.txt* 
>> file that you can find in your *chrono_build *folder.
>>
>> Anyway, few suggestions:
>>
>>    - except if you really need to cosimulate vehicles or other very 
>>    complex/heavy simulation *don't worry about the missing MPI at all*: 
>>    the warning you are getting shouldn't compromise the basic 
>> functionalities 
>>    of Chrono core modules;
>>    - I would recommend to update Irrlicht to 1.8.4
>>    - did you intentionally unflagged BUILD_SHARED_LIBS? By default it 
>>    should be set and for the time being *we do not recommend to unflag 
>>    it* except if you really know what you are doing and/or you strongly 
>>    need Chrono as static library
>>
>>
>> Il giorno martedì 17 ottobre 2023 alle 17:55:44 UTC+2 
>> [email protected] ha scritto:
>>
>>> Hi Dario,
>>> I am an absolute beginner and I apologise if I have missed something 
>>> obvious. I followed the installation as you mentioned in the link, but i'm 
>>> having some troubles:
>>> - Although i installed Microsoft MPI,  it doesn't found it during the 
>>> installation. It gives me the following message: CMake Warning at 
>>> src/chrono_vehicle/cosim/CMakeLists.txt:9 (message):
>>>
>>> Chrono::Vehicle cosimulation support requires MPI, but MPI not found;
>>>
>>> - I wrote the correct directory for the Irrlicht library, but it gives 
>>> me the following warning:  CMake Warning at 
>>> src/chrono_irrlicht/CMakeLists.txt:144 (TARGET_LINK_LIBRARIES):
>>>
>>> Target "ChronoEngine_irrlicht" requests linking to 
>>> directory "C:/Users/USER/Documents/libraries/irrlicht-1.8.2". Targets may 
>>> link only to libraries. CMake is dropping the item.
>>>
>>> In the  CMake log, I flagged the same module proposed in the 
>>> installation guide. 
>>>
>>> Thank you in advance for your help!
>>> Il giorno martedì 17 ottobre 2023 alle 10:51:27 UTC+2 
>>> [email protected] ha scritto:
>>>
>>>> Hi Davide,
>>>> the wording "I downloaded the tutorial demo_CH....." sounds a little 
>>>> awkward to me: you cannot download just a single file and compile it. So 
>>>> maybe it's really a stupid question but: did you compile the Chrono 
>>>> library 
>>>> first?
>>>> Did you follow the install instructions? 
>>>> https://api.projectchrono.org/development/tutorial_install_chrono.html
>>>> If so, can you send us the CMake log? 
>>>>
>>>> Dario
>>>>
>>>> P.S. the CMake log is the one at the bottom here:
>>>> [image: Window-20231017-105049.png]
>>>> Il giorno martedì 17 ottobre 2023 alle 10:35:47 UTC+2 
>>>> [email protected] ha scritto:
>>>>
>>>>> Hi,
>>>>> I've been using the program for a couple of weeks, and I'm still quite 
>>>>> inexperienced. I downloaded the tutorial "demo_CH_buildsystem.cpp" but 
>>>>> when 
>>>>> I try to compile it in Visual Studio, it gives me the following error: 
>>>>> 'ChLinkMotorRotationSpeed.h': No such file or directory. I can't 
>>>>> understand 
>>>>> the reason for it although i've included it. Could someone help me?
>>>>>
>>>>>
>>>>> -- 
>> 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/79a0a961-70ea-4b71-a541-8328bb457568n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/projectchrono/79a0a961-70ea-4b71-a541-8328bb457568n%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/0128024f-a561-454a-ab8d-33923aab1aebn%40googlegroups.com.

Reply via email to