LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   gcc compiler advice? (https://www.linuxquestions.org/questions/programming-9/gcc-compiler-advice-4175736020/)

hambonius 04-14-2024 03:13 PM

gcc compiler advice?
 
Hi,

Where is the best place to post questions about compiling and using a C package with the gcc compiler?

I am trying to make use of https://github.com/F6HQZ/rotary-enco...r-raspberry-pi but am baffled by error messages that I get at compile time.

Suggestions for a good resource forum for such things?

Thanks,

Brian H.
Uxbridge Ont

teckk 04-14-2024 03:29 PM

There are 2 files there. rotaryencoder.c and rotaryencoder.h It also needs:
Code:

/* rotaryencoder.c :
 * Just another library for rotary encoders on Raspberry Pi.
 * Needs its rotaryencoder.h file companion and "wiringPi" LPGLv3 lib.
 * V.1.1.0
 */


Show what you are doing, the errors that you are getting. Do you have wiringPi lib instlalled?

No one will be able to help without a lot more info.

rtmistler 04-14-2024 03:35 PM

The Programming forum. Moving thread there now.

Post the errors you are seeing.

dugan 04-15-2024 10:21 PM

This library does not look promising. Look for something else to use

Let's see now:

* last updated 9 years ago
* license filed is named "read me license"
* readme looks like the kind of gibberish produced by online translators
* issue in the tracker reporting "hundreds" of compilation errors

Also, the dependency mentioned in the comments has been taken offline.

sundialsvcs 04-18-2024 09:32 AM

As is described in various "stickies," in order to get a meaningful answer here you must post a meaningful question. "What are those 'baffling messages?'" How exactly are you attempting to compile it? And, so on.

Particularly in the case of robotics, libraries are extremely important. Because, these are where the "hardware drivers" come from, and maybe some of the programming features that you are taught to rely on. It is very likely that you can simply "Google it," because most such problems endlessly repeat themselves.


All times are GMT -5. The time now is 03:53 AM.