Update¶
To update the software following installation:
Login as root using
su -land the same password as for minieusouserConnect to the internet
Run
git pullfrom the command line within the/home/softwaredirectoryRun
make cleanand thenmakeinside/home/software/CPU/CPUsoftwareThe executable
mecontrolwill now be available for use
If there are any conflicts when running git pull, resolve these conflicts as desired by editing the files and then use git commit to store the changes before trying again.
Note: The full software takes some time to compile on the CPU, but the makefile contains dependency checks and will only recompile what is needed
To switch over to a new branch (testing new features)
Login as root using
su -land the same password as for minieusouserConnect to the internet
Run
git pullfrom the command line within the/home/softwaredirectoryRun
make cleaninside/home/software/CPU/CPUsoftwareand/home/software/CPU/CPUsoftware/libRun
git checkout <branch_name>(after, you can check which branch you are on usinggit branch)Recompile by running
makeinside first/home/software/CPU/CPUsoftware/liband then/home/software/CPU/CPUsoftware/The correct executable
mecontrolwill now be available for use
In both cases, the command mecontrol -ver can be used to check the currently compiled version of the software.
Problems?¶
If there are any conflicts when running git pull, resolve these conflicts as desired by editing the files and then use git commit to store the changes before trying again.
Local files can also be completely overwritten by the remote using git reset --hard origin/master.
If, for whatever reason, the /home/software git repository is deleted, it is necessary to clone again:
git clone https://github.com/cescalara/minieuso_cpu /home/software
Following this, the camera software must be compiled, the necessary libraries built and the log directories created. There is a script to do this in /home/
software/CPU/CPUsetup called reinstall.sh.
NB: when running reinstall.sh, it is important that both cameras are connected and powered so that the cameras.ini file can be created for the multiplecam software