Page 1 of 3
Opensource PureBasic IDE now much easier to build
Posted: Tue Nov 02, 2021 6:35 pm
by freak
Hi everybody,
just a quick note about the
PureBasic OpenSource Projects for those who are not following the development closely:
We have spend the past months replacing all parts that require a C compiler and simplifying the build process so you do not have to install a ton of preconditions to compile the IDE anymore. All you need now is a PureBasic installation and nothing else. So if you have been hesitant to check the project out so far due to the build complexity, it might be worth to have another look now
You can find the new build instructions here:
https://github.com/fantaisie-software/p ... l/BUILD.md
Happy hacking!
The PureBasic Team
Re: Opensource PureBasic IDE now much easier to build
Posted: Tue Nov 02, 2021 7:44 pm
by thyphoon
Thanks it's fabulous

Re: Opensource PureBasic IDE now much easier to build
Posted: Tue Nov 02, 2021 8:43 pm
by Little John
That's interesting news for people like me.

Thank you!
Re: Opensource PureBasic IDE now much easier to build
Posted: Tue Nov 02, 2021 9:13 pm
by skywalk
Boom! That is great news.
Opens up contributions from us simpler folk.

Re: Opensource PureBasic IDE now much easier to build
Posted: Tue Nov 02, 2021 9:51 pm
by BarryG
Thanks Freak; I look forward to testing this later today.
Re: Opensource PureBasic IDE now much easier to build
Posted: Wed Nov 03, 2021 3:00 am
by kenmo
I've been following this, and I'm very grateful! Thank you Freak and everyone else involved!
It should be much easier for people to make and submit contributions now. (And it's just less complication overall.)
Re: Opensource PureBasic IDE now much easier to build
Posted: Wed Nov 03, 2021 7:18 am
by Bisonte

Great news. I hope that this has removed the greatest barrier ...
Re: Opensource PureBasic IDE now much easier to build
Posted: Wed Nov 03, 2021 8:42 am
by Marc56us
Tested on Windows compilation, it's works.
Juste changed line
#69 in
MakeWindows.cmd
(path to PBSourceFile.ico: I don't use Git, so my path are differents)
Code: Select all
Build\makeversion.exe ide Build/VersionInfo.rc /cygdrive/c/PureBasic/git/purebasic/PureBasicIDE/data/PBSourceFile.ico
To:
Code: Select all
Build\makeversion.exe ide Build/VersionInfo.rc %PUREBASIC_HOME%/../purebasic-devel/PureBasicIDE/data/PBSourceFile.ico
Now I have to try to remember which modification(s) I had requested in the IDE and try to do them myself. No more excuses

Re: Opensource PureBasic IDE now much easier to build
Posted: Wed Nov 03, 2021 10:52 am
by BarryG
Nope, this is still far too confusing for a newbie like me. I'd need a literal step-by-step. All I've done so far is copy my existing PureBasic folder to "PureBasicIDE", and unzipped the "UnixTools-4-Win" folder inside it. Have no idea what to do next. We need a real simple step-by-step tutorial. Anyone up to the task? Thanks.
'makewindows.cmd' is not recognized as an internal or external command, operable program or batch file.
Re: Opensource PureBasic IDE now much easier to build
Posted: Wed Nov 03, 2021 11:23 am
by Marc56us
BarryG wrote: Wed Nov 03, 2021 10:52 am
Nope, this is still far too confusing for a newbie like me. I'd need a literal step-by-step. All I've done so far is copy my existing PureBasic folder to "PureBasicIDE", and unzipped the "UnixTools-4-Win" folder inside it. Have no idea what to do next. We need a real simple step-by-step tutorial. Anyone up to the task? Thanks.
'makewindows.cmd' is not recognized as an internal or external command, operable program or batch file.
You not need unix tools for compile Windows, but you need source IDE
1. Go to
https://github.com/fantaisie-software/purebasic
2. Click on Green button 'Code'
3. Select 'Download Zip' on dropdown menu
5. Create a folder anywhere where you have acces write (ie: C:\PB_Dev_IDE)
4. Copy your PB (6) exist folder in this folder (ie: C:\PB_Dev_IDE\PureBasic)
5. Unzip all files in a another directory (ie: C:\PB_Dev_IDE\purebasic-devel)
So you have now:
- C:\PB_Dev_IDE\PureBasic (Copy of the last PB6)
- C:\PB_Dev_IDE\purebasic-devel (All sources of PB IDE)
6. Go to c:\PB_Dev_IDE\purebasic-devel\PureBasicIDE\
7. Edit file MakeWindows.cmd
8. Line #69 change
-
/cygdrive/c/PureBasic/git/purebasic/PureBasicIDE/data/PBSourceFile.ico
To
-
%PUREBASIC_HOME%/../purebasic-devel/PureBasicIDE/data/PBSourceFile.ico
9. Go to folder where
MakeWindows.cmd is (C:\PB_Dev_IDE\purebasic-devel\PureBasicIDE)
10. Compile (launch MakeWindows followed by folder of your PB6 copy
-
MakeWindows.cmd c:\PB_Dev_IDE\PureBasic
11. your c:\PB_Dev_IDE\PureBasic\PureBasic.exe is the new IDE (see about box)
Edit 14:00: Corrected PureBasicC to PureBasic
That's all

Re: Opensource PureBasic IDE now much easier to build
Posted: Wed Nov 03, 2021 11:57 am
by BarryG
Marc56us wrote: Wed Nov 03, 2021 11:23 am10. Compile (launch MakeWindows followed by folder of your PB6 copy
-
MakeWindows.cmd c:\PB_Dev_IDE\PureBasicC
Followed all steps and step 10 doesn't work. Note: I swapped "c:" to "d:" everywhere.

Re: Opensource PureBasic IDE now much easier to build
Posted: Wed Nov 03, 2021 12:04 pm
by Axolotl
@Marc56us: nice step-by-step plan.
before I would follow the plan, I have one question: why c:\PB_Dev_IDE\PureBasicC instead of c:\PB_Dev_IDE\PureBasic?
the created path above was named c:\PB_Dev_IDE\PureBasic.
@BarryG: maybe this is the problem....
Re: Opensource PureBasic IDE now much easier to build
Posted: Wed Nov 03, 2021 12:08 pm
by ChrisR
It's a great news, no need to install all these dependencies VC2013, Win7.1SDK, it really makes life easier
BarryG wrote: Wed Nov 03, 2021 10:52 am
Nope, this is still far too confusing for a newbie like me. I'd need a literal step-by-step. All I've done so far is copy my existing PureBasic folder to "PureBasicIDE", and unzipped the "UnixTools-4-Win" folder inside it. Have no idea what to do next. We need a real simple step-by-step tutorial. Anyone up to the task? Thanks.
%PUREBASIC_HOME%\Compilers does not seem to have been added to the Path (see it with echo %Path% ), I do not know why!
For the fun and if anyone interested, I modified a bit the current batch with some extra controls, auto-download and unzip UnixTool, if it is not already in the Path and I added a menu to make it an AllInOne, just need to open BuildMenu.cmd and follow the steps
Build_PBIDE.zip
Edit: Link updated
Re: Opensource PureBasic IDE now much easier to build
Posted: Wed Nov 03, 2021 12:13 pm
by BarryG
Axolotl wrote: Wed Nov 03, 2021 12:04 pmwhy c:\PB_Dev_IDE\PureBasicC instead of c:\PB_Dev_IDE\PureBasic?
I tried it with "PureBasic" instead of "PureBasicC" and it now seems to work! Yay! I'll see if can make any changes now to be 100% sure.
@ChrisR: Your Google Drive link gives me a denied access error.
[Edit] Yep, it works - I edited "D:\PB_Dev_IDE\PureBasic-Devel\PureBasicIDE\AboutWindow.pb" and compiled with the above command, and got this with the new PureBasic.exe:
Woohoo!
Re: Opensource PureBasic IDE now much easier to build
Posted: Wed Nov 03, 2021 12:22 pm
by ChrisR
BarryG wrote: Wed Nov 03, 2021 12:13 pm
@ChrisR: Your Google Drive link gives me a denied access error.
Oups, I fixed it, it should be better
BarryG wrote: Wed Nov 03, 2021 12:13 pm
Woohoo!
First step done
