rodrigo455 / jtnc-interfaces

JPEO JTRS Standard APIs REDHAWK IDL Projects
2 stars 2 forks source link

IDL project i.e jtnc-interface integrating with Yocto project. #2

Open NayanaAnand opened 3 years ago

NayanaAnand commented 3 years ago

Hi,

I am trying in include jtnc-interface into Yocto project build as a IDL project and i have already integrated meta-redhawk-sdr into Yocto build and now i am trying in integrate jtnc-interface as IDL interface into redhawk-core-framework.

Steps Fallowed:

While running yocto build, i am facing 2 errors as shown below. image

Error : src/cpp/redhawk/MHAL/mhalSK.cpp: At global scope: | src/cpp/redhawk/MHAL/mhalSK.cpp:13:43: error: 'omniORB_4_2' was not declared in this scope | static const char* _0RL_library_version = omniORB_4_2;

src/cpp/redhawk/MHAL/mhalDynSK.cpp: At global scope: | src/cpp/redhawk/MHAL/mhalDynSK.cpp:7:47: error: 'omniORB_4_2_dyn' was not declared in this scope | static const char* _0RL_dyn_library_version = omniORB_4_2_dyn;

Can you please help me out to resolve above issue. Please refer the image attached for error.

Regards, Nayana

NayanaAnand commented 3 years ago

@rodrigo455,

Can you please help me out to resolve above issue?

Regards, Nayana

NayanaAnand commented 3 years ago

Hi,

As i created IDL project from Redhawk IDE which is running on Centos7 and the variable omniORB_4_2 is defined in given below path (/usr/include/omniORB4/omniInternal.h ) As shown below.

omniInternal.h:274:extern _core_attr const char omniORB_4_2; omniInternal.h:275:extern _dyn_attr const char omniORB_4_2_dyn;

But, the IDL project now integrating with Yocto build which is running on Ubuntu14.04 is searching for "omniORB_4_2" and "omniORB_4_2_dyn" which is not available in ubuntu. As i got, same file in ubuntu with different versions shown below.

**omniInternal.h:82:extern _core_attr const char* omniORB_4_1; omniInternal.h:83:extern _dyn_attr const char* omniORB_4_1_dyn;** Can you @rodrigo455 suggest which variable i need to modify so that, even in ubuntu yocto should read which available in that OS. Regards, Nayana