| [ Return to Bugs & Features | Roadmap 1.3 | Post Text | Post File | 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: | |
Trouble Report Files:
[ Post File ]
Trouble Report Comments:
[ Post 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 ]
|
| |