Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1] 2
Author Topic: Problems running software from source
mrucis
Newbie
Posts: 13
Permalink
Post Problems running software from source
on: April 24, 2012, 13:47
Quote

Hi,
I'm having problems running software from source.
I'm using Ubuntu 10.10, processing 1.5.1and libraries (ControlP5 and Geomerative) are added to sketchbook folder.
I checkout source and in processing I opened /polargraph-read-only/controller/branches/polargraphcontroller_zoom/polargraphcontroller_zoom.pde
When I hit Run button i get error message form processing:

cannot convert from RadioButton to Radio

Line 459 is highlighted in file controlsAction.pde

  Radio r = cp5.addRadio("radio_serialPort",10,10);

Have I missed some dependences?

mrucis
Newbie
Posts: 13
Permalink
Post Re: Problems running software from source
on: April 24, 2012, 13:55
Quote

Same with processing 2.0a5

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Problems running software from source
on: April 24, 2012, 14:19
Quote

Hello, probably not missing dependencies, but there have been some changes recently in the controlP5 library around how radio buttons are configured, and that's probably what's killing it. I didn't realise they'd started releasing new versions to be honest - although development of cp5 continued apace, the official released version was stuck on 0.5 for ages.

I'll fix it at some point, but until then, you should be able to get it working by using this older version of the ControlP5 library.

At least I think that's what your problem is anyway.

Also, where did this new processing come from! Why did nobody tell me!

Cheers
sn

mrucis
Newbie
Posts: 13
Permalink
Post Re: Problems running software from source
on: April 24, 2012, 14:50
Quote

Thanks, older ControlP5 library solved problem.

mrucis
Newbie
Posts: 13
Permalink
Post Re: Problems running software from source
on: April 24, 2012, 15:52
Quote

So and now Android Arduino source code
Download libraries http://www.open.com.au/mikem/arduino/AccelStepper and http://www.ladyada.net/make/mshield/download.html and instaled them
Copy source from:

./embedded/trunk/polargraph_server_a1.ino

And hit run button and i have bunch of errors:

ard_code:16: error: ‘PROGMEM’ does not name a type
ard_code.cpp: In function ‘void setup()’:
ard_code:191: error: ‘F’ was not declared in this scope
ard_code.cpp: In function ‘void loadMachineSpecFromEeprom()’:
ard_code:223: error: ‘F’ was not declared in this scope
ard_code.cpp: In function ‘void loop()’:
ard_code:406: error: ‘F’ was not declared in this scope
ard_code:434: error: ‘F’ was not declared in this scope
ard_code:442: error: ‘F’ was not declared in this scope
ard_code.cpp: In function ‘void executeCommand(String)’:
ard_code:566: error: ‘F’ was not declared in this scope
ard_code.cpp: In function ‘String readCommand()’:
ard_code:627: error: ‘F’ was not declared in this scope
ard_code.cpp: In function ‘void reportMachineSpec()’:
ard_code:697: error: ‘F’ was not declared in this scope
ard_code.cpp: In function ‘void setMotorSpeed(float)’:
ard_code:768: error: ‘F’ was not declared in this scope
ard_code.cpp: In function ‘void setMotorAcceleration(float)’:
ard_code:788: error: ‘F’ was not declared in this scope
ard_code.cpp: In function ‘void changePenWidth()’:
ard_code:801: error: ‘F’ was not declared in this scope
ard_code.cpp: In function ‘void changeDrawingDirection()’:
ard_code:811: error: ‘F’ was not declared in this scope
ard_code.cpp: In function ‘void EEPROMWriteInt(int, int)’:
ard_code:1829: error: ‘F’ was not declared in this scope
ard_code.cpp: In function ‘long unsigned int crc_update(long unsigned int, byte)’:
ard_code:1855: error: ‘crc_table’ was not declared in this scope
ard_code:1855: error: ‘pgm_read_dword_near’ was not declared in this scope
sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Problems running software from source
on: April 24, 2012, 16:36
Quote

I guess you mean "arduino" source code. The arduino code requires arduino IDE v1 - that might be your issue. ("F" is the arduino v1 replacement for PROGMEM).

Did you get the controller working? (edit .. I see now that you did - good stuff)

good luck

sn

mrucis
Newbie
Posts: 13
Permalink
Post Re: Problems running software from source
on: April 24, 2012, 17:20
Quote

