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
Related
I'm trying to start a Grails 4 application in Intellij, the project is configured with Java 8 and Gradle seems to be loaded correctly, but it gives me the following error:
error: Could not find or load main class org.grails.cli.GrailsCli
Is there any know method in which I can get around this problem?
First, check if the language level and SDK are correct (File > Project Structure > (Project/Modules) > Language Level)
From 360learntocode' blog post:
This might be due to the removal of some dependencies or libraries
from the application. Sometimes, while loading multiple applications
from IDE while downloading the library for a particular project other
libraries for another project might remove so this kind of error might
occurs for that project.
Let's first delete the build folder under the application.
Now, let's refresh the Gradle project. Here we are using IntelliJ
Idea, we can refresh the project as below
Image description:
Click Gradle on the right tab;
Select the project;
Click refresh.
After refreshing the project it will download the missing
dependencies. Then run the application which will resolve the problem.
We can also try cleaning the application.
If we are using the command line then type the following command to
clean the application.
grails clean
If we are using the IntelliJ idea then Ctr+Alt+G opens the command
window and use the following command.
clean
Now, re-run the app.
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
Recently I was trying to install Cordova onto my mac so I can compile for the iphone, but I ran into a problem. The option to create a Cordova project wasn't there on xcode. I looked online and saw that I needed to create the project through the terminal. I did this, but nothing was created as far as I can see.
On the terminal, after dragging the bin folder to the terminal I did: ./create /desktop/ios-program/ com.appname appname
Did I do something wrong? Thanks
here a complete guide is given to create phonegap environment in xcode
http://www.adobe.com/devnet/html5/articles/getting-started-with-phonegap-in-xcode-for-ios.html
if it is not enough than go for this
http://www.kendoui.com/blogs/archive/11-12-27/setup_your_phonegap_development_environment_on_mac.aspx
http://docs.phonegap.com/en/2.7.0/guide_getting-started_ios_index.md.html
These instructions are pretty clear, even if the directory tree you get after extracting the zip file is not exactly the one they show.
After installing all the requirements:
1. extract the content of phonegap-2.7.0.zip wherever you want
2. go to lib/ios/bin and run the create command with the suggested parameters.
3. open the finder and go to the directory you used as first parameter
4. doubleclick the file with extension xcodeproj to open XCode and the project will be automatically created
Make sure that you are inside \phonegap-2.7.0\lib\ios\bin before entering ./create command.
Refer the Blog Tutorial
I'm using Blackberry plugin for Eclipse.
I have just encountered a problem today.
I can't build any Blackberry project successful.
The error is:
Packaging project BlackBerryDVRRemote
C:\Eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\bin\rapc.exe -quiet codename=deliverables\Standard\5.0.0\BlackBerryDVRRemote deliverables\Standard\5.0.0\BlackBerryDVRRemote.rapc -sourceroot=D:\PHONG\BlackBerry WorkSpace\WorkSpace1\BlackBerryDVRRemote\src;D:\PHONG\BlackBerry WorkSpace\WorkSpace1\BlackBerryDVRRemote\res -import=C:\Eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\lib\net_rim_api.jar D:\PHONG\BlackBerry WorkSpace\WorkSpace1\BlackBerryDVRRemote\bin
Warning!: No entry points found
Warning!: No definition found for exported static routine: .main(String[])
Packaging project BlackBerryDVRRemote succeeded (took 0.932 seconds)
These Blackberry projects was built successful yesterday, but today is not.
In the "Bin" folder I don't see any *.class file.
I Right click on the project and choose propertiers-->Java build path, I see "Default output folder" is BlackBerryDVRRemote/bin.
I Right click on the project and choose "Run/Debug As Simulator/Device", I see no happen.
Please help me to fix it,
Many thanks !
When i restart eclipse, i see the following error:
Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
Exception stack tracke:
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at org.eclipse.swt.SWT.error(SWT.java:3770)
at org.eclipse.swt.widgets.Widget.error(Widget.java:463)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:336)
at org.eclipse.swt.widgets.Widget.getData(Widget.java:550)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:814)
at org.eclipse.jface.window.WindowManager.close(WindowManager.java:109)
at org.eclipse.ui.internal.Workbench$16.run(Workbench.java:930)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:927)
at org.eclipse.ui.internal.Workbench.access$15(Workbench.java:856)
at org.eclipse.ui.internal.Workbench$23.run(Workbench.java:1100)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.ja
Please help, thanks all !
thanks too: I have the same issue with Juno & BlackBerry resource editor.
By removing the project from the workspace and re-importing it, it works!
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 ....