Can't compile the IDE

Everything else that doesn't fall into one of the other PB categories.
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Can't compile the IDE

Post by jacdelad »

Hi #PB_All,
I downloaded the repo of the PureBasic IDE and wanted to compile it. It's, of course, much more complex than all of my project I have created until now. However, I have problems building it:

When running the "MakeWindows.cmd" there seems to be a mistake in line 61. The folder should be the same as in line 60???

The command on line 69 fails with "The compiler version string has changed and the parsing will be wrong. Exiting". What can I do to at this point? I'm using 6.10 Beta 2.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
mk-soft
Always Here
Always Here
Posts: 6246
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Can't compile the IDE

Post by mk-soft »

1.
Create a copy of the Purebasic program folder for your version
2.
Call BuildEnv.cmd [path to your purebasic program folder]
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
fryquez
Enthusiast
Enthusiast
Posts: 391
Joined: Mon Dec 21, 2015 8:12 pm

Re: Can't compile the IDE

Post by fryquez »

MakeWindows.cmd does not support paths with spaces.
Make sure the path you provide is writable. It will overwrite the PureBasic.exe.

Also be careful with 6.10 Beta 2, it has broken Unicode support.
So no special characters in any path, not even in windows temp folder.
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: Can't compile the IDE

Post by ChrisR »

A step-by-step tuto on how I built it with my modified batches (menu, additional controls, messages) to make building easier.

Sample folder here D:\PureBasic_Opensource

1.) Download Build_Tool.zip in D:\PureBasic_Opensource folder

2.) Download, rename PureBasic_Windows_beta2_X64_6.10.exe from https://www.purebasic.com/ portal in D:\PureBasic_Opensource folder
if you need to build the x86 IDE, Download, rename PureBasic_Windows_beta2_X86_6.10.exe

3.) Download PureBasic open source: purebasic-devel.zip in D:\PureBasic_Opensource folder

4.) Extract purebasic-devel.zip here, with 7zip or others

5.) Extract Build_Tool.zip here and confirm file replacement (BuildEnv.cmd, 2 * MakeWindows.cmd)

6.) Drag'n drop PureBasic_Windows_beta2_X64_6.10.exe over Extract_Portable_PureBasic.cmd
To create a portable version from PureBasic_xxx.exe Inno Setup.

You should have:

Image

You're ready to build the IDE

7.) Open purebasic-devel folder and Drag'n drop PureBasic_Windows_beta2_X64_6.10 folder over purebasic-devel\BuildMenu.cmd
Or Open purebasic-devel\BuildMenu.cmd and then Drag'n drop PureBasic_Windows_beta2_X64_6.10 folder.

8.) In the command window "Building PureBasic IDE on Windows"
Enter option 1 (Setting environment and Build the IDE) and press Enter

Image

At the end of the batch, you should see:
PureBasic.exe Successfully Created in D:\PureBasic_Opensource\PureBasic_Windows_beta2_X64_6.10
Press any key to continue...

#
Now, to debug, open the new IDE built, in portable mode with the shortcut:
D:\PureBasic_Opensource\PureBasic_Windows_beta2_X64_6.10\PureBasic_Portable
And open project D:\PureBasic_Opensource\purebasic-devel\PureBasicIDE\PureBasicIDE.pbp
It's ready for a Compile/Run (F5) :)
Last edited by ChrisR on Wed Jan 17, 2024 6:54 pm, edited 1 time in total.
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: Can't compile the IDE

Post by jacdelad »

Oh, thanks to all of you. I'll try this tomorrow. It's more complex than I thought.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: Can't compile the IDE

Post by ChrisR »

Once you've done it, you'll see, it's simple
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: Can't compile the IDE

Post by jacdelad »

Ok, so I've done every step you described. But after opening the PureBasicIDE.pbp it still tells me that "Build\BuildInfo.pb" is missing.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: Can't compile the IDE

Post by ChrisR »

Did you build it right, without error message, using MakeWindows.cmd, BuildEnv.cmd or BuildMenu.cmd (Option 1 or 4), before opening the new created purebasic.exe and opening the \purebasic-devel\PureBasicIDE\PureBasicIDE.pbp project with the build already done?

Normally, once built, you should have 2 new "Build" sub-folder inside the purebasic open source folder:

Code: Select all

D:\PureBasic_Opensource\purebasic-devel\DialogManager\Build (with DialogCompiler.exe, dummy)
D:\PureBasic_Opensource\purebasic-devel\PureBasicIDE\Build (with About.pb,..., BuildInfo.pb,..., VersionInfo.rc)
Build\BuildInfo.pb is Autogenerated by makebuildinfo.pb.

Here's what I get in the command window:

Code: Select all

======================================================================================
Building PureBasic IDE on Windows

Target PureBasic directory: D:\PureBasic_Opensource\PureBasic_Windows_beta2_X64_6.10

  Building  on Windows (official method):
    1 - Setting environment and Build the IDE
    2 - Setting environment and Build the IDE debug version
    3 - Setting environment for PureBasic

  Building on Windows (quick and easy method, without make Unix tool):
    4 - Compil PureBasic
    5 - Compil PBdebugger

    9 - Exit
