bluewaysw/pcgeos
Sobre
Códigos-fonte do #FreeGEOS. O lar oficial da tecnologia do sistema operacional PC/GEOS. Para fãs de computação pessoal, desenvolvedores e entusiastas de assembly. Para VOCÊ!
Sistemas e infraestruturaCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- +2
- em 15 dias
- +8
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalPC/GEOS
This repository is the official place to hold all the source codes around the PC/GEOS graphical user interface and its sophisticated applications. It is the source to build SDK and release version of PC/GEOS. It is the place to collaborate on further developments.

The base of this repository is the source code used to build Breadbox Ensemble 4.13 reduced by some modules identified as critical in regard to the license chosen for the repository.
While now the WATCOM is used to compile the C parts, the full SDK is available for Windows and Linux.
How to build?
Prerequisites
The SDK requires "sed" (https://en.wikipedia.org/wiki/Sed) and "perl" (https://en.wikipedia.org/wiki/Perl) to be installed. Both are pre-installed in most Linux-distributions. Windows-users should install "sed" by adding the usr/bin of the official git distribution (https://git-scm.com) to the path (or Cygwin), and should use the perl-variant "Strawberry Perl" (http://strawberryperl.com/).
On Linux if you want to use swat for debugging with good system integration is is required to install xdotools package. It ensures swat receives the keyboard focus once needed.
Install WATCOM and set environment
Unzip WATCOM tools from a suitable release-tar-gz snapshot (currently tested: 2020-12-01) for instance to
C:\WATCOM-V2add WATCOM env variable:
WATCOM=c:\WATCOM-V2set
BASEBOX=baseboxto use the advanced emulator backend from pcgeos-basebox if it is on the executable path, alternatively you may provide the full path to the executable as wellset
ROOT_DIRto the root of the checkoutset
LOCAL_ROOTto a local working directory (can be empty at first, but should be underpcgeos, so you can use it for development of your own apps as well)add
C:\WATCOM-V2\binntto your system path variableadd
binof the checkout of this repo to path variableadd sed and perl to path variable - note the order to avoid loading the wrong Perl version. Example:
set WATCOM=c:\WATCOM-V2 set ROOT_DIR=C:\Geos\pcgeos set LOCAL_ROOT=c:\Geos\pcgeos\Local set BASEBOX=basebox PATH %WATCOM%\binnt;%ROOT_DIR%\bin;C:\Geos\pcgeos-basebox\binnt;%PATH%;c:\Program Files\Git\usr\bin
Document is work in progress.... stay tuned!
Building PC/GEOS SDK
Build pmake tool:
cd %ROOT_DIR%/Tools/pmake/pmake
wmake install
Build all the other SDK Tools:
cd %ROOT_DIR%/Installed/Tools
pmake install
Build all PC/GEOS (target) components:
cd %ROOT_DIR%/Installed
pmake
Build the target environment:
perl %ROOT_DIR%/Tools/build/product/bbxensem/Scripts/buildbbx.pl
- the answers to the questions from the above perl-script are:
- nt (for the platform)
- y (for the EC version)
- Alternatively, reply "n" for the NC ("release") version that is faster and corresponds to the actual release
- The EC ("debug") version has stricter error checking and is better suited for debugging
- n (as the build for Double-Byte Character Sets is not yet fully functional)
- y (for the geodes)
- n (for the VM files)
- and then you'll have to enter the path to a "gbuild"-folder in your LOCAL_ROOT-folder.
- BTW: It's expected that the current version of the perl-script creates several "Could not find file name in any of the source trees."-messages.
- Advanced use: You can use the EC target and the NC target simultaneously.
- Build the EC target (answers nt/y/n/y/n/path). The path should end with
gbuild.ec. - Build the NC target (answers nt/y/n/y/n/path). The path should end with
gbuildorgbuild.nc. - The
targetcommand (see below) starts the EC target by default. To start the NC target, entertarget -n.
- Build the EC target (answers nt/y/n/y/n/path). The path should end with
Launch the target environment
The target runs in an emulator on the development machine; %ROOT_DIR%/bin/target starts it and attaches the swat debugger. Two emulators can be used: dosbox/basebox (default) or 86Box. The details, settings and troubleshooting are described in Target Environment of the technical documentation.
Launch the target environment in dosbox/basebox:
- make sure dosbox is added to your path variable, or pcgeos-basebox is installed and configured using BASEBOX environmental variable
%ROOT_DIR%/bin/targetto launch the EC ("debug") version,target -nfor the NC version- the "swat" debugger stops immediately after the first stage of the boot process
- enter
quitat the "=>" prompt to detach the debugger and launch PC/GEOS stand-alone- or: enter
cto launch with the debugger running in the background (slower)
- or: enter
- personal emulator settings go to
%LOCAL_ROOT%/basebox_user.conf(see Customizing the Target Environment)
Optional: launch the target in 86Box instead. 86Box emulates real PC hardware (286 up to Pentium) and runs the target from a bootable FreeDOS disk image; swat is connected over the emulated serial port. To set it up once:
install 86Box 6.0 or newer and its ROM set (the
romsfolder next to the 86Box executable, or setBOX86_ROMSto it)Linux only: install
socatset
USE_86BOXto the full path of the 86Box executable, likeBASEBOXfor basebox. Example:set USE_86BOX=C:\86Box\86Box.exeor on Linux
export USE_86BOX=$HOME/86Box/86Box.AppImageoptionally select the emulated machine with
TARGET_PLATFORM(pm32= Pentium, default;pm16= 286 with XMS;rm16= 8086 with EMS); all machines have a network card with a DOS packet driverbuild the SDK tools, the target components and the target environment as described above; with
USE_86BOXset,buildbbxalso creates the disk image (FreeDOS is downloaded and verified automatically on first use)%ROOT_DIR%/bin/target(ortarget -n) now starts 86Box and swat; swat waits until GEOS has booted on the emulated PCthe first start of a new machine needs one BIOS confirmation, see First Start of a New Machine
to switch back to dosbox/basebox, clear
USE_86BOX(set USE_86BOX=)
All 86Box settings, the emulated machines and the file layout are described in 86Box.
How to develop?
PC/GEOS comes with extensive technical documentation that describes tools, programming languages and API calls from the perspective of an SDK user. This documentation can be found in the TechDocs folder and is available in Markdown format.
You can find a browsable, searchable version of the documentation here: https://bluewaysw.github.io/pcgeos/
We are on https://discord.com/ for more efficient collaboration. Please register at https://discord.gg/qtMqgZXhf9 for blueway.Softworks or use an existing discord-account to get access to our developer community. Welcome!
Explore projetos relacionados
Carregando…