Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
APM - 2.9 Include paths appear to be wrong (Read 12861 times)
Jean Cyr
Newbies
*
Offline



Posts: 8
APM - 2.9 Include paths appear to be wrong
Jun 2nd, 2013 at 8:07pm
 
Builds fine with sketch, but fails with visual micro:

Compiling 'ArduCopter' for 'Arduino Mega 2560 HAL (Apm 2)'
BetterStream.h : In file included from
FastSerial.h : from
ArduCopter.ino : from
AP_Common.h : No such file or directory

Tried everything suggested above. INCLUDE paths don't seem to setup right! What next?

Windows 7 64
MSVS 2012
arduino 1.0.5
latest visualmicro download
arducopter 2.9.1b-final


Back to top
« Last Edit: Jun 2nd, 2013 at 8:20pm by Visual Micro »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10617
United Kingdom
Re: APM - 2.9 Include paths appear to be wrong
Reply #1 - Jun 2nd, 2013 at 8:27pm
 
Hi,

I hope you don't mind I moved this to a new thread. It is always better to create a new thread unless the problem and configuration is identical to another.

For the sake of clarity it might be better that you use arduino 1.0.4 instead of 1.0.5 because 1.0.5 hasn't been well tested yet, as as you could see in the other thread 1.0.4 is currently recommended.

You will probably hit the same problem with 1.0.4 but it removes some possible unknowns.

The include paths are determined from the SketchBook folder (where the Libraries folder exsists as a sub folder).

If I recall correctly, normally for APM, you are advised to set the folder using "File>Preferences" in the Arduino Ide.

In Visual Micro there are two ways to set the correct SketchBook location, either you set it in the Arduino ide as mentioned above, then you must re-start Visual Micro/Visual Studio/Atmel

Or

The location can be set in the Visual Micro options in which case the change will take immediate effect (restart not required)

"tools>options>visual micro\applications locations>arduino sketchbook"

Can you confirm if this helps, if not please explain where the libraries are located and what your sketchbook folder is set to?

Thanks
Back to top
 
WWW  
IP Logged
 
Jean Cyr
Newbies
*
Offline



Posts: 8
Re: APM 2.9 and the build process
Reply #2 - Jun 2nd, 2013 at 8:35pm
 
Here's the verbose output:

Board Properties
name=Arduino Mega 2560 HAL (Apm 2)
upload.protocol=wiring
upload.maximum_size=258048
upload.speed=115200
bootloader.low_fuses=0xFF
bootloader.high_fuses=0xD8
bootloader.extended_fuses=0xFD
bootloader.path=stk500v2
bootloader.file=stk500boot_v2_mega2560.hex
bootloader.unlock_bits=0x3F
bootloader.lock_bits=0x0F
build.mcu=atmega2560
build.f_cpu=16000000L
build.nocore=true
build.noarchive=true
build.option1=-mcall-prologues
build.option2=-DCONFIG_HAL_BOARD=HAL_BOARD_APM2
build.option3=-DEXCLUDECORE
build.linkoption1=-mcall-prologues
runtime.ide.path=C:\Program Files (x86)\Arduino
build.system.path=C:\Users\jcyr\Data\Arduino\hardware\apm\system
software=ARDUINO
runtime.ide.version=105
vm.core.include=wprogram.h
vm.boardsource.path=C:\Users\jcyr\Data\Arduino\hardware\apm
vm.boardsource.name=boards.txt
vm.platformname.name=
compiler.path=C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\
includes= -I"C:\Users\jcyr\Data\Arduino\libraries\FastSerial"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Common"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Menu"  -I"C:\Users\jcyr\Data\Arduino\libraries\Arduino_Mega_ISR_Registry"  -I"C:\Users\jcyr\Data\Arduino\libraries\APM_RC"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_GPS"  -I"C:\Users\jcyr\Data\Arduino\libraries\I2C"  -I"C:\Program Files (x86)\Arduino\libraries\SPI"  -I"C:\Users\jcyr\Data\Arduino\libraries\SPI3"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Semaphore"  -I"C:\Users\jcyr\Data\Arduino\libraries\DataFlash"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_ADC"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_AnalogSource"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Baro"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Compass"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Math"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_InertialSensor"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_PeriodicProcess"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_AHRS"  -I"C:\Users\jcyr\Data\Arduino\libraries\APM_PI"  -I"C:\Users\jcyr\Data\Arduino\libraries\AC_PID"  -I"C:\Users\jcyr\Data\Arduino\libraries\RC_Channel"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Motors"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_RangeFinder"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_OpticalFlow"  -I"C:\Users\jcyr\Data\Arduino\libraries\Filter"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Buffer"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_LeadFilter"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Relay"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Camera"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Mount"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Airspeed"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_InertialNav"  -I"C:\Users\jcyr\Data\Arduino\libraries\DigitalWriteFast"  -I"C:\Users\jcyr\Data\Arduino\libraries\memcheck"  -I"C:\Users\jcyr\Data\Arduino\libraries\GCS_MAVLink"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Declination"  -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Limits"  -I"C:\Users\jcyr\Data\Arduino\libraries\SITL"
build.path=C:\Users\jcyr\AppData\Local\VMicro\Arduino\Builds\ArduCopter\apm2_256
0HAL
build.project_name=ArduCopter
build.variant.path=
archive_file=core.a
object_file="C:\Users\jcyr\AppData\Local\VMicro\Arduino\Builds\ArduCopter\apm2_2
560HAL\ArduCopter.cpp.o"
source_file="C:\Users\jcyr\AppData\Local\VMicro\Arduino\Builds\ArduCopter\apm2_2
560HAL\ArduCopter.cpp"