======================================================================================

> Enter your option and press "Enter": 1

--------------------------------------------------------------------------------------
Setting environment for PureBasic X64 in D:\PureBasic_Opensource\PureBasic_Windows_beta2_X64_6.10
--------------------------------------------------------------------------------------

mkdir "Build"
touch Build/dummy
D:\PureBasic_Opensource\PureBasic_Windows_beta2_X64_6.10/compilers/pbcompiler /QUIET tools/makeversion.pb /EXE Build/makeversion.exe /CONSOLE
Build/makeversion.exe ide Build/VersionInfo.rc D:\PureBasic_Opensource\purebasic-devel\PureBasicIDE/data/PBSourceFile.ico
make --directory ../DialogManager
make[1]: Entering directory `D:/PureBasic_Opensource/purebasic-devel/DialogManager'
mkdir "Build"
touch Build/dummy
"D:\PureBasic_Opensource\PureBasic_Windows_beta2_X64_6.10/Compilers/PBCompiler" /QUIET DialogCompiler.pb /EXE Build/DialogCompiler.exe
make[1]: Leaving directory `D:/PureBasic_Opensource/purebasic-devel/DialogManager'
../DialogManager/Build/DialogCompiler.exe dialogs/Find.xml Build/Find.pb
../DialogManager/Build/DialogCompiler.exe dialogs/Grep.xml Build/Grep.pb
../DialogManager/Build/DialogCompiler.exe dialogs/Goto.xml Build/Goto.pb
../DialogManager/Build/DialogCompiler.exe dialogs/CompilerOptions.xml Build/CompilerOptions.pb
../DialogManager/Build/DialogCompiler.exe dialogs/AddTools.xml Build/AddTools.pb
../DialogManager/Build/DialogCompiler.exe dialogs/About.xml Build/About.pb
../DialogManager/Build/DialogCompiler.exe dialogs/Preferences.xml Build/Preferences.pb
../DialogManager/Build/DialogCompiler.exe dialogs/Templates.xml Build/Templates.pb
../DialogManager/Build/DialogCompiler.exe dialogs/StructureViewer.xml Build/StructureViewer.pb
../DialogManager/Build/DialogCompiler.exe dialogs/Projects.xml Build/Projects.pb
../DialogManager/Build/DialogCompiler.exe dialogs/Build.xml Build/Build.pb
../DialogManager/Build/DialogCompiler.exe dialogs/Diff.xml Build/Diff.pb
../DialogManager/Build/DialogCompiler.exe dialogs/FileMonitor.xml Build/FileMonitor.pb
../DialogManager/Build/DialogCompiler.exe dialogs/History.xml Build/History.pb
../DialogManager/Build/DialogCompiler.exe dialogs/HistoryShutdown.xml Build/HistoryShutdown.pb
../DialogManager/Build/DialogCompiler.exe dialogs/CreateApp.xml Build/CreateApp.pb
../DialogManager/Build/DialogCompiler.exe dialogs/Updates.xml Build/Updates.pb
rm -f Build/DefaultTheme.zip
zip -jq Build/DefaultTheme.zip data/DefaultTheme/*
mkdir "D:\PureBasic_Opensource\PureBasic_Windows_beta2_X64_6.10/Themes"
rm -f "D:\PureBasic_Opensource\PureBasic_Windows_beta2_X64_6.10/Themes/SilkTheme.zip"
zip -jq "D:\PureBasic_Opensource\PureBasic_Windows_beta2_X64_6.10/Themes/SilkTheme.zip" data/SilkTheme/*
D:\PureBasic_Opensource\PureBasic_Windows_beta2_X64_6.10/compilers/pbcompiler /QUIET tools/makebuildinfo.pb /EXE Build/makebuildinfo.exe /LINENUMBERING /CONSOLE
Build/makebuildinfo.exe Build
D:\PureBasic_Opensource\PureBasic_Windows_beta2_X64_6.10/compilers/pbcompiler /QUIET PureBasic.pb /EXE D:\PureBasic_Opensource\PureBasic_Windows_beta2_X64_6.10/PureBasic.exe /THREAD /UNICODE /XP /USER /ICON data/PBLogoBig.ico /DPIAWARE /OPTIMIZER /RESOURCE Build/VersionInfo.rc

--------------------------------------------------------------------------------------
PureBasic.exe Successfully Created in D:\PureBasic_Opensource\PureBasic_Windows_beta2_X64_6.10
--------------------------------------------------------------------------------------
Appuyez sur une touche pour continuer...
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: Can't compile the IDE

Post by ChrisR »

To simplify the Building on Windows, it's probably easier to just use the quick & easy method:
MakeWindows.cmd <YourPureBasicPath>
(D:\PureBasic_Opensource\purebasic-devel\PureBasicIDE\MakeWindows.cmd D:\PureBasic_Opensource\PureBasic_Windows_beta2_X64_6.10)
or via my BuildMenu and option 4 - Compil PureBasic
Post Reply