Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while compiling 3.0.1R4 #203

Open
asaadcivic99 opened this issue Jun 7, 2015 · 2 comments
Open

Error while compiling 3.0.1R4 #203

asaadcivic99 opened this issue Jun 7, 2015 · 2 comments

Comments

@asaadcivic99
Copy link

Im a newbie and I have an HK AIO board. Im using Arduino version from the link in the megapirate site. and I get the following error while compiling the code:

In file included from D:\FPV\Quad\ArduPilot-Arduino-1.0.3-gcc-4.8.2-windows\ArduPilot-Arduino-1.0.3-windows\libraries\AP_HAL_PX4/AP_HAL_PX4.h:6:0,
from ArduCopter.pde:74:
D:\FPV\Quad\ArduPilot-Arduino-1.0.3-gcc-4.8.2-windows\ArduPilot-Arduino-1.0.3-windows\libraries\AP_HAL_PX4/HAL_PX4_Class.h:11:34: fatal error: systemlib/visibility.h: No such file or directory
#include <systemlib/visibility.h>
^
compilation terminated.

@CrashDBN
Copy link

Hi there. Why not use the flash tool to upload, way way easier than using Arduino.

@Bazmundi
Copy link

Bazmundi commented Nov 19, 2017

@CrashDBN good job! He hasn't compiled it yet so it won't matter what tool you use to flash.

@asaadcivic99 I am in same boat. Downloaded tools and source, followed instructions. Built fails at another spot to yours. Have you copied all the libraries under Arduino folder?

In any event, I am getting: avr-gcc: error: unrecognized command line option '-assembler-with-cpp'. Looks like I have to stop working on Windows 10 and move to Ubuntu??!?!. A bit hard since there are only a windows and a mac version of MegaPirateNG. Or, change to an older version of the compiler??

Or the MegaPirate IDE needs be rebuilt using "-x assembler-with-cpp" option.

Let's face it, MegaPirateNG comes with the compiler that failed to compile the source so there is some problem that is not well documented and no one has fixed it yes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants