FLTK logo

STR #3029

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 1.3 | Post Text | Post File | SVN ⇄ GIT | Prev | Next ]

STR #3029

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:Build Files
Summary:Build FLTK via Clang compiler and native Windows tools
Version:1.3-feature
Created By:AnyCPU
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 AnyCPU
05:02 Jan 15, 2014
clang-cmake-nmake-win-native.patch
7k
 
 
#2 AnyCPU
14:41 Jan 25, 2014
fltk-clang-native.patch
7k
 
 
#3 AnyCPU
06:18 Jan 26, 2014
fltk-clang-native_v2.patch
7k
 
 
#4 AnyCPU
12:44 Feb 01, 2014
fltk-clang-native_v3.patch
7k
 
     

Trouble Report Comments:

Post Text ]
Name/Time/Date Text  
 
#1 AnyCPU
05:02 Jan 15, 2014
Patch adds ability to build FLTK library via Cmake and native Windows tools.

Release or debug mode, x32 or x64.

Tested on Win64.

Fluid not supported.
 
 
#2 AnyCPU
05:05 Jan 15, 2014
Usage:

cmake -DCMAKE_C_COMPILER="path/to/clang.exe" -DCMAKE_CXX_COMPILER="path/to/clang++.exe" -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" "../fltk/fltk-1.3"

nmake -f ./src/Makefile BUILD=release
 
 
#3 AnyCPU
14:44 Jan 25, 2014
Updated patch fltk-clang-native.patch

Updated due to some changes in Clang and MS C++ ABI Support.

Works with FLTK 10081 and Clang 3.5 trunk.
 
 
#4 AnyCPU
06:20 Jan 26, 2014
Fixed a target triple.  
 
#5 AlbrechtS
02:09 Feb 01, 2014
Michael, please tell us how you run cmake (exact commandline with options, which generator, etc.) so that we can replicate it. From the discussion in fltk.general I learned (or: I assume) that you are using the NMake generator, so probably something like:

cmake -G "NMake Makefiles" (more options) /path/to/fltk

Is that correct?

Also interesting: how did you install clang? Where did you download it from, was it an executable package, or did you build it yourself? Is it designed to run "native" under Windows, or is it bundled with MinGW etc.?

We need this info to try it ourselves to do the integration work with FLTK.

Thanks for your patch and for your additional info in advance.
 
 
#6 AnyCPU
12:54 Feb 01, 2014
Added:
- Basic Clang Support for WIN32, CYGWIN, MINGW

FIX:
- Debug mode

STEPS:
0. FLTK Sources in <fltk-dir>
1. mkdir <build-dir>
2. cd <build-dir>
3. cmake -DCMAKE_C_COMPILER="clang.exe" -DCMAKE_CXX_COMPILER="clang++.exe" -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" "../<fltk-dir>"
4. nmake -f ./src/Makefile BUILD=release

NOTE:
1. Add to path: Cmake bin directory, Clang bin directory, Python bin directory
2. Use as path separator: /
3. Build: release or debug
 
 
#7 AnyCPU
12:57 Feb 01, 2014
BIG NOTE: There is no possible to override Compiler when "Visual Studio [...]" generator is used. At least now. It's always uses MSVC.  
     

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