Homepage

  • Projekte
  • Shop
  • Forum
Erweiterte Suche
  • Schnellzugriff
    • Unbeantwortete Themen
    • Aktive Themen
    • Suche
  • FAQ
  • Anmelden
  • Registrieren
  • Foren-Übersicht
  • Suche

WINAVR Sources Kompilieren

Projekt aus Elektor 2007
Antworten
  • Druckansicht
Erweiterte Suche
5 Beiträge • Seite 1 von 1
dreamon
Beiträge: 47
Registriert: 01.02.2006, 00:42:32

WINAVR Sources Kompilieren

  • Zitieren

Beitrag von dreamon » 01.02.2006, 00:50:07

Hallo,

Hab mir 2Platinen vom Webserver geordert. Nun wollte ich die Sources an meine Bedürfnisse anpassen. Bzw. den OrginalCode mal kompilieren.

Leider kommen Zahlreiche Fehlermeldungen.

Code: Alles auswählen

C:\AVR-C\SourceCodeCPP_V1.38\source>make
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfie
lds -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=fat.lst  -
std=gnu99 fat.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > fat.d; \
[ -s fat.d ] || rm -f fat.d
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfie
lds -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=mmc.lst  -
std=gnu99 mmc.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > mmc.d; \
[ -s mmc.d ] || rm -f mmc.d
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfie
lds -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=webpage.ls
t  -std=gnu99 webpage.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > webpage.d; \
[ -s webpage.d ] || rm -f webpage.d
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfie
lds -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=telnet.lst
  -std=gnu99 telnet.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > telnet.d; \
[ -s telnet.d ] || rm -f telnet.d
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfie
lds -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=tcp.lst  -
std=gnu99 tcp.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > tcp.d; \
[ -s tcp.d ] || rm -f tcp.d
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfie
lds -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=uart.lst
-std=gnu99 uart.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > uart.d; \
[ -s uart.d ] || rm -f uart.d
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfie
lds -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=clock.lst
 -std=gnu99 clock.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > clock.d; \
[ -s clock.d ] || rm -f clock.d
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfie
lds -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=interrupt4
.lst  -std=gnu99 interrupt4.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > interrupt4.d; \
[ -s interrupt4.d ] || rm -f interrupt4.d
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfie
lds -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=icmp.lst
-std=gnu99 icmp.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > icmp.d; \
[ -s icmp.d ] || rm -f icmp.d
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfie
lds -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=ip.lst  -s
td=gnu99 ip.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > ip.d; \
[ -s ip.d ] || rm -f ip.d
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfie
lds -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=httpd.lst
 -std=gnu99 httpd.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > httpd.d; \
[ -s httpd.d ] || rm -f httpd.d
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfie
lds -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=ftpd.lst
-std=gnu99 ftpd.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > ftpd.d; \
[ -s ftpd.d ] || rm -f ftpd.d
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfie
lds -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=checksum.l
st  -std=gnu99 checksum.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > checksum.d; \
[ -s checksum.d ] || rm -f checksum.d
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfie
lds -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=arp.lst  -
std=gnu99 arp.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > arp.d; \
[ -s arp.d ] || rm -f arp.d
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfie
lds -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=rtl8019.ls
t  -std=gnu99 rtl8019.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > rtl8019.d; \
[ -s rtl8019.d ] || rm -f rtl8019.d
set -e; avr-gcc -MM -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfie
lds -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.lst
-std=gnu99 main.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > main.d; \
[ -s main.d ] || rm -f main.d

-------- begin --------
avr-gcc (GCC) 3.4.5
Copyright (C) 2004 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für VERKAUFBARKEIT oder FÜR SPEZIELLE ZWECKE.


Compiling: main.c
avr-gcc -c -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfields -fpac
k-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.lst  -std=gnu9
9 main.c -o main.o
In Datei, eingef├╝gt von main.h:17,
                    von main.c:29:
C:/WinAVR/avr/include/avr/signal.h:36:2: Warnung: #warning "This header file is
obsolete.  Use <avr/interrupt.h>."
In Datei, eingef├╝gt von main.h:23,
                    von main.c:29:
rtl8019.h:84:1: Warnung: "ISR" redefined
In Datei, eingef├╝gt von main.h:16,
                    von main.c:29:
C:/WinAVR/avr/include/avr/interrupt.h:97:1: Warnung: this is the location of the
 previous definition
