Feel free to post any problems or solutions, no matter how big or small
Anything I write in <Brackets> is just a placeholder for your real path.
First, refer to the repo's BUILD document. It says:
You should choose x86 or x64 depending on which version of the IDE you want to build, not what your own system is.Create a copy of Window-x64.cmd or Window-x86.cmd and edit it
(That is, on 64-bit Windows you don't need to use the x64 cmd file.)
Change the PUREBASIC_HOME path to your main PB folder, such as C:\Programs\PureBasic, the x86 or x64 version depending on your selection.
Run the 'cmd' file, change to the ('cd PureBasicIDE') and run 'make'.
Possible errors:
Code: Select all
'make' is not recognized as an internal or external command, operable program or batch file.
https://sourceforge.net/projects/unxutils/
2. Find your UnxTools 'wbin' folder, for example: <InstallPath>\UnxUtils\usr\local\wbin
3. Add this 'wbin' path to your PATH environment variable.
You can add it in your system's properties (do a web search, there are various ways)
or add it in your copied 'cmd' file:
Code: Select all
set UNXTOOLS_WBIN=<InstallPath>\UnxUtils\usr\local\wbin
set PATH=%UNXTOOLS_WBIN%;%PATH%
Code: Select all
make: *** No targets specified and no makefile found. Stop.
Code: Select all
makefile:252: warning: overriding commands for target `C:\Program'
makefile:247: warning: ignoring old commands for target `C:\Program'
makefile:252: warning: overriding commands for target `Files'
makefile:247: warning: ignoring old commands for target `Files'
...
cp: copying multiple files, but last argument ((x86)\PureBasic/Catalogs/ColorTable.xml) is not a directory
Maybe this can be fixed with double-quoting or escape-characters throughout the 'cmd' file,
but it's easier to simply use a PureBasic installation path without spaces (no "Program Files"!)
EDIT: You can also cleverly use subst P: "c:\Program Files\PureBasic\" to alias your PB installation as P:\ (or try other path alias methods).
EVEN BETTER: Use Tristano's recommendation below, use Windows "short names" like C:\PROGRA~1\ to seamlessly work with space-less paths. Use dir /X to get the short names.
Code: Select all
'cl.exe' is not recognized as an internal or external command,
operable program or batch file.
You should have Visual Studio and Windows Platform SDK installed.
BUILD recommends VisualStudio C++ 2013 and SDK Version 7.0.
Set your PB_VS8 path.
The 'cmd' script expects cl.exe in a <PB_VS8>\VC\bin folder.
In my case I have Visual Studio 2019 Community Edition, and I had to add this to the PATH: <ProgramFiles>\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\Hostx86\x86
EDIT: I uninstalled newer Visual Studios, and installed the 2013 Community Edition. Then it worked with 'make' using the default defined subfolders.
Code: Select all
<...>/purebasic/Libraries\Debugger/DebuggerInternal.h(26): fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
Like the 'cl.exe' issue above, it seems my paths don't match
(Using VS 2019 Community Edition and Windows 10 SDK.)
When I try to install 'Windows SDK for Windows 7 and .NET Framework 4' I get this error:
I installed the .NET Framework 4.8 Developer Pack from that link, same error occurs.Some components cannot be installed
Some Windows SDK components require the RTM .NET Framework 4. <...> click Cancel, then install the .NET Framework 4 from http://go.microsoft.com/fwlink/?LinkID=187668 and then rerun Setup.
EDIT: I uninstalled all Visual Studio components, redistributables, SDKs, back to 2008 version, then I could install the Windows SDK 7.1 without error. (It still warned about a pre-release .NET Framework though.)