Gtest Running Issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Gtest Running Issue

1,806 次查看
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 项奖励
回复
5 回复数

1,757 次查看
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 项奖励
回复

1,747 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Rajshri,

Is DS displaying the same error? 

0 项奖励
回复

1,719 次查看
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 项奖励
回复

1,709 次查看
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 项奖励
回复

1,783 次查看
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 项奖励
回复