unable to use imported javac library files - javacv

i have installed opencv-2.4.10 and javacv according to https://github.com/bytedeco/javacv link.
I am unable to use various commands from the tutorials or resources from the internet. I am confused that if this error is due to version problem ( opencv-3.0.0) or i haven't imported the .jar files properly.
Like the code below
frame = converterToMat.convert(processedMat);
i cannot use "convertToMat" and other commands like cvCvtColor etc.
i use ctrl+shift+o for importing, how to we import the entire library before even using it?? i use eclipse IDE.
please help

Related

plugin was built with a different version of package crypto/internal/boring​

I have a code in golang that is using buildmode plugins. I am building the main program and the plugins inside the same image (goboring/golang:1.15.8b5) and one after the other. When running the main program, as soon as it tries to load the plugins, I get the error:
E0319 14:27:38.417362 34123 daemon.go:639] loadVendorPlugins(): fail to load plugin /plugins/my_plugin.so: plugin.Open("/plugins/my_plugin"): plugin was built with a different version of package crypto/internal/boring​
This does not happen if I change the image to golang:1.15. Any idea why a different version for a package is found even if both are built in the same image? Why the base image might have an impact on this?
Apparently, when using the buildmode=plugin, it is not strange to see this problem. The solution is to add the flag -trimpath to the go build, as explained here: https://github.com/golang/go/issues/27751#issuecomment-593082117

wxwidgets platform.h error: no such file or directory wx/setup.h

I am using Code::Blocks with wxwidgets and I have include and lib folders under Document\wxwidgets. I am very new to c++ libraries. In Code::Blocks project initialization, I entered the location for wxwidgets. Then in setting/global enviornment variables I entered in base the Document\wxwidgets again. Still, I am not able to run the app. It shows the error in the include/wx/platform.h file where it says
C:\Users\Programming coder\Documents\wxwidgets\include\wx\platform.h|148|fatal error: wx/setup.h: No such file or directory|
I am not able to solve this and would appreciate some help. Also I checked and the wx folder does not seem to be there in the location. I don't know if that is normal.
Also, I downloaded the headers(include) from the wxwidgets github repo download page, wxWidgets-3.1.1-headers.7z. Any help appreciated.
Also, I am aware some questions exist already, but their problems are in different because most are using linux. Also I am using Code::Blocks IDE.
You need to build wxWidgets itself before building the applications using it. Its build process will create the setup.h file which is currently missing.
Note that, in principle, you could also use precompiled binaries, but in this case you must use exactly the same compiler as was used for compiling them, i.e. TDM gcc.

Cannot iimport org.gicentre.geomap.*

I am using processing 3.And I am trying to add the gicentre geomap library to my processing libraries. I downloaded the geomap library from https://www.gicentre.net/geomap/. And extract it and move it under Processing/libraries. After this, I tried to run an example from this library. It just tells me that
import org.gicentre cannot be resolved. And GeoMap class does not
exist.
Any idea? Thanks!
See my answer here: Processing cannot find library
If you're using the Processing editor, the easiest way to install a non-standard library is to just drag the .jar file onto your Processing editor. This will move the .jar file into your sketch folder, and you can use it just like you can use any other library.

How to install "javax.media" library in processing 3.3

I keep on getting the following error in processing 3.3:
The package "javax.media" does not exist. You must be missing a library.
Please suggest a solution for the same.
Thanks in advance!
The javax.media package is not a standard Java package. You can check by looking for it in the Java API.
So you have to track down the jar file that contains the javax.media package. Google is your friend here, but here are a couple promising results:
Java Media API: java media api download
Eclipse missing imports (javax.media.* and com.sun.media.*)
Once you've found the jar file, you can simply drag it onto your Processing editor to use it in your Processing code.

UnsatisfiedLinkError in Processing

I have recently overcome this problem using eclipse and would like to use the same .dll in the Processing.org environment. Here is my recent post on Stackoverflow.
The .dll I want to use is in the C:\Windows\SysWOW64\\ folder, but I am still getting an UnsatisfiedLinkError. I have tried the following solutions with no success:
Adding the .dll to the 'code' folder of the sketch
Adding C:\\Windows\\SysWOW64\\foo.dll to the Path environment variable
Changing the Native.loadLobrary parameter in my code from C:\\Windows\\System32\\foo.dll to C:\\Windows\\SysWOW64\\foo.dll
To get this working in eclipse, I added a Native Library Location under the Libraries tab in the Java Build Path Properties, although I didn't think it should have been necessary.
I would be grateful for any help or suggestions.

Resources