Gtest Running Issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Gtest Running Issue

1,164 Views
Rajshri
Contributor I

I tried running gtest on S32 Design Studio with S32DS application project with processor "CPU_S32K144HFT0VLLT" but when I add "lgtest_main" it is throwing an error "libgtest_main.a file format is not recognised".

Please provide solution on this or suggest any other to run gtest on S32DS.

0 Kudos
Reply
5 Replies

1,115 Views
Rajshri
Contributor I

Thanks for the solution but I tried same but still its not working.

Can yo please suggest any solution to run gtest in S32Ds.3.5 for c code.

Thanks & Regards,

Rajshri

 

0 Kudos
Reply

1,105 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Rajshri,

Is DS displaying the same error? 

0 Kudos
Reply

1,077 Views
Rajshri
Contributor I

Hi @Julián_AragónM,

Yes, It is displaying same error.

Can you please provide me steps to integrate gtest with S32DS for C Code ?

Thanks & Regards,

Rajshri

0 Kudos
Reply

1,067 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Rajshri,

This seems to be an importing problem.

I would recommend to instead create an application project from this community post: HOWTO: S32 Design Studio - Create a New Application Project, and add your content to this base project, adding the static library from the previous example I shared and trying to compile it.

Custom implementation should come from customer's side, as it is out of this community's scope of help. I apologize for any inconveniences this may cause.

Best regards,
Julián

0 Kudos
Reply

1,141 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Rajshri,

It seems this is a problem linked with the static library (.a extension). Here is a community post explaining how to add a static library:

Please, try to perform the suggested procedure from above. If you are not able to get the project working let us know to provide further support.

Best regards,
Julián.

0 Kudos
Reply