COVESA / capicxx-someip-tools

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

Cpp code generate failed #29

Closed love1angel closed 2 years ago

love1angel commented 2 years ago

fdepl file

import "platform:/plugin/org.genivi.commonapi.someip/deployment/CommonAPI-SOMEIP_deployment_spec.fdepl"
import "HelloWorld.fidl"
define org.genivi.commonapi.someip.deployment for interface commonapi.HelloWorld {
    SomeIpServiceID = 4660

    method sayHello {
        SomeIpMethodID = 3300
    }
}

define org.genivi.commonapi.someip.deployment for provider MyService {
    instance commonapi.HelloWorld {
        InstanceId = "test"
        SomeIpInstanceID = 2200
    }
}

logs

➜ helloworld ../commonapi_someip_generator/commonapi-someip-generator-linux-x86_64 -ll verbos ./fidl/HelloWorld.fdepl Executing CommonAPI SomeIP Code Generation...

Using Franca Version 0.13.1.201807231814 Error: SomeIP validation: Couldn't resolve reference to EObject 'MyService'. (file:/home/helianthus/dev_tools/helloworld/./fidl/HelloWorld.fdepl line : 11 column : 60) Error: SomeIP validation: Root 'provider' must have a name (file:/home/helianthus/dev_tools/helloworld/./fidl/HelloWorld.fdepl line : 11 column : 51) /home/helianthus/dev_tools/helloworld/./fidl/HelloWorld.fdepl contains validation errors !

love1angel commented 2 years ago

can somebody helps me? thanks

love1angel commented 2 years ago

the Cpp code generate someIP version is 3.2.0, the fdepl should be following like this

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