Tutorial to deploy the Traffic Sim application on the Beagle Bone Black.
Video Demo: https://youtu.be/4DSaTW_wFcU
In your VirtualBox Ubuntu VM make sure to go to Settings >> Ports >> USB. Enable the USB 3.0 Controller.
Start your VM.
Connect your microSD card to your host via a card reader, then enable it in your VM by going to the menu bar of VirtualBox and go to Devices >> USB and choose your microSD card.
Download the latest image that support graphics for the BBB (Make sure the name of the image starts with bone-debian).
wget https://debian.beagleboard.org/images/bone-debian-9.9-lxqt-armhf-2019-08-03-4gb.img.xz
Unzip the image downloaded.
xz -d bone-debian-9.9-lxqt-armhf-2019-08-03-4gb.img.xz
Unmount the connected SD card.
sudo umount /dev/sdc
Write the image to the SD card.
sudo dd if=./bone-debian-9.9-lxqt-armhf-2019-08-03-4gb.img of=/dev/sdc
Eject the SD card from your host machine and connect it to the BBB using the SD card reader. Connect the BeagleBone to your VM using the USB cable. On your Ubuntu VM enable the BBB by going to Devices >> USB >> BeagleBoard. Open a secure shell session with the BBB.
ssh 192.168.7.2 -l debian
When prompted enter the default password which is: temppwd
Navigate to the following directory.
cd /opt/scripts/tools/
Connect the Ethernet cable to your BBB and run the following command.
git pull || true
Expand the partition on your micro SD card to the full remaining available space of the SD card.
sudo ./grow_partition.sh
sudo reboot
Once the BBB has rebooted open a secure shell to update and upgrade to the most up-to-date software packages.
sudo apt-get update
sudo apt-get upgrade
sudo reboot
Download source code for wxWidgets on your Ubuntu VM.
wget https://github.com/wxWidgets/wxWidgets/archive/v3.0.4.tar.gz
Copy the tar compression to your BBB.
scp v3.0.4.tar.gz debian@192.168.7.2:/home/debian
Open a secure shell with your BBB.
ssh 192.168.7.2 -l debian
Extract the tar file.
tar -xf v3.0.4.tar.gz
Change to the wxWidgets library directory.
cd wxWidgets-3.0.4
Install the necessary libraries for GTK and wxWidgets.
sudo apt-get install build-essential libgtk-3-dev
sudo apt-get install libwxbase3.0-dev
sudo apt-get install libwxgtk3.0-dev
Configure the wxWidgets library makefile for the BBB platform.
./configure
Compile the wxWidgets library using the make utility.
make
Install the wxWidgets library and update the links to the shared libraries in your BBB.
sudo make install
sudo ldconfig
Exit the ssh session.
exit
In your Ubuntu VM navigate to the directory of the Traffic Sim project. It should be zipped already.
cd ~/Traffic-Sim/TrafficSim
Transfer the zipped project into the BBB.
scp TrafficSim.tar debian@192.168.7.2:/home/debian
Open a secure shell to your BBB.
ssh 192.168.7.2 -l debian
Extract the project tar file.
unzip TrafficSim.zip
Compile your wxWidgets application using the make utility.
make
Execute the program.
./TrafficSim