urbanjost / M_draw

low-level vector graphics library and module
The Unlicense
2 stars 0 forks source link

On which OS does this work? #1

Open angelog0 opened 2 years ago

angelog0 commented 2 years ago

I tried to build M_draw in a MSYS2 shell but it fails thinking it is an X system:

[...]
cc -c -O -I../include drivers/C-X11.c -o drivers/C-X11.o
drivers/C-X11.c:8:10: fatal error: X11/Xlib.h: No such file or directory
    8 | #include <X11/Xlib.h>
      |          ^~~~~~~~~~~~
compilation terminated.

Then I tried to build in a MSYS2/MINGW64 shell but still fails:

Warning: Unused parameter 'ident' declared at (1) [-Wunused-parameter]
C:\msys64\mingw64\bin\ar.exe: creating ./lib/libM_draw.a
cc -c -O -I../include drivers/C-canvas.c -o drivers/C-canvas.o
drivers/C-canvas.c:84:10: fatal error: sys/utsname.h: No such file or directory
   84 | #include <sys/utsname.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.

Maybe it builds only on GNU/Linux then you have to specify this...

urbanjost commented 2 years ago

The M_draw library does not currently include the native MSWIndows driver; and for screen use defaults to assuming X11 Windows is available. The easiest version to work with that has been on MSWIndows, MacOS, UNICOS, SunOS, Solaris, VAX/VMS, Aegis, ..... is to build from

http://www.urbanjost.altervista.org/LIBRARY/libvogle/html/index.html

and comment out or remove the driver(s) you do not want. The only place I build the MSWindows and X11 drivers in the same version is on CygWin, which can support both. I was planning on using M_draw as a test for fpm and preprocessing and adding in the MSWindows driver (or making it a separate little library) . The core library itself has been on "everything" over the years. I really have not been using MSWIndows for a long time but I know M_draw/vogle is still used on it including in WSL, Cygwin, MIngw and MSYS2. Hopefully, I can get onto an MSWindows machine. The utsname.h file is just being used for some metadata so I can remove that if needed. Have been away from networks for a couple of weeks so just saw this.

On 08/01/2022 6:54 PM Angelo Graziosi ***@***.***> wrote:

I tried to build M_draw in a MSYS2 shell but it fails thinking it is an X system:

[...]
cc -c -O -I../include drivers/C-X11.c -o drivers/C-X11.o
drivers/C-X11.c:8:10: fatal error: X11/Xlib.h: No such file or directory
    8 | #include <X11/Xlib.h>
      |          ^~~~~~~~~~~~
compilation terminated.

Then I tried to build in a MSYS2/MINGW64 shell but still fails:

Warning: Unused parameter 'ident' declared at (1) [-Wunused-parameter]
C:\msys64\mingw64\bin\ar.exe: creating ./lib/libM_draw.a
cc -c -O -I../include drivers/C-canvas.c -o drivers/C-canvas.o
drivers/C-canvas.c:84:10: fatal error: sys/utsname.h: No such file or directory
   84 | #include <sys/utsname.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.

Maybe it builds only on GNU/Linux then you have to specify this...

—
Reply to this email directly, view it on GitHub https://github.com/urbanjost/M_draw/issues/1 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AHDWN3OFOJ4YPYRWO4TWSNDVXBIUBANCNFSM55JD72AA .
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>