Building PureBasic OpenSource Projects on Windows: A Quick Tutorial

Working on new editor enhancements?
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Building PureBasic OpenSource Projects on Windows: A Quick Tutorial

Post by ChrisR »

Here are the official Build Instructions


And here are detailed, step-by-step Building Instructions on Windows, It's really simple, with pictures and enhanced batches :
  • Menu, Compile with ASM or C Backend, Check the target PureBasic folder and if it is writable, Save PureBasic.exe to PureBasic_%hhmmss%.exe,
    Check if the IDE was created successfully or not.

Let's start by creating a dedicated Build folder (e.g. F:\PureBasicIDE) and start Downloading:

Extract purebasic-devel.zip and BuildPBIDETool.zip here

Image

Extract Portable Purebasic by dragging and dropping the setup PureBasic_Windows_X64_LTS_6.xx (or X86) file on Extract_Portable_PureBasic.cmd
A shortcut PureBasic_Portable is created to launch PureBasic in portable mode

Image

Image

Copy PureBasicIDE Tool with modified batches inside purebasic-devel (open source) folder, confirming the replacement

Image

Now open the Build Menu by dragging and dropping the Portable Purebasic folder, PureBasic_Windows_X64_LTS_6.xx on purebasic-devel\BuildMenu.cmd
Or run BuildMenu.cmd then drag'n drop the Portable Purebasic folder in the cmd window

Image

Here's the Build Menu, select an option and press Enter

Image

And here's the result of option 2 - Compiling PureBasic (C Backend)

Image

PureBasic.exe Successfully Created :)
User avatar
gurj
Enthusiast
Enthusiast
Posts: 693
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: Building PureBasic OpenSource Projects on Windows: A Quick Tutorial

Post by gurj »

Thank you very much! ok:
===================
> Enter your option and press "Enter": 2
Save PureBasic.exe to PureBasic_ 00322.exe
...
E:\Users\pb\ide\build\purebasic-devel\PureBasicIDE>PBCompilerc /QUIET PureBasic.pb /EXE E:\Users\pb\ide\build\PureBasic_Windows_X86_LTS_6.12\PureBasic.exe /OPTIMIZER /THREAD /UNICODE /XP /USER /ICON data/PBLogoBig.ico /DPIAWARE /RESOURCE Build/VersionInfo.rc
-------
PureBasic.exe Successfully Created in E:\Users\pb\ide\build\PureBasic_Windows_X86_LTS_6.12
------
Exiting...
请按任意键继续. . .
my pb for chinese:
http://ataorj.ys168.com
User avatar
gurj
Enthusiast
Enthusiast
Posts: 693
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: Building PureBasic OpenSource Projects on Windows: A Quick Tutorial

Post by gurj »

Additional information
my is win7x86 and:

System Requirements:
yes:
PureBasic Installation
_________
no:
Microsoft Visual C
Visual Studio 2013
MS Windows SDK
Windows 7 SDK
Windows 10 SDK
Unix and GNU Tools
Troubleshooting
Windows 7 SDK Installation
Installation Order Matters
Visual C++ 2010 Redistributable Conflicts
RTM .NET Framework 4 Error
-------
no .net
my pb for chinese:
http://ataorj.ys168.com
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: Building PureBasic OpenSource Projects on Windows: A Quick Tutorial

Post by ChrisR »

Thanks for the feedback Gurj :)
It's good to know that building PureBasic open source projects also runs on Windows 7 x86 with minimum system requirements.
Thanks to Timo and Fred, the IDE is also Pure :)
User avatar
gurj
Enthusiast
Enthusiast
Posts: 693
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: Building PureBasic OpenSource Projects on Windows: A Quick Tutorial

Post by gurj »

but i have:
from
https://www.123pan.com/s/3bN8Vv-ovu0A
to add install "Microsoft Visual" :
C Redistributable Old Version=22.5 MB
C++ Redistributable Package 2005 SP1=14.7 MB
C++ Redistributable Package 2008 SP1=29.5 MB
C++ Redistributable Package 2010 SP1=11.4 MB
C++ Redistributable Package 2012 UP4=12.2 MB
C++ Redistributable Package 2013=12.0 MB
C++ Redistributable Package 2015-2022=13.2 MB
Microsoft Universal C Runtime 10.0.10586.9=1.8 MB
my pb for chinese:
http://ataorj.ys168.com
Post Reply