COVESA / capicxx-someip-tools

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

Cpp Code Generation Failed #33

Closed vamsiKaredla closed 1 year ago

vamsiKaredla commented 1 year ago

i'm trying to generate code but i'm getting 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/mob/Documents/vsomeip/fidlExamples/./fidl/HelloWorld.fdepl line : 12 column : 60)

Error: SomeIP validation: Root 'provider' must have a name (file:/home/mob/Documents/vsomeip/fidlExamples/./fidl/HelloWorld.fdepl line : 12 column : 51)

/home/mob/Documents/vsomeip/fidlExamples/./fidl/HelloWorld.fdepl contains validation errors !

This is the content of fdpel 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 = 123

    }

}

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

    instance commonapi.HelloWorld {

        InstanceId = "test"

        SomeIpInstanceID = 22136

    }

}

i used this generator to generate the code https://github.com/COVESA/capicxx-someip-tools/releases/tag/3.2.0.1

someone please help

dibpinto commented 1 year ago

I did the same test using the indicated HelloWorld.fdepl file and I was not able to generate those errors. The test was done using version 3.2.0.4 and the following command: ./commonapi-someip-generator-linux-x86_64 -d <output_directory> <input directory> (./commonapi-someip-generator-linux-x86_64 -d home/test/outputFiles/source-gen /home/test/HelloWorld.fdepl)

Can you please indicate which command did you used?