main.c: In function `main':
main.c:76: Warnung: implizite Deklaration der Funktion »enable_external_int«

Compiling: rtl8019.c
avr-gcc -c -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfields -fpac
k-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=rtl8019.lst  -std=g
nu99 rtl8019.c -o rtl8019.o
In Datei, eingef├╝gt von main.h:17,
                    von rtl8019.c:8:
C:/WinAVR/avr/include/avr/signal.h:36:2: Warnung: #warning "This header file is
obsolete.  Use <avr/interrupt.h>."
In Datei, eingef├╝gt von main.h:23,
                    von rtl8019.c:8:
rtl8019.h:84:1: Warnung: "ISR" redefined
In Datei, eingef├╝gt von main.h:16,
                    von rtl8019.c:8:
C:/WinAVR/avr/include/avr/interrupt.h:97:1: Warnung: this is the location of the
 previous definition

Compiling: arp.c
avr-gcc -c -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfields -fpac
k-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=arp.lst  -std=gnu99
 arp.c -o arp.o
In Datei, eingef├╝gt von main.h:17,
                    von arp.c:8:
C:/WinAVR/avr/include/avr/signal.h:36:2: Warnung: #warning "This header file is
obsolete.  Use <avr/interrupt.h>."
In Datei, eingef├╝gt von main.h:23,
                    von arp.c:8:
rtl8019.h:84:1: Warnung: "ISR" redefined
In Datei, eingef├╝gt von main.h:16,
                    von arp.c:8:
C:/WinAVR/avr/include/avr/interrupt.h:97:1: Warnung: this is the location of the
 previous definition

Compiling: checksum.c
avr-gcc -c -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfields -fpac
k-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=checksum.lst  -std=
gnu99 checksum.c -o checksum.o
In Datei, eingef├╝gt von main.h:17,
                    von checksum.c:8:
C:/WinAVR/avr/include/avr/signal.h:36:2: Warnung: #warning "This header file is
obsolete.  Use <avr/interrupt.h>."
In Datei, eingef├╝gt von main.h:23,
                    von checksum.c:8:
rtl8019.h:84:1: Warnung: "ISR" redefined
In Datei, eingef├╝gt von main.h:16,
                    von checksum.c:8:
C:/WinAVR/avr/include/avr/interrupt.h:97:1: Warnung: this is the location of the
 previous definition

Compiling: ftpd.c
avr-gcc -c -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfields -fpac
k-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=ftpd.lst  -std=gnu9
9 ftpd.c -o ftpd.o
In Datei, eingef├╝gt von main.h:17,
                    von ftpd.c:8:
C:/WinAVR/avr/include/avr/signal.h:36:2: Warnung: #warning "This header file is
obsolete.  Use <avr/interrupt.h>."
In Datei, eingef├╝gt von main.h:23,
                    von ftpd.c:8:
rtl8019.h:84:1: Warnung: "ISR" redefined
In Datei, eingef├╝gt von main.h:16,
                    von ftpd.c:8:
C:/WinAVR/avr/include/avr/interrupt.h:97:1: Warnung: this is the location of the
 previous definition

Compiling: httpd.c
avr-gcc -c -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfields -fpac
k-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=httpd.lst  -std=gnu
99 httpd.c -o httpd.o
In Datei, eingef├╝gt von main.h:17,
                    von httpd.c:8:
C:/WinAVR/avr/include/avr/signal.h:36:2: Warnung: #warning "This header file is
obsolete.  Use <avr/interrupt.h>."
In Datei, eingef├╝gt von main.h:23,
                    von httpd.c:8:
rtl8019.h:84:1: Warnung: "ISR" redefined
In Datei, eingef├╝gt von main.h:16,
                    von httpd.c:8:
C:/WinAVR/avr/include/avr/interrupt.h:97:1: Warnung: this is the location of the
 previous definition

Compiling: ip.c
avr-gcc -c -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfields -fpac
k-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=ip.lst  -std=gnu99
ip.c -o ip.o
In Datei, eingef├╝gt von main.h:17,
                    von ip.c:8:
C:/WinAVR/avr/include/avr/signal.h:36:2: Warnung: #warning "This header file is
obsolete.  Use <avr/interrupt.h>."
In Datei, eingef├╝gt von main.h:23,
                    von ip.c:8:
rtl8019.h:84:1: Warnung: "ISR" redefined
In Datei, eingef├╝gt von main.h:16,
                    von ip.c:8:
C:/WinAVR/avr/include/avr/interrupt.h:97:1: Warnung: this is the location of the
 previous definition

Compiling: icmp.c
avr-gcc -c -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfields -fpac
k-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=icmp.lst  -std=gnu9
9 icmp.c -o icmp.o
In Datei, eingef├╝gt von main.h:17,
                    von icmp.c:8:
C:/WinAVR/avr/include/avr/signal.h:36:2: Warnung: #warning "This header file is
obsolete.  Use <avr/interrupt.h>."
In Datei, eingef├╝gt von main.h:23,
                    von icmp.c:8:
rtl8019.h:84:1: Warnung: "ISR" redefined
In Datei, eingef├╝gt von main.h:16,
                    von icmp.c:8:
C:/WinAVR/avr/include/avr/interrupt.h:97:1: Warnung: this is the location of the
 previous definition

Compiling: interrupt4.c
avr-gcc -c -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfields -fpac
k-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=interrupt4.lst  -st
d=gnu99 interrupt4.c -o interrupt4.o
In Datei, eingef├╝gt von main.h:17,
                    von interrupt4.c:8:
C:/WinAVR/avr/include/avr/signal.h:36:2: Warnung: #warning "This header file is
obsolete.  Use <avr/interrupt.h>."
In Datei, eingef├╝gt von main.h:23,
                    von interrupt4.c:8:
rtl8019.h:84:1: Warnung: "ISR" redefined
In Datei, eingef├╝gt von main.h:16,
                    von interrupt4.c:8:
C:/WinAVR/avr/include/avr/interrupt.h:97:1: Warnung: this is the location of the
 previous definition

Compiling: clock.c
avr-gcc -c -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfields -fpac
k-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=clock.lst  -std=gnu
99 clock.c -o clock.o
In Datei, eingef├╝gt von main.h:17,
                    von clock.c:8:
C:/WinAVR/avr/include/avr/signal.h:36:2: Warnung: #warning "This header file is
obsolete.  Use <avr/interrupt.h>."
In Datei, eingef├╝gt von main.h:23,
                    von clock.c:8:
rtl8019.h:84:1: Warnung: "ISR" redefined
In Datei, eingef├╝gt von main.h:16,
                    von clock.c:8:
C:/WinAVR/avr/include/avr/interrupt.h:97:1: Warnung: this is the location of the
 previous definition
clock.c: In function `Start_Clock':
clock.c:48: Warnung: implizite Deklaration der Funktion »timer_enable_int«

