-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompile.sh
More file actions
36 lines (29 loc) · 1.48 KB
/
Copy pathcompile.sh
File metadata and controls
36 lines (29 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
echo "Compiling pokeys_uspace/pokeys.c..."
sudo halcompile --install --userspace --extra-link-args="-L/usr/lib -lPoKeys -llinuxcncini" pokeys_uspace/pokeys.c
echo "pokeys_uspace/pokeys.c compiled successfully."
echo "Compiling kbd48CNC.comp..."
halcompile --install kbd48CNC.comp
echo "kbd48CNC.comp compiled successfully."
# Check LinuxCNC version
# Prompt the user for confirmation before compilation of pokeys_homecomp.comp
read -p "Do you want to compile of pokeys_homecomp.comp (needs LinuxCNC version 2.9. or higher? (y/n): " answer
if [[ $answer == "y" ]]; then
echo "Compiling pokeys_homecomp.comp..."
halcompile --install pokeys_rt/pokeys_homecomp.c
echo "pokeys_homecomp.comp compiled successfully."
else
echo "Skipping compilation of pokeys_homecomp.comp. LinuxCNC version is not higher than 2.9."
fi
echo "Compiling start_delay.comp..."
halcompile --install start_delay_3000.comp
halcompile --install start_delay_5000.comp
echo "start_delay.comp compiled successfully."
# that part is not there yet convert of uspace to rt will be done instead of AI generated component that did not work as expected
# echo "Compiling pokeys_rt.comp..."
# halcompile --install pokeys_rt/pokeys_rt.comp
# echo "pokeys_rt.comp compiled successfully."
# no real py code there yet - will be required with QtPyVCP aor GladeVCP some are there but no required code
# echo "Compiling pokeys_py components..."
# python3 setup.py install
# echo "pokeys_py components compiled successfully."