Posts: 98
Threads: 1
Joined: Jun 2023
Reputation:
3
a740g,
I'm having trouble on how I should solve this problem. I know the script for linux tells me it can not find QB64pe to compile the InForm-PE-master. Here is my terminal action and errors:
<user-login>@pop-os:~/Documents/InForm-PE-master$ sh ./setup_inform_lnx.sh
Compiling InForm...
rm -fr UiEditor InForm/UiEditorPreview InForm/vbdos2inform
../QB64pe/qb64pe -x -w -e InForm/UiEditor.bas -o UiEditor
make: ../QB64pe/qb64pe: No such file or directory
make: *** [makefile.inform:36: UiEditor] Error 127
<user-login>@pop-os:~/Documents/InForm-PE-master$ $PATH
bash: /home/<user-login>/Documents/qb64pe:/home/<user-login>/Documents/qb64pe/fonts:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin: No such file or directory
<user-login>@pop-os:~/Documents/InForm-PE-master$
InForm-PE-master and qb64pe are in the Documents folder. I intending to install InForm-PE in the Documents folder besides the qb64pe folder. What do I need to do to get the script install it?
Posts: 98
Threads: 1
Joined: Jun 2023
Reputation:
3
02-16-2024, 08:46 PM
(This post was last modified: 02-16-2024, 08:48 PM by GareBear.
Edit Reason: Edited out my username login.
)
a740g,
That helps but still no install.
Here is what I did to the script:
#!/bin/bash
# InForm for QB64-PE Setup script
cd "$(dirname "$0")"
echo "Compiling InForm..."
make -f makefile.inform clean OS=lnx QB64PE_PATH=../qb64pe/
make -f makefile.inform OS=lnx QB64PE_PATH=../qb64pe/
Here is the terminal output:
<user-login>@pop-os:~/Documents/InForm-PE-master$ sh ./setup_inform_lnx.sh
Compiling InForm...
rm -fr UiEditor InForm/UiEditorPreview InForm/vbdos2inform
../qb64pe/qb64pe -x -w -e InForm/UiEditor.bas -o UiEditor
QB64-PE Compiler V3.11.0
Beginning C++ output from QB64 code...
[........................................... ] 86%
Syntax error
Caused by (or after):WRITESETTING "InForm/InForm.ini",17 , "InForm Settings",15 , "Swap mouse buttons",18 , VALUE$
LINE 2603:WriteSetting "InForm/InForm.ini", "InForm Settings", "Swap mouse buttons", value$
make: *** [makefile.inform:36: UiEditor] Error 1
<user-login>@pop-os:~/Documents/InForm-PE-master$
This is what I got. Any ideas?
Posts: 98
Threads: 1
Joined: Jun 2023
Reputation:
3
This is what ran:
<user-login>@pop-os:~/Documents/InForm-PE-master$ sh ./setup_inform_lnx.sh
./setup_inform_lnx.sh: 6: Syntax error: "(" unexpected (expecting "fi")
<user-login>@pop-os:~/Documents/InForm-PE-master$ sh ./setup_inform_lnx.sh ~/Documents/qb64pe/
./setup_inform_lnx.sh: 6: Syntax error: "(" unexpected (expecting "fi")
<user-login>@pop-os:~/Documents/InForm-PE-master$
This is the new script setup you uploaded:
#!/bin/bash
# InForm for QB64-PE Setup script
# Check if QB64-PE directory path is provided as an argument
if [ -n "$1" ]; then
QB64PE_PATHS=("$1" "../qb64pe/" "../QB64pe/")
else
QB64PE_PATHS=("../QB64pe/" "../qb64pe/")
fi
cd "$(dirname "$0")"
echo "Compiling InForm..."
# Loop through each QB64-PE path
for path in "${QB64PE_PATHS[@]}"; do
make -f makefile.inform clean OS=lnx QB64PE_PATH="$path"
make -f makefile.inform OS=lnx QB64PE_PATH="$path"
if [ $? -eq 0 ]; then
break # If build succeeds, exit loop
fi
echo "Build failed with QB64-PE path: $path"
done
This is the error I get:
Syntax error: "(" unexpected (expecting "fi")
What do get out of this error?