Compiling 'ArduCopter' for 'Arduino Mega 2560 HAL (Apm 2)'
Build folder: file://C:\Users\jcyr\AppData\Local\VMicro\Arduino\Builds\ArduCopter\apm2_2560HAL

SketchLibFolders
;C:\Users\jcyr\Data\Arduino\libraries\FastSerial;C:\Users\jcyr\Data\Arduino\libr
aries\FastSerial\utility;C:\Users\jcyr\Data\Arduino\libraries\AP_Common;C:\Users
\jcyr\Data\Arduino\libraries\AP_Common\utility;C:\Users\jcyr\Data\Arduino\librar
ies\AP_Menu;C:\Users\jcyr\Data\Arduino\libraries\AP_Menu\utility;C:\Users\jcyr\D
ata\Arduino\libraries\Arduino_Mega_ISR_Registry;C:\Users\jcyr\Data\Arduino\libra
ries\Arduino_Mega_ISR_Registry\utility;C:\Users\jcy
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10617
United Kingdom
Re: APM - 2.9 Include paths appear to be wrong
Reply #3 - Jun 2nd, 2013 at 8:55pm
 
Hi,

First thing to do please install arduino 1.0.4 from arduino.cc and set visual micro to use that.

Thanks
Back to top
 
WWW  
IP Logged
 
Jean Cyr
Newbies
*
Offline



Posts: 8
Re: APM - 2.9 Include paths appear to be wrong
Reply #4 - Jun 3rd, 2013 at 9:51pm
 
Tried 1.0.4... same exact result

The library files are located in a subfolder of of the sketch book forlder called 'libraries', which is not within the Arduino install folder. In visualmicro, all of the libs show up correctly as included.

Also the sketchbook folder location is set explicitly in both sketchbook and visualmicro.

Also note, that building under sketchbook works without error.
Back to top
« Last Edit: Jun 3rd, 2013 at 9:58pm by Jean Cyr »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10617
United Kingdom
Re: APM - 2.9 Include paths appear to be wrong
Reply #5 - Jun 3rd, 2013 at 10:34pm
 
Hello,

Thanks for using 1.0.4, I am sure 1.0.5 is fine but we have some confusion and the ide is now removed from any possible cause.

Few questions then I think I will have the answer

1)
When you say building under "sketchbook" is OK, do you mean building in the modified diydrones Arduino IDE is OK?


2)
Can you please confirm the path that you have set for your sketchBook folder and where this is set? (confirm the name of the property you have set and the value you have used)

3)

Please confirm the path of the Arduino Ide that you are using (confirm the name of the property you have set and the value you have used)

4)

Please include the build output like you did below but with the latest config

There is some confusion with path configuration, I will explain it more clearly once I understand your current setup

Thanks
Back to top
« Last Edit: Jun 3rd, 2013 at 10:38pm by Visual Micro »  
WWW  
IP Logged
 
Jean Cyr
Newbies
*
Offline



Posts: 8
Re: APM - 2.9 Include paths appear to be wrong
Reply #6 - Jun 4th, 2013 at 2:39am
 
1)
Using standard Arduino 1.0.4 IDE, not diydrones.



2)
C:\Program Files (x86)\arduino-1.0.4

3)
C:\Users\jcyr\Data\Arduino

4)

Board Properties
name=Arduino Mega 2560 HAL (Apm 2)
upload.protocol=wiring
upload.maximum_size=258048
upload.speed=115200
bootloader.low_fuses=0xFF
bootloader.high_fuses=0xD8
bootloader.extended_fuses=0xFD
bootloader.path=stk500v2
bootloader.file=stk500boot_v2_mega2560.hex
bootloader.unlock_bits=0x3F
bootloader.lock_bits=0x0F
build.mcu=atmega2560
build.f_cpu=16000000L
build.nocore=true
build.noarchive=true
build.option1=-mcall-prologues
build.option2=-DCONFIG_HAL_BOARD=HAL_BOARD_APM2
build.option3=-DEXCLUDECORE
build.linkoption1=-mcall-prologues
runtime.ide.path=C:\Program Files (x86)\arduino-1.0.4
build.system.path=C:\Users\jcyr\Data\Arduino\hardware\apm\system
software=ARDUINO
runtime.ide.version=104
vm.core.include=wprogram.h
vm.boardsource.path=C:\Users\jcyr\Data\Arduino\hardware\apm
vm.boardsource.name=boards.txt
vm.platformname.name=
compiler.path=C:\Program Files (x86)\arduino-1.0.4\hardware\tools\avr\bin\
includes= -I"C:\Users\jcyr\Data\Arduino\libraries\FastSerial" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Common" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Menu" -I"C:\Users\jcyr\Data\Arduino\libraries\Arduino_Mega_ISR_Registry" -I"C:\Users\jcyr\Data\Arduino\libraries\APM_RC" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_GPS" -I"C:\Users\jcyr\Data\Arduino\libraries\I2C" -I"C:\Program Files (x86)\arduino-1.0.4\libraries\SPI" -I"C:\Users\jcyr\Data\Arduino\libraries\SPI3" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Semaphore" -I"C:\Users\jcyr\Data\Arduino\libraries\DataFlash" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_ADC" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_AnalogSource" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Baro" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Compass" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Math" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_InertialSensor" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_PeriodicProcess" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_AHRS" -I"C:\Users\jcyr\Data\Arduino\libraries\APM_PI" -I"C:\Users\jcyr\Data\Arduino\libraries\AC_PID" -I"C:\Users\jcyr\Data\Arduino\libraries\RC_Channel" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Motors" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_RangeFinder" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_OpticalFlow" -I"C:\Users\jcyr\Data\Arduino\libraries\Filter" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Buffer" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_LeadFilter" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Relay" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Camera" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Mount" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Airspeed" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_InertialNav" -I"C:\Users\jcyr\Data\Arduino\libraries\DigitalWriteFast" -I"C:\Users\jcyr\Data\Arduino\libraries\memcheck" -I"C:\Users\jcyr\Data\Arduino\libraries\GCS_MAVLink" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Declination" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Limits" -I"C:\Users\jcyr\Data\Arduino\libraries\SITL"
build.path=C:\Users\jcyr\AppData\Local\VMicro\Arduino\Builds\ArduCopter\apm2_256
0HAL
build.project_name=ArduCopter
build.variant.path=
archive_file=core.a
object_file="C:\Users\jcyr\AppData\Local\VMicro\Arduino\Builds\ArduCopter\apm2_2
560HAL\ArduCopter.cpp.o"
source_file="C:\Users\jcyr\AppData\Local\VMicro\Arduino\Builds\ArduCopter\apm2_2
560HAL\ArduCopter.cpp"

Compiling 'ArduCopter' for 'Arduino Mega 2560 HAL (Apm 2)'
Build folder: file://C:\Users\jcyr\AppData\Local\VMicro\Arduino\Builds\ArduCopter\apm2_2560HAL

