LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-14-2024, 03:13 PM   #1
hambonius
LQ Newbie
 
Registered: Apr 2024
Posts: 1

Rep: Reputation: 0
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
 
Old 04-14-2024, 03:29 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
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.
 
Old 04-14-2024, 03:35 PM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
The Programming forum. Moving thread there now.

Post the errors you are seeing.
 
Old 04-15-2024, 10:21 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
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.

Last edited by dugan; 04-15-2024 at 10:23 PM.
 
Old 04-18-2024, 09:32 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,662
Blog Entries: 4

Rep: Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting error while compiling gcc(c-compiler) cross compiler shubhampushpkar Linux From Scratch 4 08-05-2019 12:12 AM
i have ubuntu 16.04 and gcc 5.1.3 default compiler but i need want gcc 4.4 compiler srinivas_k Linux - Newbie 4 07-06-2016 10:29 AM
LXer: GCC 4.9 vs. GCC 5.1 vs. GCC 6.0 SVN Compiler Benchmarks LXer Syndicated Linux News 0 06-08-2015 01:00 PM
[SOLVED] [Question] How to compile a gcc compiler for another machine which got no c compiler on it shone27 Linux - Newbie 9 09-28-2011 07:32 PM
LXer: Compiler Benchmarks Of GCC, LLVM-GCC, DragonEgg, Clang LXer Syndicated Linux News 0 11-08-2010 05:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration