Syntax error shows running the Demo

27 views
Skip to first unread message

JoJo

unread,
Jul 6, 2020, 1:06:27 AM7/6/20
to ProjectChrono
Hi, i am new to Chrono.

Actually, i am trying to use a code named GPUSPH, and it requires Chrono. 
But i got into some trouble when complie that code, then i try to run the Demo in Chrono to find the problem.
When i run the Demo "sh demo_CH_archive", it says:

demo_CH_archive: 2: demo_CH_archive: Syntax error: word unexpected (expecting ")")

and same message when running other demo 

Can anyone help me
and my systems are:

ubuntu  18.04 LTS
g++       7.5.0
eigen3  3.3.4_4


Radu Serban

unread,
Jul 6, 2020, 1:23:42 AM7/6/20
to projec...@googlegroups.com

The Chrono demos are not shell scripts.  Run them like './demo_CH_archive'.

--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 view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/e67a2510-b65d-4c43-888b-035bfd7fccddo%40googlegroups.com.

JoJo

unread,
Jul 6, 2020, 1:36:04 AM7/6/20
to ProjectChrono
Thanks for the answer, it solve the problem.
but i got this error now running demo_CH_archive

2222.png



在 2020年7月6日星期一 UTC+8下午1:23:42,Radu Serban写道:

The Chrono demos are not shell scripts.  Run them like './demo_CH_archive'.

--Radu

On 7/6/2020 7:06 AM, hyx...@gmail.com wrote:
Hi, i am new to Chrono.

Actually, i am trying to use a code named GPUSPH, and it requires Chrono. 
But i got into some trouble when complie that code, then i try to run the Demo in Chrono to find the problem.
When i run the Demo "sh demo_CH_archive", it says:

demo_CH_archive: 2: demo_CH_archive: Syntax error: word unexpected (expecting ")")

and same message when running other demo 

Can anyone help me
and my systems are:

ubuntu  18.04 LTS
g++       7.5.0
eigen3  3.3.4_4


--
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 projec...@googlegroups.com.

JoJo

unread,
Jul 6, 2020, 1:39:10 AM7/6/20
to ProjectChrono
the text seems to be too small, i paste them here

loaded object is a myEmployee?     :1
loaded object is a myEmployeeBoss? :1
ERROR: Invalid number after '2'


在 2020年7月6日星期一 UTC+8下午1:36:04,JoJo写道:

Radu Serban

unread,
Jul 6, 2020, 3:38:14 AM7/6/20
to projec...@googlegroups.com

I can confirm this issue with demo_CH_archive.  The XML serialization/deserialization is buggy.  It works on Windows (with VS), but not on Ubuntu with GCC. We will look into this.

Are the other demos working fine for you?

--Radu

To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/402cdb31-0ef4-4564-8a4f-56d3092a1b79o%40googlegroups.com.

JoJo

unread,
Jul 6, 2020, 3:55:40 AM7/6/20
to ProjectChrono
i just run buildsystem, fine, and i will report if something wron
Thanks for the repply

在 2020年7月6日星期一 UTC+8下午3:38:14,Radu Serban写道:
Reply all
Reply to author
Forward
0 new messages