Love UECIDE? Why not consider supporting the development?

User registrations are now disabled on this site.

We have a new forum system

>> Click here to try it out. <<

Ethernet library won't compile..

Ethernet library won't compile..

Postby Costin » Sat Jan 17, 2015 8:36 am

Hi,Matt..I'm running the latest version of UECIDE,as allways and I'm trying to include some functions which use the Arduino Ethernet library but it fails to compile due some errors founded in the library.I'm using a Mega2560 board. On the Arduino IDE the sketch is compiled whitout any problems..Have any ideea where the problem could be ?Here are some messages I get from :

‣ Ethernet
D:\UECIDE\Megaword485\libraries\Ethernet\src\utility\w5100.cpp: In member function 'void W5100Class::init()':
Error at line 35 in file w5100.cpp
D:\UECIDE\Megaword485\libraries\Ethernet\src\utility\w5100.cpp:35: error: no matching function for call to 'SPIClass::begin(int)'
C:\Users\Costin\AppData\Local\UECIDE\cores\arduino-156\libraries\SPI/SPI.h:45: note: candidates are: static void SPIClass::begin()
Error at line 37 in file w5100.cpp
D:\UECIDE\Megaword485\libraries\Ethernet\src\utility\w5100.cpp:37: error: no matching function for call to 'SPIClass::setClockDivider(int, int)'

and the list is way long down...
Costin
 
Posts: 64
Joined: Sun Jul 27, 2014 5:27 am
 

Re: Ethernet library won't compile..

Postby matt » Sat Jan 17, 2015 11:43 am

It looks like the 1.5.6 core is using the Due version of the SPI library maybe.

Hmm... 156... That doesn't sound right. It's called 15x these days since it now follows the progression of 1.5.x releases. I think you may want to delete the 156 core and install the 15x core instead. You may have to delete the C:\Users\Costin\AppData\Local\UECIDE\cores\arduino-156 folder manually since it won't show up in the plugin manager any more.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".
matt
Site Admin
 
Posts: 1318
Joined: Sun Jul 07, 2013 11:37 am
I use UECIDE on: Linux
 

Re: Ethernet library won't compile..

Postby Costin » Sat Jan 17, 2015 1:52 pm

ok, deleted it..switched on 1.5X core (1.58), same result, but with different messages..

D:\UECIDE\Megaword485\libraries\Ethernet\src\Ethernet.cpp: In member function 'void EthernetClass::begin(uint8_t*, IPAddress, IPAddress, IPAddress, IPAddress)':
Error at line 65 in file Ethernet.cpp
D:\UECIDE\Megaword485\libraries\Ethernet\src\Ethernet.cpp:65: error: no matching function for call to 'W5100Class::setIPAddress(IPAddress::<anonymous union>&)'
D:\UECIDE\Megaword485\libraries\Ethernet\src\/utility/w5100.h:392: note: candidates are: void W5100Class::setIPAddress(uint8_t*)
Error at line 66 in file Ethernet.cpp
D:\UECIDE\Megaword485\libraries\Ethernet\src\Ethernet.cpp:66: error: no matching function for call to 'W5100Class::setGatewayIp(IPAddress::<anonymous union>&)'
D:\UECIDE\Megaword485\libraries\Ethernet\src\/utility/w5100.h:368: note: candidates are: void W5100Class::setGatewayIp(uint8_t*)
Error at line 67 in file Ethernet.cpp
D:\UECIDE\Megaword485\libraries\Ethernet\src\Ethernet.cpp:67: error: no matching function for call to 'W5100Class::setSubnetMask(IPAddress::<anonymous union>&)'
D:\UECIDE\Megaword485\libraries\Ethernet\src\/utility/w5100.h:376: note: candidates are: void W5100Class::setSubnetMask(uint8_t*)
Costin
 
Posts: 64
Joined: Sun Jul 27, 2014 5:27 am
 

Re: Ethernet library won't compile..

Postby matt » Sat Jan 17, 2015 2:47 pm

Ok, this is now entirely to do with the Ethernet library that is within the Megaword485 sketch.

What is that library, where did you get it from, and why is it there?
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".
matt
Site Admin
 
Posts: 1318
Joined: Sun Jul 07, 2013 11:37 am
I use UECIDE on: Linux
 

Re: Ethernet library won't compile..

Postby Costin » Sat Jan 17, 2015 3:51 pm

The library resides in the arduino core of UECIDE.It's not imported from anywhere, just used the one that's inside UECIDE..
Costin
 
Posts: 64
Joined: Sun Jul 27, 2014 5:27 am
 

Re: Ethernet library won't compile..

Postby matt » Sat Jan 17, 2015 4:42 pm

Code: Select all
D:\UECIDE\Megaword485\libraries\Ethernet\src\/utility/w5100.h:376: note: candidates are: void W5100Class::setSubnetMask(uint8_t*)

That's not in the core - that's in the sketch: D:\UECIDE\Megaword485\libraries\Ethernet
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".
matt
Site Admin
 
Posts: 1318
Joined: Sun Jul 07, 2013 11:37 am
I use UECIDE on: Linux
 

Re: Ethernet library won't compile..

Postby Costin » Sat Jan 17, 2015 5:01 pm

LOL..the hell I know where that camed from...You was right...I found a folder called libraries inside the sketch main folder from uecide..Just deleted it and UECIDE reverts back to use the proper library...Funny...Thanks,Matt...btw, is there anything like ICSC for Raspberry pi ?:)
Costin
 
Posts: 64
Joined: Sun Jul 27, 2014 5:27 am
 

Re: Ethernet library won't compile..

Postby matt » Sat Jan 17, 2015 5:28 pm

There was, but it didn't work very well. It's on my todo list to re-write it properly.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".
matt
Site Admin
 
Posts: 1318
Joined: Sun Jul 07, 2013 11:37 am
I use UECIDE on: Linux
 
 

Return to Arduino / AVR

Who is online

Users browsing this forum: No registered users and 2 guests

cron