[En-Nut-Discussion] Installation problem with ethernut-5.0.2 on Debian

3 views
Skip to first unread message

Edward Bartnik

unread,
Mar 15, 2012, 2:55:52 PM3/15/12
to en-nut-d...@egnite.de
I've tried to make full installation of ethernut-5.0.2 on Debian 6.0.4.
Version of gcc and g++ is 4.4.5.
make for Nut/OS issued the folloing error

Making install in nut/tools/nutdisc
make[1]: Enter to directory
`/home/eb/ethernut/ethernut-5.0.2/nut/tools/nutdisc'
Making install in src
make[2]: Enter to directory
`/home/eb/ethernut/ethernut-5.0.2/nut/tools/nutdisc/src'
CXX nutdisc-udpthread.o
udpthread.cpp: In member function ‘virtual void* CUdpThread::Entry()’:
udpthread.cpp:155: error: cast from ‘DISCOVERY_TELE*’ to ‘int’ loses
precision
make[2]: *** [nutdisc-udpthread.o] Error 1
make[2]: Leaving directory
`/home/eb/ethernut/ethernut-5.0.2/nut/tools/nutdisc/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/home/eb/ethernut/ethernut-5.0.2/nut/tools/nutdisc'
make: *** [install-recursive] Error 1

Line 155 of udpthread.cpp is

event.SetInt((int)dist);

dist is of type DISCOVERY_TELE*
After that I've done make install.
In /usr/local/bin there is no nutdisc. crurom, nutconfigure, qnutconf
and nutconf are there.
I'll be very graceful for any advice how to resolve that problem.

Regards,
Edward Bartnik
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion

Harald Kipp

unread,
Mar 17, 2012, 3:33:29 PM3/17/12
to Ethernut User Chat (English)
Hi Edward,

On 15.03.2012 19:55, Edward Bartnik wrote:
> udpthread.cpp: In member function ‘virtual void* CUdpThread::Entry()’:
> udpthread.cpp:155: error: cast from ‘DISCOVERY_TELE*’ to ‘int’ loses
> precision

nutdisc is not really required. Unfortunately there is no alternative
like with nutconf (wxWidget) and qnutconf (Qt), because I didn't manage
to set up automake for qnutdisc.

You may try to replace

event.SetInt((int)dist);

with

event.SetInt((int)(intptr_t)dist);

which is ugly but may work.

Regards,

Harald


_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion

Ole Reinhardt

unread,
Mar 18, 2012, 4:01:27 PM3/18/12
to Harald Kipp, Ethernut User Chat (English)
Hi Harald,

> nutdisc is not really required. Unfortunately there is no alternative
> like with nutconf (wxWidget) and qnutconf (Qt), because I didn't manage
> to set up automake for qnutdisc.

Shall I create a automake setup like for the other tools?
I could do so tomorrow. Please give me a short note whenever you need
support with automake.

Bye,

Ole

--

Thermotemp GmbH, Embedded-IT

Embedded Hard-/ Software and Open Source Development,
Integration and Consulting

http://www.embedded-it.de

Geschäftsstelle Siegen - Steinstraße 67 - D-57072 Siegen -
tel +49 (0)271 5513597, +49 (0)271-73681 - fax +49 (0)271 736 97

Hauptsitz - Hademarscher Weg 7 - 13503 Berlin
Tel +49 (0)30 4315205 - Fax +49 (0)30 43665002
Geschäftsführer: Jörg Friedrichs, Ole Reinhardt
Handelsregister Berlin Charlottenburg HRB 45978 UstID DE 156329280

_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion

Harald Kipp

unread,
Mar 20, 2012, 7:03:01 AM3/20/12
to Ethernut User Chat (English)
Hi Ole,

On 18.03.2012 21:01, Ole Reinhardt wrote:
>> nutdisc is not really required. Unfortunately there is no alternative
>> like with nutconf (wxWidget) and qnutconf (Qt), because I didn't manage
>> to set up automake for qnutdisc.
>
> Shall I create a automake setup like for the other tools?
> I could do so tomorrow. Please give me a short note whenever you need
> support with automake.

Yes, would be great if you could take over the qnutdisc configuration
for automake.

Thanks,

Harald

_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion

Ole Reinhardt

unread,
Mar 20, 2012, 12:45:12 PM3/20/12
to Harald Kipp, Ethernut User Chat (English)
Hi Harald,

> Yes, would be great if you could take over the qnutdisc configuration
> for automake.

80% are just done :) Just need the time to do a last test. Perhaps I'll
find the time tonight.

Ole Reinhardt

unread,
Mar 21, 2012, 9:33:14 AM3/21/12
to en-nut-d...@egnite.de
Hi Harald,

> > Shall I create a automake setup like for the other tools?
> > I could do so tomorrow. Please give me a short note whenever you need
> > support with automake.
>
> Yes, would be great if you could take over the qnutdisc configuration
> for automake.

I just checked in the automake support for qnutdisc to trunk.

Reply all
Reply to author
Forward
0 new messages