FLTK logo

Re: [fltk.general] Re: FLTK msys2 initial step fails

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: FLTK msys2 initial step fails Greg Ercolano Nov 24, 2021  
  On 11/24/21 11:25 AM, Mark Olesen wrote:
Mark J Olesen@DESKTOP-64I0KOO MINGW64 ~/opensource/fltk
$ make
[..]
=== making src =""> make[1]: Entering directory '/home/Mark J Olesen/opensource/fltk/src'
Compiling Fl.cxx...
In file included from Fl.cxx:22:
../FL/platform.H:51:14: fatal error: X11/Xlib.h: No such file or directory
   51 | #    include <X11/Xlib.h>
      |              ^~~~~~~~~~~~
compilation terminated.

    Having trouble replicating here, using a fresh install of msys2 + fltk cloned from git
    on Windows 8. (I see you used Win10, but I wouldn't think it'd matter).

    Sails right through the build of fltk-1.4.x freshly cloned from github.
    (I think you haven't mentioned which version of FLTK you're using, so I'm
    to assume the current master from git)

    Perhaps the devil's in the details of how you installed msys2?

    In my case:

        1) I followed steps 1 through 7 on this page: https://www.msys2.org/

        2) Not sure why, but 'git' was not part of the 'base-devel' install in step 7 above,
           so I had to install it with: pacman -S git

        3) Cloned fltk, cd'ed into the directory and ran 'make':

                git clone https://github.com/fltk/fltk.git fltk-1.4.x.git
                cd
fltk-1.4.x.git
                make

    This automatically ran autogen, ran configured, and then started building FLTK.

    Built OK, 2 warnings no errors.
    (I'll report the warnings in an issue - one warning was from PNG, the other from Fl_Table)


CAVEAT
    To install a new msys2 in place of my older out of date one, I simply renamed away my old
    msys2 install using the following in a DOS window (and making sure no msys shells were open):

            move c:\msys64 c:\.deleteme-msys64

    ..then installed from scratch using the above instructions.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/7fa5b51f-55f8-7b6f-35ea-392f048ca9e5%40seriss.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.