I am working on a project using a Raspberry Pi 3, I am trying to control NeoPixel leds and a lcd display with it so I used rpi_281x and wiringPi libraries to do it. My issue is that I dont know how to add the rpi_281x library to the builder of Geany, I did add wiringPi library by writting -lwiringPi but that didnt work for the other library, even using the full path, it keeps saying that it could not be found. THe rpi_281x library came with an scons builder so I dont know if it has something to do with my issue. Here are the links to both libraries.
rpi_281x: https://github.com/jgarff/rpi_ws281x
WiringPi: https://git.drogon.net/?p=wiringPi;a=summary
I would appreciate any suggestion for an alternative method to build this as detailed as possible. The issue is not with WiringPi, basically I need help with adding the rpi_281x to Geany-s builder. The code does get compiled, but not built.
Thanks
Related
So the problem is TinyGPS++.h keeps saying "no files or Directory". I have added the library manually, did not work. I used Platformio to add the library using there manager, Both of them did not work. TinyGPS.h works but not TinyGPS++ witch is the one I need for my project. Any idea what's going on?
Follow the tutorial Installing an Arduino Library - learn.sparkfun.com
So I don't know what fixed it. I came back to the project today and it was not reded out, and the library is magically working. The only thing I did was play video games, and update windows. Eh Go figure. Thanks for the advice.
I need help with installation pthreads to qt.
the thing is I'm making project with winpcap and pcapplusplus wrapper for it. but it still needs pthreads. I have pthreadgc2.dll missing, and I cant figure out how to connect it to my qt project. Basically, program compiles, but crashes once I try to start it in qt. So, I dont really need the pthread and qthread were distributed with qt, I need exactly these libraries: http://ftp.ntua.gr/mirror/mingw/MinGW/Base/pthreads-w32/pthreads-w32-2.9.1/pthreads-w32-2.9.1-1-mingw32-dev.tar.lzma
but there are no dll files either, and I cant understand how to build project with it.
and yes, I'm sure which dll I need, I checked it with dependency walker, but I dont know where to find it. Hope to your help, folks.
Not all downloadable versions of MinGW work well with pthreads.
There is:
https://sourceforge.net/p/mingw-w64/wiki2/Compile%20pthreads/
that does but I would recommend using TDM-gcc instead, http://tdm-gcc.tdragon.net/.
It is more actively maintained and pthreads work out of the box.
You can then simply link with -lpthread in your linking stage
I'm using the ArUco library with OpenCV (more information here) but I can't find a way to build and run a program from scratch.
Once I installed the library I have access to different examples but if I want for instance to create a new file and add the library headers inside it, how can I compile and run it ? (with a command line or IDE, anything is fine)
Thank you
I sent and email to the library's author and he added clear instructions at the end of the project webpage :)
It seems you need to learn how to use your IDE's, compilation tools and general compilation basic stuff. This is not a question related to Aruco, or mostly any other tags you have set.
Try to lean CMake first, 'cause Aruco compilation is based on CMake: http://www.cmake.org/
You can start by just editing the aruco_simple example.
For a IDE that works right away with CMake you can try either Qt Creator >3.1 or KDevelop. Both free.
The first thing I did was to refer to tutorial on FFmpeg site.
I set up MSYS+MinGW64, I cloned all the relevant pre-requisites (i.e OpenSSL, x264, rtmpdump),
I successfully cross-compiled them all. I ran the configure for FFmpeg, and I was able to cross-compile that as well. And my statically linked ffmpeg.exe works to my satisfaction.
In Eclipse I was able to create a project, load up the source code, navigate it, make some changes, even compile and step-through debug. The problem I am having is with the Eclipse design-time error, and I think this is more of an Eclipse/C++ thing than FFmpeg.
For example in ffmpeg.c I find this error "Field 'bitstream_filters' could not be resolved" at this line:
AVBitStreamFilterContext *bsfc = output_streams[i]->bitstream_filters;
that output_streams is of type
OutputStream **output_streams
and when I try to open the declaration for OutputStream Eclipse gives me the option of two locations. Obviously Eclipse is not sure which of these declarations it is, hence the "could not be resolved" error. OutputStream is defined in the following 2 files
ffmpeg.h
libavformat/smoothstreamingenc.c
(hmm nice to know FFmpeg can do smooth streaming...) but anyway the correct definition would of been the one in ffmpeg.h.
So... the whole goal of getting the source into an IDE was so that I could enjoy the benefits of such things like intelisense. What can I do in Eclipse to set some sort of order or rule as to how it should resolve types in cases where the names clash like this?
I am new to the XCode environment so apologies if this sounds trivial.
I am trying to use a third party library using for OpenCV that helps me do some blob analysis, CCL etc. Hosted here
I have searched a lot but there doesn't seem to be much documentation on how to go about adding and using these new libraries. I am using XCode 4.5.2, OpenCV 2.4.2.
When I simply add all the header files to the project folder and #include them in the source code, it fails to compile. I have also tried adding the "Header Paths" but it doesn't help. What am I missing?
I have tried to follow the instructions (compiling it using the terminal but it doesn't compile too) I am not clear on how or when exactly to use CMAKE.
Any help will be appreciated. Thank you.
I would suggest you using CvBlob on google code which is different from the one on willowgarage, I have got recently confused with this so take a look at this question for alternative blob analysis libraries.
Moreover, CvBlob has also a good support community here. (Search on "[cvblobslib]" or on "[blob] [opencv]")
Try this: cvBlob: OSX installation
Once you get it compiled, you need to include the library under Link Binary with Libraries in Build Phases. (This screenshot shows the core, imgproc, and highgui libraries. Your cvBlob library would go in the same place.)