FLTK logo

Re: [fltk.general] Build windows msys2

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: Build windows msys2 Greg Ercolano Mar 11, 2021  
 


On 3/11/21 3:35 AM, Francois Arrona wrote:
Hi, all.

I'm trying to build fltk on a windows machine with msys2 and mingw64.
When I run ./configure, it stops on error : cannot find requested X11 libs.

I used pacman to install mingw-...-tk tools which install what I supposed the configure needed, but it still fails.

What is missing and how can I install it ?


    For fltk 1.4.x I've been using cmake to build FLTK on Windows with msys2/mingw.

    Here's some instructions I reposted in September 2020 of something I posted
    on coredev back in June.

    In particular step 6 shows how to build with cmake, which assumes
    cmake was installed w/pacman; if not see step 5 for the mingw/cmake install instructions.


Subject: Re: [fltk.general] Configure error when installing FLTK 1.4 on Windows/Mingw
From: Greg Ercolano <erco@seriss.com>
Date: Fri, 4 Sep 2020 10:51:40 -0700

[..]
   1. Started with https://www.msys2.org/
      Download and run the .exe, which guides you through a simple GUI wizard installation.
      You end up with a c:\msys64 directory once installed.

   2. Open a mingw64 shell window from DOS, e.g.

      cd \msys64
      mingw64.exe

   3. Inside the new shell that opens, get the latest updates by running:

      pacman -Syu        # -S=sync, -y=refresh pkg dbase, -u=upgrades out of date pkgs,

   4. The above step may close the shell window you opened as part of the updating process.
      Docs say to open the window again, and this time run:

      pacman -Su

   5. Now install man, vim, the 64bit compiler, make, man, and cmake for mingw:

      pacman -S man
      pacman -S vim
      pacman -S mingw-w64-x86_64-gcc
      pacman -S mingw-w64-x86_64-cmake
      pacman -S make

      Installing man is optional, but useful for 'man pacman'.
      Installing vim is optional, but it's useful to have a console editor of some kind.

   6. With this installed, one should be able to run cmake to build fltk the usual way:

      cd /c/fltk-1.4.x-git
      mkdir build-mingw64
      cd build-mingw64
      /mingw64/bin/cmake -G "Unix Makefiles" ..
      make

      My result was a nice colorful progress and no errors.

      Please note the ".." at the end of the cmake command is literal, and not an elipsis.
      You can add other flags to the cmake command to affect the build of FLTK; see the
      README.CMake.txt docs for more about that.


--
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/ce66171e-1f6e-fd64-94fd-e24df44b9eda%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'.