t4ufiqh / yanis-android-wireless-camera-controller

Automatically exported from code.google.com/p/yanis-android-wireless-camera-controller
0 stars 0 forks source link

error compiling #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.add file/folder in to libraries(ptp2, USBHost, TIME) as follows;
C:\Program Files\Arduino\libraries\PTP2
C:\Program Files\Arduino\libraries\USBHost
C:\Program Files\Arduino\libraries\Time
2.Load YanisEOS.pde sketch
3.Compile returns the below errors.

What is the expected output? What do you see instead?
error compiling

What version of the product are you using? On what operating system?
arduino 1.0.5
win 7 32bit
Please provide any additional information below.

error log from compile:

In file included from C:\Program Files\Arduino\libraries\ptp2/ptp.h:24,
                 from YanisEOS (1).pde:39:
C:\Program Files\Arduino\libraries\ptp2/ptpcallback.h:37: error: expected 
initializer before '<' token
In file included from YanisEOS (1).pde:39:
C:\Program Files\Arduino\libraries\ptp2/ptp.h:57: error: expected class-name 
before '{' token
C:\Program Files\Arduino\libraries\ptp2/ptp.h:82: error: 'EpInfo' does not name 
a type
YanisEOS (1).pde:71: error: no matching function for call to 
'CanonEOS::CanonEOS(int, int, int, int, int, CamStateHandlers*)'
C:\Program Files\Arduino\libraries\ptp2/canoneos.h:132: note: candidates are: 
CanonEOS::CanonEOS(USB*, PTPStateHandlers*)
C:\Program Files\Arduino\libraries\ptp2/canoneos.h:96: note:                 
CanonEOS::CanonEOS(const CanonEOS&)
YanisEOS (1).pde: In member function 'virtual void 
CamStateHandlers::OnDeviceDisconnectedState(PTP*)':
YanisEOS (1).pde:78: error: 'Notify' was not declared in this scope
YanisEOS (1).pde: In function 'void setup()':
YanisEOS (1).pde:105: error: 'class CanonEOS' has no member named 'Setup'
C:\Program Files\Arduino\libraries\ptp2/ptp.h: In function 'void loop()':
C:\Program Files\Arduino\libraries\ptp2/ptp.h:62: error: 'void PTP::Task()' is 
protected
YanisEOS (1).pde:111: error: within this context

Original issue reported on code.google.com by dmx...@gmail.com on 13 Nov 2013 at 12:16

Attachments:

GoogleCodeExporter commented 9 years ago
What am I doing wrong?

Original comment by dmx...@gmail.com on 13 Nov 2013 at 12:24

GoogleCodeExporter commented 9 years ago
Are you able to compile the other canon ptp examples? You should setup your 
system such that you can successfully compile the PTP examples first. It looks 
to me that there is something wrong with your USBHost library.  

Yanis.pde depends on the proper installation of the two libraries to work 
properly (PTP and USB host). Try contacting the author of the usbhost libraries 
at: support@circuitsathome.com if you still cannot ressolve this issue. 

Original comment by manis...@gmail.com on 13 Nov 2013 at 2:16

GoogleCodeExporter commented 9 years ago
all other canon ptp examples give me an errors.

Original comment by dmx...@gmail.com on 13 Nov 2013 at 9:06

Attachments:

GoogleCodeExporter commented 9 years ago
another error

Original comment by dmx...@gmail.com on 13 Nov 2013 at 9:09

Attachments:

GoogleCodeExporter commented 9 years ago
please need help .

what im doing worng 
see pic.

Original comment by dmx...@gmail.com on 14 Nov 2013 at 7:55

Attachments:

GoogleCodeExporter commented 9 years ago
Please try with a fresh install of Arduino IDE. Use the current instructions on 
the USBHost Library and ptp libraries from here:

https://github.com/felis/USB_Host_Shield_2.0
https://github.com/felis/PTP_2.0

Original comment by manis...@gmail.com on 14 Nov 2013 at 8:08

GoogleCodeExporter commented 9 years ago
still dealing with errors.
i did a video of what i did. if you can chack it , please.
http://youtu.be/q_mZ-e9H-V0

Original comment by dmx...@gmail.com on 14 Nov 2013 at 11:46

Attachments:

GoogleCodeExporter commented 9 years ago
done compiling and uploaded to my pro mini !!

my steps was:
1. download and Extract those 2 zips files.
2. removing the '-master' in the resulting folder names, copy the folders to 
the arduino library folder.
3. choosing from menu>file>examples>libraries>PTP_2>Canon_EOS>yanis_ptp20 .
4. upload. 
done.

thank you very mach for your help.

Original comment by dmx...@gmail.com on 14 Nov 2013 at 5:36

Attachments: