Store › Forums › Hackvision › Bugs/Problems › None of the games working
- This topic has 5 replies, 3 voices, and was last updated 8 years, 10 months ago by Michael.
-
AuthorPosts
-
March 6, 2015 at 5:39 am #757oodayreksMember
The first post didn’t seem to go through…
I bought the build it yourself Hackvisions and am trying to upload code but it won’t compile!
I tried both Asteroids and SpaceInvaders which get compiling errors. The DemoNTSC example on the TV Out Google code works perfect.I think my directories are fine…
Arduino Folder: http://puu.sh/gotqY/ee9b075e0a.png
Libraries Folder: http://puu.sh/gotrD/593c9fba64.pngI just opened the sketches and tried to upload them, am I supposed to do something else (import libraries and stuff?). This is one of my first experiences, please help!
Here are the compile errors:
Space Invaders: Arduino: 1.6.0 (Windows 8), Board: “Arduino Uno”SpaceInvaders.ino:57:7: error: ‘prog_uint16_t’ does not name a type
SpaceInvaders.ino:60:1: error: ‘prog_char’ does not name a type
SpaceInvaders.ino:61:1: error: ‘prog_char’ does not name a type
SpaceInvaders.ino:62:1: error: ‘prog_char’ does not name a type
SpaceInvaders.ino:63:1: error: ‘prog_char’ does not name a type
SpaceInvaders.ino:64:1: error: ‘prog_char’ does not name a type
SpaceInvaders.ino:65:1: error: ‘prog_char’ does not name a type
SpaceInvaders.ino:66:1: error: ‘prog_char’ does not name a type
SpaceInvaders.ino:67:1: error: ‘prog_char’ does not name a type
SpaceInvaders.ino:68:1: error: ‘prog_char’ does not name a type
SpaceInvaders.ino:71:29: error: variable ‘strings’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
SpaceInvaders.ino:71:34: error: ‘s0’ was not declared in this scope
SpaceInvaders.ino:71:38: error: ‘s1’ was not declared in this scope
SpaceInvaders.ino:71:42: error: ‘s2’ was not declared in this scope
SpaceInvaders.ino:71:46: error: ‘s3’ was not declared in this scope
SpaceInvaders.ino:71:50: error: ‘s4’ was not declared in this scope
SpaceInvaders.ino:71:54: error: ‘s5’ was not declared in this scope
SpaceInvaders.ino:71:58: error: ‘s6’ was not declared in this scope
SpaceInvaders.ino:71:62: error: ‘s7’ was not declared in this scope
SpaceInvaders.ino:71:66: error: ‘s8’ was not declared in this scope
SpaceInvaders.ino: In function ‘void drawBitmap(byte, byte, unsigned int)’:
SpaceInvaders.ino:827:9: error: ‘prog_uint16_t’ does not name a type
In file included from SpaceInvaders.ino:17:0:
SpaceInvaders.ino:847:24: error: ‘index’ was not declared in this scope
Error compiling.This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.
Asteroids:
Arduino: 1.6.0 (Windows 8), Board: “Arduino Uno”java.io.IOException: Access is denied
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(Unknown Source)
at java.io.File.createTempFile(Unknown Source)
at processing.app.BaseNoGui.saveFile(Unknown Source)
at processing.app.SketchCode.save(Unknown Source)
at processing.app.SketchData.save(Unknown Source)
at processing.app.Sketch.save(Sketch.java:604)
at processing.app.Editor.handleSave2(Editor.java:2265)
at processing.app.Editor.handleSave(Editor.java:2247)
at processing.app.Editor.handleRun(Editor.java:1900)
at processing.app.EditorToolbar.mousePressed(EditorToolbar.java:324)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Access is denied
In file included from C:Program Files (x86)ArduinolibrariesControllers/Controllers.h:5:0,
from Asteroids.pde:2:
C:Program Files (x86)ArduinolibrariesControllers/Nunchuk.h:47:18: error: ‘TVout’ has not been declared
uint8_t init(TVout, uint8_t);
^
In file included from Asteroids.pde:32:0:
title_bitmap.h:6:8: error: ‘prog_uchar’ does not name a type
extern prog_uchar title_bitmap[];
^
In file included from Asteroids.pde:33:0:
hackvision_logo_bitmap.h:6:8: error: ‘prog_uchar’ does not name a type
extern prog_uchar hackvision_logo_bitmap[];
^
In file included from Asteroids.pde:34:0:
asteroid_bitmaps.h:6:8: error: ‘prog_uchar’ does not name a type
extern prog_uchar asteroid_bitmaps[];
^
In file included from Asteroids.pde:35:0:
asteroid_vertices.h:6:8: error: ‘prog_uchar’ does not name a type
extern prog_uchar asteroid_vertices[];
^
In file included from Asteroids.pde:36:0:
ship_bitmaps.h:6:8: error: ‘prog_uchar’ does not name a type
extern prog_uchar ship_bitmaps[];
^
In file included from Asteroids.pde:37:0:
ship_vertices.h:6:8: error: ‘prog_uchar’ does not name a type
extern prog_uchar ship_vertices[];
^
In file included from Asteroids.pde:38:0:
saucer_bitmaps.h:6:8: error: ‘prog_uchar’ does not name a type
extern prog_uchar saucer_bitmaps[];
^
In file included from Asteroids.pde:39:0:
saucer_vertices.h:6:8: error: ‘prog_uchar’ does not name a type
extern prog_uchar saucer_vertices[];
^
In file included from Asteroids.pde:40:0:
explosion_bitmaps.h:6:8: error: ‘prog_uchar’ does not name a type
extern prog_uchar explosion_bitmaps[];
^
In file included from Asteroids.pde:41:0:
ship_explosion_bitmaps.h:6:8: error: ‘prog_uchar’ does not name a type
extern prog_uchar ship_explosion_bitmaps[];
^
In file included from Asteroids.pde:42:0:
explosion_frequencies.h:6:8: error: ‘prog_uchar’ does not name a type
extern prog_uchar explosionFreq[];
^
Asteroids.pde:91:1: error: ‘prog_char’ does not name a type
Asteroids.pde:92:1: error: ‘prog_char’ does not name a type
Asteroids.pde:93:1: error: ‘prog_char’ does not name a type
Asteroids.pde:94:1: error: ‘prog_char’ does not name a type
Asteroids.pde:96:29: error: variable ‘strings’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
Asteroids.pde:96:34: error: ‘s0’ was not declared in this scope
Asteroids.pde:96:38: error: ‘s1’ was not declared in this scope
Asteroids.pde:96:42: error: ‘s2’ was not declared in this scope
Asteroids.pde:96:46: error: ‘s3’ was not declared in this scope
Asteroids.pde: In function ‘void drawAsteroid(Asteroid)’:
Asteroids.pde:121:27: error: ‘asteroid_bitmaps’ was not declared in this scope
Asteroids.pde: In function ‘void eraseAsteroid(Asteroid)’:
Asteroids.pde:125:25: error: ‘asteroid_bitmaps’ was not declared in this scope
Asteroids.pde: In function ‘void displayScore()’:
Asteroids.pde:597:27: error: ‘ship_bitmaps’ was not declared in this scope
Asteroids.pde: In function ‘void drawExplosions()’:
Asteroids.pde:606:48: error: ‘explosion_bitmaps’ was not declared in this scope
Asteroids.pde:611:50: error: ‘explosion_bitmaps’ was not declared in this scope
Asteroids.pde:619:48: error: ‘ship_explosion_bitmaps’ was not declared in this scope
Asteroids.pde:624:50: error: ‘ship_explosion_bitmaps’ was not declared in this scope
Asteroids.pde: In function ‘void drawSaucer()’:
Asteroids.pde:649:35: error: ‘saucer_bitmaps’ was not declared in this scope
Asteroids.pde: In function ‘void drawShip()’:
Asteroids.pde:802:37: error: ‘ship_bitmaps’ was not declared in this scope
In file included from C:Program Files (x86)Arduinohardwarearduinoavrcoresarduino/Arduino.h:28:0,
from C:Program Files (x86)ArduinolibrariesControllers/ButtonController.h:17,
from Asteroids.pde:1:
Asteroids.pde: In function ‘boolean detectCollisions()’:
Asteroids.pde:865:28: error: ‘asteroid_vertices’ was not declared in this scope
Asteroids.pde:866:13: error: ‘asteroid_vertices’ was not declared in this scope
Asteroids.pde:870:17: error: ‘ship_vertices’ was not declared in this scope
Asteroids.pde:920:76: error: ‘explosion_bitmaps’ was not declared in this scope
Asteroids.pde:1011:13: error: ‘saucer_vertices’ was not declared in this scope
Asteroids.pde:1026:32: error: ‘saucer_bitmaps’ was not declared in this scope
Asteroids.pde:1055:32: error: ‘saucer_bitmaps’ was not declared in this scope
Asteroids.pde:1059:76: error: ‘explosion_bitmaps’ was not declared in this scope
Asteroids.pde:1074:17: error: ‘ship_vertices’ was not declared in this scope
Asteroids.pde: In function ‘void die()’:
Asteroids.pde:1101:36: error: ‘ship_bitmaps’ was not declared in this scope
Asteroids.pde: In function ‘boolean titleScreen()’:
Asteroids.pde:1119:24: error: ‘asteroid_bitmaps’ was not declared in this scope
Asteroids.pde:1126:25: error: ‘ship_bitmaps’ was not declared in this scope
Asteroids.pde:1128:24: error: ‘explosion_bitmaps’ was not declared in this scope
Asteroids.pde:1131:24: error: ‘title_bitmap’ was not declared in this scope
Asteroids.pde:1136:25: error: ‘hackvision_logo_bitmap’ was not declared in this scope
Asteroids.pde: In function ‘boolean getInput()’:
Asteroids.pde:1558:39: error: ‘ship_bitmaps’ was not declared in this scope
In file included from C:Program Files (x86)Arduinohardwarearduinoavrcoresarduino/Arduino.h:28:0,
from C:Program Files (x86)ArduinolibrariesControllers/ButtonController.h:17,
from Asteroids.pde:1:
Asteroids.pde: In function ‘void soundISR()’:
Asteroids.pde:1713:27: error: ‘explosionFreq’ was not declared in this scope
Error compiling.This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.March 6, 2015 at 8:00 pm #2228MichaelKeymasteravr-gcc changed the way PROGMEM variables need to be declared, and Arduino 1.5 beta and 1.6 use this new avr-gcc. Unfortunately that breaks every Arduino program that uses PROGMEM unless the code is changed.
In the mean time, you can compile with Arduino 1.0.x and you should have no problem.
I need to update the source code for the games to use the new C syntax for PROGMEM declarations.March 6, 2015 at 11:53 pm #2211oodayreksMemberOhhhhhh that makes sense. Let me download an older version and try it out.
March 7, 2015 at 2:06 pm #2215MichaelKeymasterSome of the games like Asteroids may not load onto the chip using the IDE. The Asteroids program is very large and it used to load just fine on a Duemilanove bootloader when it was developed, but now with the Uno bootloader on the chip, it may not work. IF this is the case you can always load it from the command line using a precompiled .hex file.
Precompiled Asteroids.cpp.hex file: http://nootropicdesign.com/hackvision/downloads/games/Asteroids.cpp.hex
Command line:
C:arduino-1.0.6hardwaretoolsavrbinavrdude.exe
-C C:arduino-1.0.6hardwaretoolsavretcavrdude.conf -patmega328p
-carduino -P COM1 -b115200 -D -Uflash:w:Asteroids.cpp.hex:iOS X:
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude
-C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -patmega328p
-carduino -P/dev/tty.usbserial-A8008i5O -b115200 -D -Uflash:w:Asteroids.cpp.hex:i
Substitute in the proper port names (the -P option).
February 29, 2016 at 12:13 pm #2405KadirParticipantHello ,
what solution give you me for this compiling error. Which library should I use?
APC_07_Asteroids:1372: error: ‘class TVout’ has no member named ‘print’
February 29, 2016 at 2:39 pm #2406MichaelKeymasterThe instructions for the library dependencies are clearly described on the games page:
http://nootropicdesign.com/hackvision/games.htmlThere are links to the libraries.
-
AuthorPosts
- You must be logged in to reply to this topic.