[En-Nut-Discussion] Build nutconf in cygwin

Lars Andersson laran at ikp.liu.se
Thu Dec 9 13:19:17 CET 2004


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 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.



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

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

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

-----Original Message-----
From: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de]On Behalf Of Harald Kipp
Sent: den 9 december 2004 12:56
To: Ethernut User Chat (English)
Subject: Re: [En-Nut-Discussion] Build nutconf in cygwin


Hi Lars,

On Windows I use MSVC 6.0 and didn't try Cygwin so far. Any reason
for not using the pre-compiled binary from nut302c.exe?

I'd be happy to know, that it compiles on Cygwin too, but don't
have the time to try this right now.

Harald

At 11:40 09.12.2004 +0100, you wrote:
>Hi all,
>
>I am trying to build nutconf in cygwin with minor success. After some 
>modification in the cvs files I manage to compile the code but when I 
>execute the nutconf.exe file an error accrue.
>"Can't load bitmap 'wxBITMAP_STDCOLOURS' from resources! Check.rc file."
>
>When I try to execute the built nutconf.exe from eth explorer (not within 
>bash) i get the following error
>"The Procedure entry point _impure_pntr could not be located in the 
>dynamic library cygwin1.dll"
>
>Has anyone experienced this?
>
>Is there an easier way to build the nutconf for windows than using cygwin ?
>
>Regards,
>Lars A. Andersson
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>  Lars Andersson M.Sc.                     Phone: +46 (0)13  - 28 11 98
>  Div. of Fluid and Mech. Eng. System      Mobile:+46 (0)733 - 80 07 74
>  Dept. of Mechanical Engineering          Fax:   +46 (0)13      - 13 04 14
>  Linköping University                     mailto:laran at ikp.liu.se
>  S-581 83 Linköping                       http://hydra.ikp.liu.se/~laran
>  SWEDEN
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>_______________________________________________
>En-Nut-Discussion mailing list
>En-Nut-Discussion at egnite.de
>http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion

_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion



More information about the En-Nut-Discussion mailing list