Hi All
After a week of browsing / learning /testing I have managed to achieve what I was ultimately after.
(Just as well I am retired)
I am detailing this as others (and probably me) will go looking for this solution.
Changing the title helps in a Google search.
I wanted to boot the Beaglebone Black without a window manager and straight into my SmartPlug application
without logging in.
To do that I had to compile Allegro after which I could compile CGUI.
Allegro-4.4.3.1 will not work on Debian console, it needs an X system installed.
I experimented and posted on Allegro forum , but finally found the easiest way.
Code: Select all
sudo apt-get install 'the following
cmake
lxqt-core 'easier then trying to find all the dependencies.
libqt0-dev
xorg
xinit
lxqt-plugin
freebasic 'which then needed.
libglu-dev
libxcursor-dev
-y libxpm-dev
Then extracted Allegro to a folder in which the following commands were executed.
Code: Select all
cmake .
sudo make
sudo make install
export ALLEGRO=~/allegro-4.4.3.1 'so cgui build can find it.
Then extracted cgui into a folder , then the commands
Code: Select all
./fix.sh unix
make
sudo make install
Copy libcgui.so from /Allegro-4.4.3.1/lib/unix to /usr/lib/arm-linux-gnueabihf
Now to automate the login.
Edited /home/debian/.xsessionrc and added
./SmartPlug 'my application name
Then created a .service file by;
/lib/systemd/system/smarty.service which contained
Code: Select all
[Unit]
Description=blah blah
After=getty.target 'telling it when to start this script
[Service]
Type=simple
ExecStart=/usr/bin/xinit /home/debian/SmartPlug
[Install]
WantedBy=multi-user.target
Tested the service by:
systemctl daemon-reload
systemctl start smarty.service
Once happy with it:
systemctl enable smarty.service
Reboot
Hopefully this will save someone else some time.
EDIT:Because the boot process on the BBB is slow, it will sit on the login: for some time before it runs my application.
Took some time for me to realise this and kept thinking it wasn't working, and thus I logged in, only to find the app opening anyway.
Regards