Page 1 of 1
tools startig wine
Posted: Mon Dec 28, 2009 10:13 pm
by KGB_X
I have installed PureBasic using Wine and now i want to configure the Tools function on my Linux version of PureBasic so that when i'm creating an executable it's starting the windows version of "pbcompiler.exe"
I tried entering "wine" in "Commandline" settings.
With the following argument ".wine/drive_c/Program\ Files/PureBasic/Compilers/pbcompiler.exe %FILE %PATH/something.exe"
Event to trigger: After create Ececutable"
But this doesnt work

Re: tools startig wine
Posted: Mon Dec 28, 2009 10:30 pm
by Rook Zimbabwe
Not an expert on WINE or PB tols but could it be a SLASHwar??? Specifically the "\" and "/" may not be completely supported in PB for windows???
Re: tools startig wine
Posted: Mon Dec 28, 2009 10:39 pm
by KGB_X
Tried making a bash script but when running pbcompiler with Wine it seems that when using the "-e" everything is converted to uppercase:
Code: Select all
#!/usr/bin/env bash
cd /home/kgb/purecode
wine /home/kgb/.wine/drive_c/Program\ Files/PureBasic/Compilers/pbcompiler.exe $1 -e $2
Running the script manually:
sh compile.sh winetest.pb winetest.exe
gives this error:
******************************************
PureBasic 4.40 (Windows - x86)
******************************************
Compiling winetest.exe
Loading external libraries...
Error: File not found (winetest.exe).
Not getting any errors starting it from the PB editor.
Re: tools startig wine
Posted: Mon Dec 28, 2009 10:41 pm
by KGB_X
Rook Zimbabwe wrote:Not an expert on WINE or PB tols but could it be a SLASHwar??? Specifically the "\" and "/" may not be completely supported in PB for windows???
hmm i'll try
Re: tools startig wine
Posted: Mon Dec 28, 2009 10:48 pm
by KGB_X
no it's something else wine doesn't like.
i'm pretty bored starting virtualbox to compile windows files so i would really like to get this to work.