(party) IDE v1 solved problem.
Reading http://arduino.cc/en/Main/ReleaseNotes also answered some other questions I had.

Thanks.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Problems running software from source
on: April 24, 2012, 18:07
Quote

huzzah!

mrucis
Newbie
Posts: 13
Permalink
Post Re: Problems running software from source
on: July 31, 2012, 10:45
Quote

Hi,
I nead a hint how to open and compile project from trunk
You have made great progress but all changes are commited to trunk. I would be glad to test new features 😉
Running application from controller/branches/polargraphcontroller_zoom works

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Problems running software from source
on: July 31, 2012, 12:42
Quote

Yes, unless there's something dangerous happening, all the changes are just going to the trunk. The _zoom version is the precursor to the current version. You might need to get the dependencies, which for this project are controlp5, but specifically an older version of controlp5. Have a look at http://code.google.com/p/polargraph/wiki/BuildSoftware to get some links about it. Geomerative is the other dependency for the application.

No new features on the uno-sized polargraph server though I'm afraid, they're all happening on the polarshield branch! But polargraph_server_a1 has been restructured too.

mrucis
Newbie
Posts: 13
Permalink
Post Re: Problems running software from source
on: August 2, 2012, 15:08
Quote

Thanks!!!
Maybe you can create directory polargraphcontroller and move source there so after every svn update there would be newest version.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Problems running software from source
on: August 2, 2012, 15:25
Quote

No well that's what the svn repository is for - it already is a directory called polargraph controller with the newest source code in it. Can't get more up-to-date than that!

mrucis
Newbie
Posts: 13
Permalink
Post Re: Problems running software from source
on: August 3, 2012, 00:04
Quote

I was thinking to move controller/trunk/*.pde to controller/trunk/polargraphcontroller/ similar as controller/branches/polargraphcontroller_zoom, so opening polargraphcontroller.pde there will not be warning to move file to own sketch folder and no need to manually copy files.
PS you have done great job and response time in forum is excellent.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Problems running software from source
on: August 3, 2012, 15:09
Quote

Oh you're right, that's a really good idea, so you could check out the whole folder itself rather than having to check out the contents. I'll go and do that at some point! Thanks!

sn

mbcook
Newbie
Posts: 11
Permalink
Post Re: Problems running software from source
on: August 4, 2012, 01:20
Quote

Today I decided to start tinkering with the controller software so I could understand it better, and ran into the exact same problem. Fix worked great.

I'm curious, do you do your development directly in the Processing and Arduino environments, or do you use an external IDE?

I'll add a note about how SVN works, in case this helps.

/controller/trunk and /controller/branches/polargraphcontroller_zoom both name the root of the source tree for their respective branches. You can think of the trunk as equivalent to /controller/branches/trunk.

So if you create a folder polargraphcontroller (which makes sense to me), and then you make a new branch from that, you'd find the *.pde files an /controller/branches/my_new_branch/polargraphcontroller/*.pde. The reason you don't have to have the folder on the branch right now is because the branch is named the same as the processing project, basically coincidence.

Just something to be aware of.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Problems running software from source
on: August 4, 2012, 09:45
Quote

Hey up, glad to see you here. I just use the regular processing and arduino IDEs for development. It doesn't make it easy, but the impediments to getting eclipse set up and working reliably, while keeping the project portable and processing-able put me off switching. I hate the IDEs though - am looking forward to codebender as an arduino alternative. And I suspect I might roll the controller into a bona fide java app at some point, but at the moment I prefer the open, build-it-yourself nature of the processing ecosystem.

sn

mrucis
Newbie
Posts: 13
Permalink
Post Re: Problems running software from source
on: August 5, 2012, 22:23
Quote

after updating source /embedded/trunk getting error:

polargraph_server_a1.cpp: In function ‘boolean exec_executeBasicCommand(String&)’:
polargraph_server_a1.cpp:878:27: error: ‘CMD_SETMACHINESTEPMULTIPLIER’ was not declared in this scope

was ok using revision 320

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Problems running software from source
on: August 5, 2012, 22:39
Quote

Try it now, just fixed that. Hopefully, ha! Thanks for being patient.

sn

mrucis
Newbie
Posts: 13
Permalink
Post Re: Problems running software from source
on: August 6, 2012, 09:28
Quote

IDE says: Done Compiling !
Thanks!!

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Problems running software from source
on: August 6, 2012, 19:47
Quote

Hurray!

Pages: [1] 2
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.049 seconds.