New IDE v1.6.8

Related to the development libraries, released by Curt Binder
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: New IDE v1.6.8

Post by binder »

rimai wrote:There might be a change on the Arduino IDE that requires the wizard and preloaded code to be recompiled too.
I have only tested on v1.6.8.
ok. that makes sense. i do think some things changed.


Sent from my iPad using Tapatalk
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: New IDE v1.6.8

Post by binder »

Well, there's more that has changed with 1.8.5 (the version that I'm using for a High Sierra build).
It's proving to be a cumbersome (and frustrating) task.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: New IDE v1.6.8

Post by binder »

Any additional work done on this? I hit a roadblock and haven't gotten past it.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: New IDE v1.6.8

Post by rimai »

Didn't got around doing that yet. :(
Roberto.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: New IDE v1.6.8

Post by binder »

rimai wrote:Didn't got around doing that yet. :(
no problem. I know you are busy. I just wanted to check up on it.

Sent from my XT1585 using Tapatalk
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: New IDE v1.6.8

Post by rimai »

Can you explain a little more of what the problem you are having?
Roberto.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: New IDE v1.6.8

Post by binder »

rimai wrote:Can you explain a little more of what the problem you are having?
There were some issues with including the correct libraries and dealing with the additional tools. I think there was also an issue with compilations with the latest libraries. I don't recall about the exact compilation problem because i was more focused on the main errors.
here's the additional errors that I had saved. I'll have to double check because I haven't looked at it for a while.
---
Verify the Libraries check function call.
java.lang.NoSuchMethodError: processing.app.Base.getSketchbookFolder()Ljava/io/File;

Invalid libraries:
Invalid library found in /Users/binder/Projects/ra-arduino/build/macosx/work/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/WiFi: /Users/binder/Projects/ra-arduino/build/macosx/work/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/WiFi
Invalid library found in /Users/binder/Projects/ra-arduino/build/macosx/work/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Ethernet: /Users/binder/Projects/ra-arduino/build/macosx/work/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Ethernet

Launching "Restore pre-loaded code":
java.lang.NoSuchMethodError: processing.app.Sketch.getCode(I)Lprocessing/app/SketchCode;
at com.reefangel.tool.RestorePreloaded.run(Unknown Source)
---

i know that they changed things but I just haven't had the mindset to dive in to how it works...like you already had.

Sent from my XT1585 using Tapatalk
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: New IDE v1.6.8

Post by binder »

when running the wizard, this is the output:

Code: Select all

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: processing.app.Sketch.getCode(I)Lprocessing/app/SketchCode;
	at com.reefangel.tool.Wizard.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Running the restore preloaded code gives this:

Code: Select all

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: processing.app.Sketch.getCode(I)Lprocessing/app/SketchCode;
	at com.reefangel.tool.RestorePreloaded.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Then compiling against the current dev libraries yields this:

Code: Select all

Archiving built core (caching) in: /var/folders/3h/m3xyqrbj57vf3kmyrzy3zn900000gp/T/arduino_cache_671070/core/core_arduino_avr_RAStar_c41a4462a748f55bf51d70a30288e42f.a
Multiple libraries were found for "Ethernet.h"
 Used: /Users/binder/ownCloud/Documents/Arduino/libraries/Ethernet
 Not used: /Users/binder/Projects/ra-arduino/build/macosx/work/Arduino.app/Contents/Java/libraries/Ethernet
libraries/ReefAngel/ReefAngel.cpp.o (symbol from plugin): In function `ReefAngelClass::DisplayMenuHeading()':
(.text+0x0): multiple definition of `__vector_9'
libraries/SoftwareSerial/SoftwareSerial.cpp.o (symbol from plugin):(.text+0x0): first defined here
/Users/binder/Projects/ra-arduino/build/macosx/work/Arduino.app/Contents/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld: Disabling relaxation: it will not work with multiple definitions
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Reef Angel Star Controller.
i know some of these errors are probably simple ones but i'm not that familiar with the ide changes you have made before to get things to compile.
i am definitely willing to work at this more but i need guidance and assistance. :?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: New IDE v1.6.8

Post by rimai »

I don't think you need to run the Restore Preloaded code, right? :)
I never had problem compiling code though.
I'll double check.
Roberto.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: New IDE v1.6.8

Post by binder »

rimai wrote:I don't think you need to run the Restore Preloaded code, right? :)
you never know. ;-)
I never had problem compiling code though.
I'll double check.
I think the issue lies with extra libraries that are included by default but we don't typically need them. I think I vaguely recall from years past that we had to remove a specific library due to it including something we didn't need...or multiple definitions...or something like that. I'm not positive though.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: New IDE v1.6.8

Post by binder »

rimai wrote:I don't think you need to run the Restore Preloaded code, right? :)
I never had problem compiling code though.
I'll double check.
Ok, here's a follow up. I've got it able to compile code now. The issue was the SoftwareSerial problem from a while ago. I had to track down the old changes and then locate the problem and comment out lines in the source files.

One problem with macOS is you cannot simply replace those built-in files by replacing them in a folder on the hard drive after installation (like we have done in the past on a windows machine). I have to fix the files and then re-build the entire app because they get added to the entire package and compiled/linked in.

I'm progressing along now....just gotta make sure I have the correct bootloader files for the RAStar and others in order to get it to compile and build properly.
Slow progress, but progress.
Post Reply