FLTK logo

STR #1560

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 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File | SVN ⇄ GIT ]

STR #1560

Application:FLTK Library
Status:5 - New
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:2 - Specific to an operating system
Subsystem:Unassigned
Summary:crosscompiling under unix and (compiling under windows with MINGW)
Version:2.0-feature
Created By:renez
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]
Name/Time/Date Filename/Size  
 
#1 renez
17:54 Jan 10, 2007
fltkpatch
3k
 
     

Trouble Report Comments:

Post Text ]
Name/Time/Date Text  
 
#1 renez
17:54 Jan 10, 2007
I would like fltk to support the mingw cross compiler under linux/UNix.
Problems at the moment
1) crosscompiling depends on --host option to configure
   currently fltk assumes that the library will be used where it is
   compiled. it uses uname to determine the platform.
      Solution if cross compiling the var cross_compiling is set to yes
               then use $host in stead of `uname` in cofigure.in .
2) configure assumes that uname on mingw/cygwin will be in uppercase.
   The cross compiler is called i[356]86-mingw32.
      Solution add *mingw* to the cases CYGWIN* | MINGW*
3) test/sodoku needs windres compiler and assumes that it is llways
   called windres.
      Solution
            - change test/Makefile windres to ${WINDRES}
            - add WINDRES = @WINDRES@ to makeincludes
            - add  AC_CHECK_TOOL(WINDRES,windres) and AC_SUBST(WINDRES)
              to configure.in
It might that the configure under mingw32 on windows will benefit from
these changes also.

I have enclosed a patch to the above effect against 1.18 subversion
version 5596. Change dir into fltk-1.1 and type patch -p0 < fltkpatch in order to apply it.
 
 
#2 mike
05:33 Jan 11, 2007
Those changes are not sufficient - we still run FLUID locally to build the examples, which is incompatible with cross-compiling anyways.

-1 on including this in 1.1.x.
 
 
#3 renez
12:40 Jan 11, 2007
That wont be a problem if you got wine on your system and change the line to wine ../fluid/fluid so cross compiling and wine will make this possible. you could consider the windres check though for the mingw users.  
 
#4 fabien
03:05 Jan 12, 2007
I like the platform being detected autommatically by fltk.
I like that compilation scheme and maintenance is kept as simple as possible (including configure, variable decl., ....).

-1 for that feature on fltk 2.0, 0 for fltk post 2.x
 
     

Return to Bugs & Features | Post Text | Post File ]

 
 

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'.