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/27 14:54] – [Obtain source of latest release of Vircon32 (emulator and DevTools)] cburling | notes:data:fall2023:projects:btt0 [2023/08/30 21:11] (current) – [Extract files, read instructions, install needed dependencies] jhimmel2 | ||
---|---|---|---|
Line 5: | Line 5: | ||
====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:// | + | To obtain the latest source of Vircon32 for both the emulator and DevTools, navigate to the [[http:// |
+ | |||
+ | Scroll to the bottom of the new page under the **Assets** toggle you will see Source code. | ||
For Unix based systems including Pi you will want to download the (tar.gz) version. | For Unix based systems including Pi you will want to download the (tar.gz) version. | ||
Line 16: | Line 18: | ||
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 | ||
Line 43: | Line 49: | ||
To save the path of your emulator and dev-tools in a Linux environment you need to use this command. | To save the path of your emulator and dev-tools in a Linux environment you need to use this command. | ||
- | < | + | < |
pi@raspberry: | pi@raspberry: | ||
pi@raspberry: | pi@raspberry: | ||
Line 50: | Line 56: | ||
to see if the path was added correctly input the (echo " | to see if the path was added correctly input the (echo " | ||
- | < | + | < |
- | / | + | / |
</ | </ | ||
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. | 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. | ||
- | < | + | < |
pi@raspberry: | 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-) | 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 68: | 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, |