Opensource PureBasic IDE now much easier to build

Working on new editor enhancements?
freak
PureBasic Team
PureBasic Team
Posts: 5929
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Opensource PureBasic IDE now much easier to build

Post 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
quidquid Latine dictum sit altum videtur
User avatar
thyphoon
Enthusiast
Enthusiast
Posts: 327
Joined: Sat Dec 25, 2004 2:37 pm

Re: Opensource PureBasic IDE now much easier to build

Post by thyphoon »

Thanks it's fabulous🤩
Little John
Addict
Addict
Posts: 4527
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Opensource PureBasic IDE now much easier to build

Post by Little John »

That's interesting news for people like me. :-) Thank you!
User avatar
skywalk
Addict
Addict
Posts: 3999
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Opensource PureBasic IDE now much easier to build

Post by skywalk »

Boom! That is great news.
Opens up contributions from us simpler folk. :)
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
BarryG
Addict
Addict
Posts: 3324
Joined: Thu Apr 18, 2019 8:17 am

Re: Opensource PureBasic IDE now much easier to build

Post by BarryG »

Thanks Freak; I look forward to testing this later today.
User avatar
kenmo
Addict
Addict
Posts: 1967
Joined: Tue Dec 23, 2003 3:54 am

Re: Opensource PureBasic IDE now much easier to build

Post 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.)
User avatar
Bisonte
Addict
Addict
Posts: 1232
Joined: Tue Oct 09, 2007 2:15 am

Re: Opensource PureBasic IDE now much easier to build

Post by Bisonte »

Image
Great news. I hope that this has removed the greatest barrier ...
PureBasic 6.10 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
Marc56us
Addict
Addict
Posts: 1479
Joined: Sat Feb 08, 2014 3:26 pm

Re: Opensource PureBasic IDE now much easier to build

Post by Marc56us »

Tested on Windows compilation, it's works. :D

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
:wink:

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 :mrgreen:
BarryG
Addict
Addict
Posts: 3324
Joined: Thu Apr 18, 2019 8:17 am

Re: Opensource PureBasic IDE now much easier to build

Post 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.
Marc56us
Addict
Addict
Posts: 1479
Joined: Sat Feb 08, 2014 3:26 pm

Re: Opensource PureBasic IDE now much easier to build

Post 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 :wink:
Last edited by Marc56us on Wed Nov 03, 2021 1:54 pm, edited 1 time in total.
BarryG
Addict
Addict
Posts: 3324
Joined: Thu Apr 18, 2019 8:17 am

Re: Opensource PureBasic IDE now much easier to build

Post 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.

Image
Axolotl
Enthusiast
Enthusiast
Posts: 449
Joined: Wed Dec 31, 2008 3:36 pm

Re: Opensource PureBasic IDE now much easier to build

Post 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....
Mostly running PureBasic <latest stable version and current alpha/beta> (x64) on Windows 11 Home
User avatar
ChrisR
Addict
Addict
Posts: 1154
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: Opensource PureBasic IDE now much easier to build

Post 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
Last edited by ChrisR on Wed Nov 03, 2021 4:15 pm, edited 2 times in total.
BarryG
Addict
Addict
Posts: 3324
Joined: Thu Apr 18, 2019 8:17 am

Re: Opensource PureBasic IDE now much easier to build

Post 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:

Image

Woohoo!
User avatar
ChrisR
Addict
Addict
Posts: 1154
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: Opensource PureBasic IDE now much easier to build

Post 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 :)
Post Reply