Back to top
« Last Edit: Jun 4th, 2013 at 2:43am by Jean Cyr »  
 
IP Logged
 
Jean Cyr
Newbies
*
Offline



Posts: 8
Re: APM - 2.9 Include paths appear to be wrong
Reply #7 - Jun 4th, 2013 at 2:42am
 
Continued:

SketchLibFolders
;C:\Users\jcyr\Data\Arduino\libraries\FastSerial;C:\Users\jcyr\Data\Arduino\libr
aries\FastSerial\utility;C:\Users\jcyr\Data\Arduino\libraries\AP_Common;C:\Users
\jcyr\Data\Arduino\libraries\AP_Common\utility;C:\Users\jcyr\Data\Arduino\librar
ies\AP_Menu;C:\Users\jcyr\Data\Arduino\libraries\AP_Menu\utility;C:\Users\jcyr\D
ata\Arduino\libraries\Arduino_Mega_ISR_Registry;C:\Users\jcyr\Data\Arduino\libra
ries\Arduino_Mega_ISR_Registry\utility;C:\Users\jcyr\Data\Arduino\libraries\APM_
RC;C:\Users\jcyr\Data\Arduino\libraries\APM_RC\utility;C:\Users\jcyr\Data\Arduin
o\libraries\AP_GPS;C:\Users\jcyr\Data\Arduino\libraries\AP_GPS\utility;C:\Users\
jcyr\Data\Arduino\libraries\I2C;C:\Users\jcyr\Data\Arduino\libraries\I2C\utility
;C:\Program Files (x86)\arduino-1.0.4\libraries\SPI;C:\Program Files (x86)\arduino-1.0.4\libraries\SPI\utility;C:\Users\jcyr\Data\Arduino\libraries\S
PI3;C:\Users\jcyr\Data\Arduino\libraries\SPI3\utility;C:\Users\jcyr\Data\Arduino
\libraries\AP_Semaphore;C:\Users\jcyr\Data\Arduino\libraries\AP_Semaphore\utilit
y;C:\Users\jcyr\Data\Arduino\libraries\DataFlash;C:\Users\jcyr\Data\Arduino\libr
aries\DataFlash\utility;C:\Users\jcyr\Data\Arduino\libraries\AP_ADC;C:\Users\jcy
r\Data\Arduino\libraries\AP_ADC\utility;C:\Users\jcyr\Data\Arduino\libraries\AP_
AnalogSource;C:\Users\jcyr\Data\Arduino\libraries\AP_AnalogSource\utility;C:\Use
rs\jcyr\Data\Arduino\libraries\AP_Baro;C:\Users\jcyr\Data\Arduino\libraries\AP_B
aro\utility;C:\Users\jcyr\Data\Arduino\libraries\AP_Compass;C:\Users\jcyr\Data\A
rduino\libraries\AP_Compass\utility;C:\Users\jcyr\Data\Arduino\libraries\AP_Math
;C:\Users\jcyr\Data\Arduino\libraries\AP_Math\utility;C:\Users\jcyr\Data\Arduino
\libraries\AP_InertialSensor;C:\Users\jcyr\Data\Arduino\libraries\AP_InertialSen
sor\utility;C:\Users\jcyr\Data\Arduino\libraries\AP_PeriodicProcess;C:\Users\jcy
r\Data\Arduino\libraries\AP_PeriodicProcess\utility;C:\Users\jcyr\Data\Arduino\l
ibraries\AP_AHRS;C:\Users\jcyr\Data\Arduino\libraries\AP_AHRS\utility;C:\Users\j
cyr\Data\Arduino\libraries\APM_PI;C:\Users\jcyr\Data\Arduino\libraries\APM_PI\ut
ility;C:\Users\jcyr\Data\Arduino\libraries\AC_PID;C:\Users\jcyr\Data\Arduino\lib
raries\AC_PID\utility;C:\Users\jcyr\Data\Arduino\libraries\RC_Channel;C:\Users\j
cyr\Data\Arduino\libraries\RC_Channel\utility;C:\Users\jcyr\Data\Arduino\librari
es\AP_Motors;C:\Users\jcyr\Data\Arduino\libraries\AP_Motors\utility;C:\Users\jcy
r\Data\Arduino\libraries\AP_RangeFinder;C:\Users\jcyr\Data\Arduino\libraries\AP_
RangeFinder\utility;C:\Users\jcyr\Data\Arduino\libraries\AP_OpticalFlow;C:\Users
\jcyr\Data\Arduino\libraries\AP_OpticalFlow\utility;C:\Users\jcyr\Data\Arduino\l
ibraries\Filter;C:\Users\jcyr\Data\Arduino\libraries\Filter\utility;C:\Users\jcy
r\Data\Arduino\libraries\AP_Buffer;C:\Users\jcyr\Data\Arduino\libraries\AP_Buffe
r\utility;C:\Users\jcyr\Data\Arduino\libraries\AP_LeadFilter;C:\Users\jcyr\Data\
Arduino\libraries\AP_LeadFilter\utility;C:\Users\jcyr\Data\Arduino\libraries\AP_
Relay;C:\Users\jcyr\Data\Arduino\libraries\AP_Relay\utility;C:\Users\jcyr\Data\A
rduino\libraries\AP_Camera;C:\Users\jcyr\Data\Arduino\libraries\AP_Camera\utilit
y;C:\Users\jcyr\Data\Arduino\libraries\AP_Mount;C:\Users\jcyr\Data\Arduino\libra
ries\AP_Mount\utility;C:\Users\jcyr\Data\Arduino\libraries\AP_Airspeed;C:\Users\
jcyr\Data\Arduino\libraries\AP_Airspeed\utility;C:\Users\jcyr\Data\Arduino\libra
ries\AP_InertialNav;C:\Users\jcyr\Data\Arduino\libraries\AP_InertialNav\utility;
C:\Users\jcyr\Data\Arduino\libraries\DigitalWriteFast;C:\Users\jcyr\Data\Arduino
\libraries\DigitalWriteFast\utility;C:\Users\jcyr\Data\Arduino\libraries\memchec
k;C:\Users\jcyr\Data\Arduino\libraries\memcheck\utility;C:\Users\jcyr\Data\Ardui
no\libraries\GCS_MAVLink;C:\Users\jcyr\Data\Arduino\libraries\GCS_MAVLink\utilit
y;C:\Users\jcyr\Data\Arduino\libraries\AP_Declination;C:\Users\jcyr\Data\Arduino
\libraries\AP_Declination\utility;C:\Users\jcyr\Data\Arduino\libraries\AP_Limits
;C:\Users\jcyr\Data\Arduino\libraries\AP_Limits\utility;C:\Use
Back to top
 
 
IP Logged
 
