[En-Nut-Discussion] Build nutconf in cygwin

Harald Kipp harald.kipp at egnite.de
Thu Dec 9 18:57:51 CET 2004


Lars,

At 13:19 09.12.2004 +0100, you wrote:
>Harald,
>
>The reason for me for building the nutconf from scratch is that i thought 
>there may be some compability isses between the cvs version and the 
>precompiled in nut392c.exe.

I understand. I'm currently working hard to get
Nutconf 1.1.1 out of the door.



>I downloaded the CVS vesion of nut/os and used the precompiled 
>nutconf.exe. The build tree was generated and built without problem. Later 
>when I tried to build the basemon application I got some compile erors
>
>C:\.../libnutcrt.a(putf.o)(.text+0x5ba): In function '_putf':
>: undefined reference to 'dtostrf'
>C:\.../libnutcrt.a(putf.o)(.text+0x5ba): In function '_putf':
>: undefined reference to 'dtostre'
>
>Due to this I thought that there may be some differences in nutconf when 
>building the libs.

I'm afraid, this will not help. dtostrf and dtostre should
be part of avr-libc. Not sure right now why it works here.
Did you try to add -lm to the LIBS entry in the Makefile?


>Some changes I had to make to get nutconf to compile under cygwin.
>
>add the following to nutconf.cpp
>#ifdef __WXMSW__
>#include <wx/msw/private.h>
>#include <wx/window.h>
>#endif

Not required here under real Linusses.



>add the following to utils.cpp
>#include <errno.h>

Yes, I detected this when compiling for Fedora and Debian.



>Perhaps the first change I made can cause the strange errors when trying 
>to exicute the compiled nutconf.exe, I don't know.
>
>Regards,
>Lars A. Andersson

Harald




More information about the En-Nut-Discussion mailing list