User Tools

Site Tools


notes:data:fall2023:projects:btt0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:data:fall2023:projects:btt0 [2023/08/27 18:15] – [Prepare and build (for system/OS)] jwielandnotes:data:fall2023:projects:btt0 [2023/08/30 21:11] (current) – [Extract files, read instructions, install needed dependencies] jhimmel2
Line 36: Line 36:
 You'll likely be given a bunch of packages when running this command, look for the ones that resemble lib[package]-dev. Install it using the command format given above. You are (or will be) a developer in this class, you'll need these packages installed moving forward. When you test out command #3 from the Readme again, you'll know it worked if you don't get the error for that specific dependency. You'll likely be given a bunch of packages when running this command, look for the ones that resemble lib[package]-dev. Install it using the command format given above. You are (or will be) a developer in this class, you'll need these packages installed moving forward. When you test out command #3 from the Readme again, you'll know it worked if you don't get the error for that specific dependency.
  
 +When searching for libraries, you may get the following error:
  
 +E: Unable to locate package
 +
 +In this case first check your spelling and make sure it is correct.  If the issue persists, try running with the command sudo apt update to make the current system is up to date.  
 ====Prepare and build (for system/OS)==== ====Prepare and build (for system/OS)====
 Replicate section per system/OS you are building for Replicate section per system/OS you are building for
Line 53: Line 57:
  
 <code bash> <code bash>
- /opt/Vircon32/Emulator:/usr/loacl/Devtools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin+ /opt/Vircon32/Emulator:/usr/local/Devtools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
 </code> </code>
  
Line 63: Line 67:
  
 At the bottom of this file add the two commands that you used to add the file paths, and boom you can now use the command line tools from the emulator and Devtools wherever you are on your system. 8-) At the bottom of this file add the two commands that you used to add the file paths, and boom you can now use the command line tools from the emulator and Devtools wherever you are on your system. 8-)
 +
 +If you’re having trouble locating the files, you can check the install_manifest.txt file in the build directory to see where the files are stored.  
 ====Creating your hello.c, hello.xml, and make.sh file==== ====Creating your hello.c, hello.xml, and make.sh file====
  
Line 70: Line 76:
   * Once created, go to <code>https://github.com/vircon32/ConsoleSoftware/tree/main/Tutorials/RobotGame/Tutorial01A-HelloWorld</code>   * Once created, go to <code>https://github.com/vircon32/ConsoleSoftware/tree/main/Tutorials/RobotGame/Tutorial01A-HelloWorld</code>
   * Copy the contents of each file from GitHub into their respective files in your btt0 directory.   * Copy the contents of each file from GitHub into their respective files in your btt0 directory.
-  * Make sure to go into each file and adjust the names of files as we have changed them compared to what is listed on GitHub. +  * Make sure to go into the make.sh file and adjust the names of files as we have changed them compared to what is listed on GitHub
 + 
 +Its important at this stage to make the make.sh an executable, to do this type chmod +x make.sh, this adds the executable file permission to the file. 
 + 
 +<code bash> 
 +  pi@raspberry:~$ chmod +x make.sh 
 +</code> 
 + 
 +Its finally time to compile your first vircon32 game, to do this do ./make.sh and if no errors occur it should print out build successful. 
 +   
 +There should now be a .v32 file in the bin directory.  Load this into the emulator to run the program. The emulator is in the opt/Vircon32/Emulator file. Cartridges may take time to load. 
 + 
 +After that you will want to make a file similar to hello.c,hello.xml, and make.sh . The file that you are going to submit is going to be a modified version of hello.c . So text on a page, but the amount,size,color,etc is up to you but the changes have to be significant.
notes/data/fall2023/projects/btt0.1693160100.txt.gz · Last modified: 2023/08/27 18:15 by jwieland