5

I am trying to run GoogleTestLibrary on QNX ?

But i am getting this error message?

ldd:FATAL: Could not load library libgtest.so.0

Firstly i build googtestLibrary on qnx virtual machine with make command and it genarates lib files.

And then i added these libs in qnx extra library paths. Also i added extra include file for GoogleTestLibrary. And then i build my qnx project on QNX momentics ide and it build successfully. And then i tried to run but it gave me the ldd:FATAL: Could not load library libgtest.so.0 that error.

I included all libraries into the projects but i did not get success run. Does anyone encourage the that problem?

emres
  • 83
  • 1
  • 1
  • 6
  • try to add as many information to your question as possible; what's your setup, what steps did you take ... – m02ph3u5 Oct 13 '15 at 10:29
  • Okay, firstly i build googtestLibrary on qnx virtual machine with make command and it genarates lib files. And then i added these libs in qnx extra library paths. Also i added extra include file for GoogleTestLibrary. And then i build my qnx project on QNX momentics ide and it build successfully. And then i tried to run but it gave me the ldd:FATAL: Could not load library libgtest.so.0 that error. @m02ph3u5 – emres Oct 13 '15 at 10:38
  • 1
    You should add that to your original question instead of the comment section so people see it at a first glance. – m02ph3u5 Oct 13 '15 at 10:43

2 Answers2

2

I found the solution. I copied libgtest.so.0 library to /usr/lib folder in target machine.

And i restarted to target machine. After that i can run my projects. Thanks for advices.

emres
  • 83
  • 1
  • 1
  • 6
0

Your project built successfully so paths for libraries in IDE are right.

You have an issue with run of binary therefore try to put built libraries into directory where binary is located.

Or you may use LIBRARY_PATH variable, like this:

C:\> LIBRARY_PATH=C:\projects\GoogleTestLibrary\ application.exe
Dmitry Tabakov
  • 374
  • 1
  • 7