Jean Cyr
Newbies
*
Offline



Posts: 8
Re: APM - 2.9 Include paths appear to be wrong
Reply #8 - Jun 4th, 2013 at 2:44am
 
Continued:

Summary: Header=1 Prototypes=371 Imports=66
Additional Defines: VISUALMICRO_COMPILER_VER=1;
Architecture Tools: C:\Program Files (x86)\arduino-1.0.4\hardware\tools\avr\bin\
GCC: 4.3.2
Sketchbook: file://C:\Users\jcyr\Data\Arduino
C:\Program Files (x86)\arduino-1.0.4\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=104 -I"C:\Users\jcyr\Data\Arduino\libraries\FastSerial" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Common" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Menu" -I"C:\Users\jcyr\Data\Arduino\libraries\Arduino_Mega_ISR_Registry" -I"C:\Users\jcyr\Data\Arduino\libraries\APM_RC" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_GPS" -I"C:\Users\jcyr\Data\Arduino\libraries\I2C" -I"C:\Program Files (x86)\arduino-1.0.4\libraries\SPI" -I"C:\Users\jcyr\Data\Arduino\libraries\SPI3" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Semaphore" -I"C:\Users\jcyr\Data\Arduino\libraries\DataFlash" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_ADC" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_AnalogSource" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Baro" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Compass" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Math" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_InertialSensor" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_PeriodicProcess" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_AHRS" -I"C:\Users\jcyr\Data\Arduino\libraries\APM_PI" -I"C:\Users\jcyr\Data\Arduino\libraries\AC_PID" -I"C:\Users\jcyr\Data\Arduino\libraries\RC_Channel" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Motors" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_RangeFinder" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_OpticalFlow" -I"C:\Users\jcyr\Data\Arduino\libraries\Filter" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Buffer" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_LeadFilter" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Relay" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Camera" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Mount" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Airspeed" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_InertialNav" -I"C:\Users\jcyr\Data\Arduino\libraries\DigitalWriteFast" -I"C:\Users\jcyr\Data\Arduino\libraries\memcheck" -I"C:\Users\jcyr\Data\Arduino\libraries\GCS_MAVLink" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Declination" -I"C:\Users\jcyr\Data\Arduino\libraries\AP_Limits" -I"C:\Users\jcyr\Data\Arduino\libraries\SITL" -o "C:\Users\jcyr\AppData\Local\VMicro\Arduino\Builds\ArduCopter\apm2_2560HAL\ArduC
opter.cpp.o"  "C:\Users\jcyr\AppData\Local\VMicro\Arduino\Builds\ArduCopter\apm2_2560HAL\ArduC
opter.cpp"  -DVISUALMICRO_COMPILER_VER=1  -mcall-prologues -DCONFIG_HAL_BOARD=HAL_BOARD_APM2 -DEXCLUDECORE
FastSerial.h : In file included from
ArduCopter.ino : from
BetterStream.h : No such file or directory
BetterStream.h : In file included from
FastSerial.h : from
ArduCopter.ino : from
AP_Common.h : No such file or directory
FastSerial.h : In file included from
ArduCopter.ino : from
BetterStream.h : expected class-name before '{' token
BetterStream.h : 'va_list' has not been declared
BetterStream.h : 'va_list' has not been declared
ArduCopter.ino : In file included from
FastSerial.h : write' in 'class BetterStream'
AP_GPS_NMEA.h : In file included from
AP_GPS.h : from
ArduCopter.ino : from
GPS.h : ISO C++ forbids declaration of 'Stream' with no type
GPS.h : expected ';' before '*' token
GPS.h : expected `)' before '*' token
GPS.h : 'Stream' has not been declared
Back to top
 
 
IP Logged
 
Jean Cyr
Newbies
*
Offline



Posts: 8
Re: APM - 2.9 Include paths appear to be wrong
Reply #9 - Jun 5th, 2013 at 2:44pm
 
So... everything looks fine! Why the compile errors???

Arduino 1.0.4 UI doesn't have this problem but I'd prefer to be using Visual Studio.  Undecided
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10617
United Kingdom
Re: APM - 2.9 Include paths appear to be wrong
Reply #10 - Jun 5th, 2013 at 2:47pm
 
Hi, sorry I have not had time to investigate yet. Hopefully in a few days. The problem is that this is working for quite a few other people and there is little to the config. So I have to try to work out what is different for your install.

Arduino 1.0.4 can not compile APM projects so when you say it works in 1.0.4 what do you mean? Thanks
Back to top
 
WWW  
IP Logged
 
Jean Cyr
Newbies
*
Offline



Posts: 8
Re: APM - 2.9 Include paths appear to be wrong
Reply #11 - Jun 5th, 2013 at 8:50pm
 
I have no problem building APM with Arduino 1.0.4 if I select a 2560 board. It may not run on APM, but it builds.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10617
United Kingdom
Re: APM - 2.9 Include paths appear to be wrong
Reply #12 - Jun 5th, 2013 at 9:37pm
 
1)
Fine then you can not be running apm 2.9 because my understandingis that  diydrones made a modified Arduino ide to provide special compiler switches required for APM 2.9 and above.

2)
The HAL board you have selected in Visual Micro is for APM HAL, not a normal APM build, there is also SITL.

The Arduino IDE does not know about HAL or SITL so by selecting these boards you are moving to a different system and not comparing like for like.

3)

If the standard 2560 compiles in 1.0.4 then in Visual Micro you should use the Mega 2560 board with the same name that you select in the Arduino IDE. Do not use the special APM boards in the list because they contain different settings to 1.0.4 and you obviously don't need them.

Does it work if you selected the normal Arduino 2560 mega (adk) board?

Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print