I am setting up the fbc environment for use with FreeDOS 1.3 and W9x and need some assistance with the correct builds to match the FBC DOS library.
As well as the DJGPP builds I am also looking for the corresponding MinGW32(32-64) and Ubbuntu64 source, but focus on the DOS source.
I hope I am not asking too many questions in a single topic X-)
Q1. Compiling libraries under Win9x DJGPP. I compiled and tested the PDCurses library and ran the example fireworks successfully on FreeDOS but am uncertain about the correct djgpp build environment. I followed and used the DJGPP install form https://www.freebasic.net/wiki/DevBuildDos
I was not sure which compiler version to use so I went with "gcc930b.zip".
Q1a. Is this the correct version?
When compiling the PDCurses library I made the following changes (As a guess) to the library.
Code: Select all
/*
* Include essential vendor headers
*/
#include <sys/types.h> /* for ssize_t */
#include <sys/time.h> /* for struct timeval */
/*#include <sys/socket.h> / for sockaddr */
#include <signal.h> /* for sigset_t */
/*#include <sys/wtime.h> / for struct timespec */
#include <unistd.h> /* for off_t */
/*#include <sys/select.h> */
(Note: I have to build the same libraries for C projects as well, so If I can get away with a single DJGPP build environment without swapping the PATH environment, or changing the above header would be convenient.)
Q2. I am wanting to test the GRX library and use it across DOS, W9x, Windows(x86-64) and Ubuntu(x86-64). I would at a minimum like to include the PNG support. Including the libjpeg, libz and lib tiff would also be welcome Looking at the headers I have a choice of several versions. Looking across the web I find many different source repositories for the libraries I am assuming Version libpng16 is the same as V1.6.xx ?
Q2a. What would be the best/correct compatible version and source location for GRX DJGPP builds?
-libpng
[Update] this looks like potential + libz https://sourceforge.net/projects/libpng/files/ Still uncertain aboutDJGPP Version.
-libjpeg
[update] http://www.ijg.org/?
-zlib
-libtiff
Q2b. Any recommended build switches for GRX fpr FBC djgpp?
Code: Select all
-makedefs.grx
# Specify if you have libpng.a and corresponding .h files.
HAVE_LIBPNG=n
...
Q2c Is the GrGUI library available in GRX as in MGRX? has anyone tried to add it in to GRX? Has anyone attempted to use the MGRX with FreeBASIC?
---------------------------
I am looking to implement a rudimentary BGI/graphics.h + GUI across DOS, Win, and nix. BGI DOS is proprietary(Although Borland did release TC DOS as free to use?) so GRX/MGRX is the next closest or alternatively Allegro which is a bit heavy.
I know @ coderjeff has a library jmgui but it is FB only (I don't know what the licencing status would be on the C source for gfxlib2 or even if it could be used stand alone in a C environment). MGUI has potential, so I will likely look at GRX/MGRX (GrGUI), GChart and MGUI as a starter base.
I am welcome to suggestions on a base graphics and GUI library but it must be FB, C as well as DOS, Win32(64), linux(64).
(Yes someone else aiming to add to the FB GUI fruit salad bowl lol X-)
Thanks in advance
Axle