lukves
October 16, 2012, 2:31pm
1
i see on one screenshot posted here on forum avrdude. i need it for programing. is here someone with compiled avrdude? pls help. i try to compile but i have some problems
run bootsrtap and after ./configure --build=none
change/add Makefile one parameter: gnu99 for c99 syntax with gcc2
problem with socket.h header…
pls help.
According to Gerasim Troeglazov, avrdude build fine with :
configure --prefix=/boot/common && make && make install
But maybe it build fine only with gcc4, not the old gcc2.
So, try by switching to gcc4 first:
setgcc gcc4
configure --prefix=/boot/common
make
make install
lukves
October 16, 2012, 5:08pm
4
i try
setgcc gcc4
configure --prefix=/boot/common --build=none
and
make
but i have allways problem
make all-recursive
make[1]: Entering directory `/boot/home/Desktop/avrdude-5.11svn-20111019'
make[2]: Entering directory `/boot/home/Desktop/avrdude-5.11svn-20111019'
gcc -Wall -Wno-pointer-sign -g -O2 -o avrdude avrdude-main.o avrdude-term.o ./libavrdude.a -lncurses
./libavrdude.a(libavrdude_a-ser_posix.o): In function `net_open':
/boot/home/Desktop/avrdude-5.11svn-20111019/ser_posix.c:191: undefined reference to `gethostbyname'
/boot/home/Desktop/avrdude-5.11svn-20111019/ser_posix.c:200: undefined reference to `socket'
/boot/home/Desktop/avrdude-5.11svn-20111019/ser_posix.c:211: undefined reference to `connect'
collect2: ld returned 1 exit status
make[2]: *** [avrdude] Error 1
make[2]: Leaving directory `/boot/home/Desktop/avrdude-5.11svn-20111019'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/boot/home/Desktop/avrdude-5.11svn-20111019'
make: *** [all] Error 2
~/Desktop/avrdude-5.11svn-20111019>
lukves
October 16, 2012, 5:59pm
5
hi again.
now i have compiled avrdude
compilation need remove “-lm” from makefile and add to makefile “-lnetwork” becouse socket is provided by libnetwork library
update:
no paralel port programing
avrdude was compiled without usb support.
Well, IIRC only serial port was working.
At least according to this screenshot at https://plus.google.com/105261757212576203663/posts/XNwfVvwfV8w , it used to works via an USB / serial adapter.
Alas, there is no libusb port for Haiku yet, so indeed avrdude’s USB support wont be possible until we have one.