How can I fix QNX ldd:FATAL:Could not load library XXXX.so.0? - fatal-error

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?

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.

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

Related

QNX momentics linked source files not compiling

I am creating a QNX port for a Linux application. As a test, i copied all source code and header files into /src/ directrory and built the code. the binary was created, and I was able to execute on target VM. but now I have to create the momentics project inside the project folder, without altering or creating duplicate copies of existing source files.
I found that I can use linked resources. So I followed steps provided here and could add the file to project.
but when I compile the project, it is not taking the linked files.
As one can clearly see the process is directly going to linking stage.
but if I add a new cpp file without linking, only that particular file is getting compiled, not the linked file.
only the new main.cpp is getting compiled.
Can anyone help me to get this project built, only using linked resources?
I was able to use IDE for compiling my writing a Makefile and importing it to IDE.

How to include a own libary into the toolchain(SDK) for an embeeded Linux generated by Yocto?

I am looking for an example where is shown how to include an own library into the toolchain.
Let's call the library "myLib". For it I created an recipe "myLib.bb" and added:
BBCLASSEXTEND = "native nativesdk"
In my "local.conf" I added:
IMAGE_INSTALL_append = " myLib"
When building the SDK by:
$ bitbake myTarget -c populate_sdk
It produces a installer for the SDK and two manifest files. "myLib" is only included at the target manifest and not on the host. How can I include myLib on the host system?
The idea is, that a other person can build software on his system without the Yocto system. Only by using the toolchain he can generate binaries, which can be transferred and executed at the evalboard.
As long as your library myLib is installed into the image, it's supposed to be part of your generated SDK. Which you also say that it is, at least as part of the target manifest.
Ensure that you install the required header files for your library, then you should be able to cross-compile against your library.
Do you need to use myLib on the developers build machine? Otherwise, why do you want to have it added to the nativeskd part? (I.e. the host manifest). This is for applications that needs to run on the host machine, i.e. the cross-compiler, code generators etc.

Geo libaries (i.e .a files ) are Missing in ShapeKit project for iphone

I downloaded shapekit for GeoWKB/WKT format to show in MapView for iOS from github, but .a files are missing in it.
Can anyone help me on this?
Thanks in Advance!
Read through the Github page there are instructions to build Shapekit. Please follow them.
ShapeKit depends on GEOS and PROJ. There is a build script in lib_src which will automate downloading and building universal libraries for both ARMv7 and x86 (simulator) and will copy the libraries and headers to the ShapeKit library directory. To use it, simply run the build_libs.sh script in the lib_src directory to install the libraries.

Ubuntu:NetBeans:OpenCV:Shared library not found

I am using OpenCV 2.3.1 with C++ on NetBeans 7.1 on Ubuntu 11.04 (Gnome). When I add the call
cvCreateSubdivDelaunay2D
and try to run the program in Debug mode I get the error message
/home/peter/NetBeansProjects/ArtifactImgFromCellFile/dist/Debug/GNU-Linux-x86/artifactimgfromcellfile: error while loading shared libraries: libopencv_calib3d.so.2.3: cannot open shared object file: No such file or directory
This despite the fact that I have libopencv_calib3d.so.2.3 in
/home/peter/OpenCV-2.3.1/lib
On NetBeans I went to
Properties:Linker:Run Time Search Directories
and added
/home/peter/OpenCV-2.3.1/lib
but that did not fix the problem.
Any assistance would be greatly appreciated,
Peter
In Netbeans you explicitly also need to link the library as follows.
Right click the project and open properties.
Go to Build -> Linker
Go to Libraries -> Add library file.
Browse to where your library is, i.e. the .so file. In your case it should be at /home/peter/OpenCV-2.3.1/lib/libopencv_calib3d.so

How to build muPDF for android (Need help)

i've been working on this for a while now but i'm still stuck. This is what i've done...
Installed Eclipse
Installed SDK, NDK
Created a project from an existing source... which i browsed to muPDF/android
Then i installed Cygwin to build the project
I used ndk-build to build the project by cygwin
Then i got an error that says ".../Downloads/mupdf-0.8.165/android/jni/mupdf.c:11:19: error: mupdf.
h: No such file or directory"
I've been finding a way to fix this but it keeps on having other new problems after and after. so i would like to ask for your help... plz
Thanks in advance... Best regards, Sirisub
In the directory above there is a script called build.sh that runs the Android.mk and other makefiles; all the locations in those makefiles are set to be run from that location.
However, there are lots of other problems, not all of which I've resolved yet; quick hints, though, you need the third-party libs like jpeg and so on in a directory called "thirdparty" in the same source location as the rest of mupdf (so as siblings of the android subdirectory) and some of the libs need you to produce config headers to make everything work!
I'm currently trying to work out how to link it all ....

Resources