Compiling: uart.c
avr-gcc -c -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfields -fpac
k-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=uart.lst  -std=gnu9
9 uart.c -o uart.o
In Datei, eingef├╝gt von main.h:17,
                    von uart.c:8:
C:/WinAVR/avr/include/avr/signal.h:36:2: Warnung: #warning "This header file is
obsolete.  Use <avr/interrupt.h>."
In Datei, eingef├╝gt von main.h:23,
                    von uart.c:8:
rtl8019.h:84:1: Warnung: "ISR" redefined
In Datei, eingef├╝gt von main.h:16,
                    von uart.c:8:
C:/WinAVR/avr/include/avr/interrupt.h:97:1: Warnung: this is the location of the
 previous definition
uart.c: In function `UART_Init':
uart.c:36: Warnung: Verarbeiten des Argumentes 1 von »fdevopen« von inkompatib
lem Zeigertyp
uart.c:36: Fehler: zu viele Argumente für Funktion »fdevopen«
make: *** [uart.o] Error 1
Woher kommen die Fehler.. Habe mir ne aktuelle "WINAVR" gezogen.

Hab auf Uli's Seite keine Infos gefunden.. wie man den Code sauber kompliert.

Bitte um Hilfe.. wäre Klasse :roll:
Nach oben

dreamon
Beiträge: 47
Registriert: 01.02.2006, 00:42:32

Nachtrag

  • Zitieren

Beitrag von dreamon » 01.02.2006, 09:06:52

Ich vergaß zu schreiben wie ichs gemacht hab.

- Source entpackt
- WinAVR installiert.
- mit cmd ins verzeichnis wo die Source liegt.. unter anderem das makefile
- dann make aufgerufen

Habs aber auch so probiert mit dem "Programmers Notepade WinAVR" das Projekt laden und dann auf "tools" make all .. gleiche Fehlermeldungen.

Obsolete = Veraltet.. Wo bekomm ich da was neueres, immerhin hab ich doch die neueste Version geholt und auch die /bin /libs usw. aktualisiert.

Mfg Chris
Nach oben

Benutzeravatar
Ulrich
Site Admin
Beiträge: 3036
Registriert: 29.02.2004, 18:12:19
Wohnort: Siegen
Kontaktdaten:
Kontaktdaten von Ulrich
Website

  • Zitieren

Beitrag von Ulrich » 01.02.2006, 20:54:14

Hallo,

Also WinAVR20050214.EXE herunterladen und installieren.
SourceCode1.38MMC herunterladen und entpacken.
main.c öffenen und compelieren Fertig und das ohne Fehler.
evt. mal einen anderen Rechner nehmen.

Gruss
Ulrich Radig
Nach oben

PrimozL

Source compile

  • Zitieren

Beitrag von PrimozL » 16.04.2006, 14:38:39

Dear all,

I have similar problems as "dreamon" and I get similar messages while trying to compile the sources. I am not good in German so I'd be very glad if someone could explain the following:

- which version of WinAVR needs to be used?
- are there any special switches needed apart from "make" or "make all"?
- do I have to use makefile or not?
- is "devopen" compile error compatibilityproblem or just some wrong settings?

I have hardware with ATmega32 and RTL8019AS nertword card ready and compiling is the last thing to make it running.

Thanks in advance and regards,

Primoz.
Nach oben

tRIGGER

  • Zitieren

Beitrag von tRIGGER » 18.04.2006, 19:26:15

Just install WINAVR and the latest AVRstudio (in this order)

make a new project in avrstudio and load the supplied MAKEFILE (use external makefile)

that should do the trick..
Nach oben

Antworten
  • Druckansicht

5 Beiträge • Seite 1 von 1

Zurück zu „AVR WebServer (alte Version)“



  • Foren-Übersicht
  • Alle Zeiten sind UTC+02:00
  • Alle Cookies löschen

Powered by phpBB® Forum Software © phpBB Limited

Deutsche Übersetzung durch phpBB.de

Datenschutz | Nutzungsbedingungen

 

 

sitemap  |    |  datenschutz   |  impressum