COVESA / capicxx-someip-tools

Common API C++ SOMEIP tooling
Mozilla Public License 2.0
76 stars 55 forks source link

Failed to generate from HelloWorld.fdepl by commonapi_someip_generator-3.2.0.1 #18

Closed bum2free closed 3 years ago

bum2free commented 3 years ago

Downloaded binary from https://github.com/GENIVI/capicxx-someip-tools/releases

The HelloWorld.fidl and HelloWorld.fdepl are original from "https://github.com/GENIVI/capicxx-someip-tools/wiki/CommonAPI-C---SomeIP-in-10-minutes"

Exeucute command as:

commonapi-someip-generator-linux-x86_64 ./HelloWorld.fdepl

Got the following Error:

Executing CommonAPI SomeIP Code Generation...                                                                                                               

Using Franca Version 0.13.1.201807231814                                                                                                                    
Error: SomeIP validation: Couldn't resolve reference to EObject 'MyService'. (file:/home/eric/Data-1/CommonAPI/idl/./HelloWorld.fdepl line : 12 column : 60)
Error: SomeIP validation: Root 'provider' must have a name (file:/home/eric/Data-1/CommonAPI/idl/./HelloWorld.fdepl line : 12 column : 51)                  
/home/eric/Data-1/CommonAPI/idl/./HelloWorld.fdepl contains validation errors !              

Is there anything wrong?

THX~

bum2free commented 3 years ago

Checked that an older versoin(3.1.12) works, so there must be some issue with the latest one

bum2free commented 3 years ago

Finally resolved: https://github.com/GENIVI/capicxx-someip-tools/wiki/CommonAPI-C---SomeIP-in-10-minutes

define org.genivi.commonapi.someip.deployment for provider MyService { ...

should be changed to: define org.genivi.commonapi.someip.deployment for provider as MyService { ...

might be due to Franca Gramma changed....

Vitolearns commented 1 year ago

Thx a lot for sharing this solution!

theLook2047 commented 3 months ago

Thank you x 3000 ^^