LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-14-2011, 02:51 PM   #1
STR00G
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Rep: Reputation: 0
Question how to install or add avr library on suse


hi try to compile code where start line is

#include <avr/io.h>
#include <util/delay.h>
#define DS_PORT PORTC
#define DS_PIN 0

and it gives me
fatal error: avr/io.h: No such file or directory
compilation terminated.

so i need avr/io.h library so please help how to add libraries in opensuse
 
Old 01-14-2011, 03:06 PM   #2
cin_
Member
 
Registered: Dec 2010
Posts: 266

Rep: Reputation: 23
avr-libc

Here is the official AVR libc homepage :: http://www.nongnu.org/avr-libc/

You can download the tarball or binaries there. And compile the library yourself...

Or with OpenSUSE you open run, ALT-F2, and type yast. Then you can search for avr. It seems the only package in the official repository is avrdude, and my guess is it will also load the avrlibc as I assume avrdude would have an avrlibc dependency, and so load avrlibc, but I don't know.

Or you can look for a build of avr-libc :: https://build.opensuse.org/package/s...olchain%3Aavr#
Code:
$ yast -i /dir/to/file.rpm
...or try
Code:
$ yast -i avr
Code:
  
$ zypper se avr
| avr-libc           | The C Runtime Library for AVR Microcontroll-> | package
| avrdude            | Upload tool for AVR microcontrollers          | package
| cross-avr-binutils | GNU Binutils                                  | package
| cross-avr-gcc      | The GNU C Compiler and Support Files          | package
| cross-avr-gcc44    | The GNU C Compiler and Support Files          | package
You may also need the cross-avr-binutils, and cross-avr-gcc

Last edited by cin_; 01-14-2011 at 03:12 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
install from source - unable to find the libcurl library - but library is installed pulper Linux - Newbie 2 02-23-2009 09:00 PM
MPlayer install problem (Suse 10)- library conflict fjd Linux - General 11 09-18-2006 10:31 PM
Can I install SUSE 10.0 CD1 and add CD2-CD5 later? augu2000 Suse/Novell 3 10-24-2005 12:36 PM
How do I add library path? scc28y Linux - Newbie 5 03-18-2005 10:56 PM
I want to add UMFPACK Library aranfitz Programming 1 01-07-2005 08:18 AM


All times are GMT -5. The time now is 01:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration