How do I fix these errors in NodeMCU, which reports that multiple libraries were found for servo.h?
Multiple libraries were found for "Servo.h"
Used: C:\Users\username\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Servo
Not used: C:\Program Files (x86)\Arduino\libraries\Servo
exit status 1
'myservo' does not name a type
The NodeMCU boards use theire own librarys to controll servos. You can't use the normal servo library with the NodeMCU.
Related
I've read documentation and tried to get my OpenFL project to use an external swf library and I keep getting an error that it can't find the classes when I run the project.
As a test I added a swf that has an actionscript lib for using Twitter. I created a github project here https://github.com/matthewswallace/TestOpenFL
The error I get when running the project is the following.
src/Main.hx:7: characters 7-34 : Class not found : com.swfjunkie.tweetr.Tweetr
Error: Command failed with error 1
Swf library deals with graphics only, Any actionscript will be dropped, you need to port your actionscript classes to haxe and use them in your project directly ..
Hi I created a program using OpenCV in windows with visual studio. My program has two cpp files. Both of them include many library files. The main function is in detect.cpp file and the other file is lbp.cpp.
In windows the program runs just fine and can get every library files and header files. But when I tried to compile the program in Linux OpenCV it did not compile and gave me error. The lbp.cpp file cannot find opencl's function and data type. It gives me this error:
‘cl_command_queue’ was not declared in this scope
‘cl_mem’ was not declared in this scope
‘cl_int’ was not declared in this scope
There are many of them. Anyone has an idea how to solve them? I checked other sample filesin opencv OpenCl samples and used the same headers as they used. But my program just does not compile. Please help.
I am developing a lua library for Corona which contains code spread across files. I am using luac to generate a single bytecode file which I can share with other developers so that they can use my library easily and without looking at code. Problem is that I am getting "bad header in precompiled chunk" error. From searching around, I find that its because I need to compile for ARM.
What would be right approach for me here?
Lua bytecode is not portable neither across version, nor across platforms; see luac docs.
Update
If you are just trying to pack some files together you could see Squish.
If you need a real deploying system for Lua there is Luarocks.
I've spent the last hour or two trying to hunt this problem down and can't seem to get it right. I am using OpenCV with MS VS 2012 RC, and to this point it has worked quite well (one bug dealing with the newer Mat container, but fine otherwise). I have a previously written application I am trying to port (from GCC/G++), which used the cvblob.dll library from here. I have recompiled the cvblob library with VS2012 (my previous version was compiled with MinGW and worked flawlessly), and managed to create both a DLL and an import library .LIB.
The application compiles properly, but the one spot where I use the cvblob library is now my source of error, because the linker cannot find the symbol for the cvLabel function in the library. This is the complete error message I get from VS2012:
ConsoleApplication1.cpp
1> Generating Code...
1>imageinput.obj : error LNK2019: unresolved external symbol _cvLabel referenced in function "public: class std::vector,class std::allocator > > _thiscall ImageInput::getROI(class cv::Mat,class cv::Mat)" (?getROI#ImageInput##QAE?AV?$vector#V?$Rect#H#cv##V?$allocator#V?$Rect_#H#cv###std###std##VMat#cv##0#Z)
1>C:\Users\Jake\Documents\Visual Studio 2012\Projects\ConsoleApplication1\Debug\ConsoleApplication1.exe : fatal error LNK1120: 1 unresolved externals
I'm not certain whether this is a problem with the cvblob library itself, my current binary for it, or just the process I used to compile it. I will gladly furnish any information I can upon request. Thanks in advance for your advice!
You obviously didn't link needed library in project settings. Try to add all OpenCV/CvBlob libs in linker properties of your prooject. See docs.
Also look at this discussion.
Can anyone share how to use OpenCV with C++ SkeletalViewer sample ?
I am using OpenCV2.3 with with SkeletalViewer sample. However, I got the following errors while trying to create an image using cvCreateImage();
error LNK2001: unresolved external symbol _cvCreateImage C:\Users\Public\Documents\Microsoft Research KinectSDK Samples\NUI\SkeletalViewer - Copy\CPP\NuiImpl.obj SkeletalViewer
error LNK1120: 1 unresolved externals C:\Users\Public\Documents\Microsoft Research KinectSDK Samples\NUI\SkeletalViewer - Copy\CPP\Debug\SkeletalViewer.exe SkeletalViewer
Thanks a lot!
It sounds like you haven't added the library to your project. Right-click your project and go to Properties. Then go to Linker >> General >> Additional Library Directories, set this to
"$(YOUR_OPENCV_ROOT)\lib". Next, go to Linker >> Input >> Additional Dependencies and make sure opencv_core230.lib (or opencv_core231.lib, which ever 2.3.x version you are using) is in there.
Also, I would highly suggest using the C++ interface as it has more functionality than the C interface especially in OpenCV 2.3.x.
Hope that helps!