This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:data:fall2023:projects:btt0 [2023/08/25 23:17] – [Creating your hello.c, hello.xml, and make.sh file] wgates1 | notes:data:fall2023:projects:btt0 [2023/08/30 21:11] (current) – [Extract files, read instructions, install needed dependencies] jhimmel2 | ||
---|---|---|---|
Line 4: | Line 4: | ||
====Obtain source of latest release of Vircon32 (emulator and DevTools)==== | ====Obtain source of latest release of Vircon32 (emulator and DevTools)==== | ||
- | To obtain the latest source of Vircon32 for both the emulator and DevTools, navigate to the [[http:// | ||
- | The source | + | To obtain the latest |
+ | |||
+ | Scroll | ||
+ | |||
+ | For Unix based systems including Pi you will want to download | ||
Another option to get the source code of different repositories onto your pi is to clone it from the Vircon32 github page. Once on the page, click on the repository you want to clone and copy its url. On your pi terminal go to the location you want to put the repository in and clone it from github using "git clone url_of_repository" | Another option to get the source code of different repositories onto your pi is to clone it from the Vircon32 github page. Once on the page, click on the repository you want to clone and copy its url. On your pi terminal go to the location you want to put the repository in and clone it from github using "git clone url_of_repository" | ||
+ | |||
+ | |||
====Extract files, read instructions, | ====Extract files, read instructions, | ||
Open your terminal, navigate to where your file was saved (Most likely Downloads) and proceed to extract it. | Open your terminal, navigate to where your file was saved (Most likely Downloads) and proceed to extract it. | ||
- | You now have a directory of the same name as that archived file, **cd** into it and read the Readme.md | + | You will now have a directory of the same name as that archived file, **cd** into it and read the Readme.md |
- | Following the Readme.md install the needed dependencies and create the appropriate directories. | + | Following the Readme, install the needed dependencies and create the appropriate directories. |
To begin you will want to start with either the DevelopmentTools or Emulator | To begin you will want to start with either the DevelopmentTools or Emulator | ||
- | cd into 1 of those two directories and < | + | cd into one of those two directories and perform |
- | It may be helpful to have the Readme available while you're in the build directory, start by installing cmake if it's not already installed | + | It may be helpful to have the Readme available while you're in the build directory. Start by installing cmake if it's not already installed. Perform |
- | You should receive an error saying MSYS Makefiles | + | You should receive an error saying MSYS Makefiles |
- | You'll now get an error about not having a file called CMakeLists.txt Find that file and copy it into builds, although as long as CMakeLists.txt is in the same directory as the builds directory (DesktopEmulator or DevelopmentTools), | + | You'll now get an error about not having a file called CMakeLists.txt Find that file and copy it into builds, although as long as CMakeLists.txt is in the same directory as the builds directory (DesktopEmulator/ |
- | Keep trying to run command #3 in the Readme, it'll likely need further dependencies before it can get through without experiencing an error. The dependencies needed are listed at the bottom of the Readme. Use the following command to search for the necessary libraries, those library names should be all lowercase when searched. < | + | Keep trying to run command #3 in the Readme, it'll likely need further dependencies before it can get through without experiencing an error. The dependencies needed are listed at the bottom of the Readme. Use the following command to search for the necessary libraries, those library names should be all lowercase when searched. < |
- | You'll likely be given a bunch of libraries | + | You'll likely be given a bunch of packages |
+ | 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. | ||
====Prepare and build (for system/ | ====Prepare and build (for system/ | ||
Replicate section per system/OS you are building for | Replicate section per system/OS you are building for | ||
+ | Now that you have the Vircon32 emulator and Dev-tools, its time to modify the PATH of your system so that you can use the various command line tools that they offer, such as assemble or compile, anywhere on your system. First you need to locate where they are in your system, and make sure to note down the file path. | ||
+ | Linux- | ||
+ | |||
+ | To save the path of your emulator and dev-tools in a Linux environment you need to use this command. | ||
+ | <code bash> | ||
+ | pi@raspberry: | ||
+ | pi@raspberry: | ||
+ | </ | ||
+ | |||
+ | to see if the path was added correctly input the (echo " | ||
+ | |||
+ | <code bash> | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | These paths are temporary and will not save after you exit the terminal so its ok to mess up at this stage. After you are sure that you got the correct file path, its time to add them to your system so that they don't erase after you close the terminal. | ||
+ | |||
+ | <code bash> | ||
+ | pi@raspberry: | ||
+ | </ | ||
+ | |||
+ | 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 43: | Line 76: | ||
* Once created, go to < | * Once created, go to < | ||
* 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 |
+ | |||
+ | 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: | ||
+ | </ | ||
+ | |||
+ | 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. | ||
+ | |||
+ | After that you will want to make a file similar to hello.c, |