Noob Compilation Error

Hi, brand new to Arduino. I'm assembling pieces of an old project done by several other people long gone. Hardware is a Gameduino attached to an UNO R3. It works, just cycling between 18 images on the SD card anytime the touchscreen is touched. I was given the simple sketch attached (supposedly what's already uploaded) as a starting point to add a few features. I'll certainly be asking for help there too, but I can't upload this program, I'm getting:

Compilation error: Error: 13 INTERNAL: exit status 1

Any glaring errors in the code? Thanks in advance.

#include <EEPROM.h>
#include <SPI.h>
#include <GD2.h>

#include "SceneService.h"
#include "SoundService.h"
#include "o3.h"

bool down_last_frame = false;

void setup() 
{
  Serial.begin(115200);

  GD.begin();
   
  LOAD_ASSETS();
}

void touched(int x, int y)
{
    // Serial.print("touched "); 
    // Serial.print(x);
    // Serial.print(", ");
    //Serial.println(y);
  
   int scene_id  = SceneService::_next();
   //just playing what ever sound matches index for now
  // SoundService::play(scene_id);
     
}
void check_input()
{
   GD.get_inputs();
   if(GD.inputs.x != -32768)
   {
     
     if(!down_last_frame)
     {
        touched(GD.inputs.x,GD.inputs.y);
     }
     down_last_frame = true;
     
   }
   else
   {
     down_last_frame = false;
   }

}

void loop() 
{
   check_input();
   SceneService::_draw();
   SoundService::feed();
    
}

What did the complete error message say ?

That's the whole message, screenshot attached.

I’d like to help, but haven’t tried 2.x yet.
That message isn’t much help!

It looks like a real ‘internal’ error (completely unhelpful - like me), maybe someone familiar with v2 can help, or perhaps you can try to uninstall & reinstall the v2 IDE - sorry.

Hi @erco. I'm going to ask you to post some additional information that might help us to identify the problem.

Please do this:

  1. Select File > Preferences from the Arduino IDE's menus.
  2. Check the box next to "Show verbose output during: [] compilation".
  3. Click the OK button.
  4. Select Sketch > Verify/Compile from the Arduino IDE's menus.
  5. Wait for the compilation to end.
  6. Right click on the black "Output" pane at the bottom of the Arduino IDE 2.x window.
  7. From the context menu, click Copy All.
  8. Open a forum reply here by clicking the Reply button.
  9. Click the </> icon on the post composer toolbar. This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  10. Press Ctrl+V. This will paste the compilation output into the code block.
  11. Move the cursor outside of the code tags before you add any additional text to your reply.
  12. Click the Reply button to post the output.

For a beginner, I recommend you use the current supported version (1.8.16) and not the 2.0 beta-test version.

Some day the 2.0 version will be ready for everyone, but not today. :slight_smile:

1 Like

TYVM all, I did not realize I was using a Beta IDE (mistake #1). On 1.8.15, I get this error message that I need the Gameduino library:

Arduino: 1.8.15 (Windows 10), Board: "Arduino Uno"

sketch_oct13a:3:10: fatal error: GD2.h: No such file or directory

#include <GD2.h>

      ^~~~~~~

compilation terminated.

exit status 1

GD2.h: No such file or directory

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I'm off to the races with v1.8.16 and the Gameduino library. Thanks all, I'm sure to have more questions as I slog thru the code.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.