FLTK 1.3.3 MinGW 4.9.1 Configuration 配置
Download FLTK 1.3.3
Download CMake 3.2.0
Start CMake 3.2.0, fill the source and destination:
source: C:/FLTK/fltk-1.1.10
destination: C:/FLTK/build
Click Configure and use MinGW Makefiles to complie.
Change the following item:
CMAKE_INSTALL_PREFIX [C:/FLTK/MinGW]
click Configure again.
After configure is done (No errors show), click Generate.
Go back to your build folder, open command line, type: mingw32-make
Wait a long time for make process, have a cup of coffee :)
After make is done, type mingw32-make install
Now, the configuration is done, enjoy it :)
Let's test our installation. First create a test.cpp:
#include "FL/Fl.h"
#include "FL/Fl_Box.h"
#include "FL/Fl_Window.h" int main()
{
Fl_Window window(,, "Test");
Fl_Box box(,,,,"Hello World!");
window.show();
return Fl::run();
}
Then create the CMakeLists.txt:
CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT(TestFLTK) SET(FLTK_DIR C:\\FLTK\\MinGW)
SET(FLTK_FLUID_EXECUTABLE C:\\FLTK\\MinGW\\bin)
SET(FLTK_INCLUDE_DIR C:\\FLTK\\MinGW\\include)
SET(FLTK_LIBRARIES C:\\FLTK\\MinGW\\lib) FIND_PACKAGE(FLTK)
INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR}) set(Sources
test.cpp
) ADD_EXECUTABLE(${PROJECT_NAME} ${Sources}) TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${FLTK_LIBRARIES})
I use Qt Creator to compile and run the example code on Windows 7.
FLTK 1.3.3 MinGW 4.9.1 Configuration 配置的更多相关文章
- ITK 4.8.1 Qt 5.4 MinGW 4.9.1 Configuration 配置
Download ITK 4.8.1 Download Qt 5.4 with MinGW 4.9.1 Download CMake 3.2.0 I assume you've already ins ...
- VTK 6.3.0 Qt 5.4 MinGW 4.9.1 Configuration 配置
Download VTK 6.3.0 Download Qt 5.4 with MinGW 4.9.1 Download CMake 3.2.0 I assume you've already ins ...
- MinGW安装与环境变量配置和Sublime Text 2搭建C++编译环境
MinGW安装与环境变量配置 从http://sourceforge.net/projects/mingw/下载MinGW,安装到D:\MinGW.工具集选择安装(之后还可以进行安装卸载):至少需要安 ...
- FLTK 1.3.3 VS 2010 Configuration 配置
Download FLTK 1.3.3 Download VS2010 I assume you've already installed VS2010 correctly. Compile the ...
- FLTK 1.1.10 VS2010 Configuration 配置
Download FLTK 1.1.10 at here. Download VS2010 Download CMake 2.8.12 I assume you've already installe ...
- Windows下OpenCV 3.1.0 在 Qt Creator 4.0.2 (Qt 5.7.0 MinGW) 中的开发环境配置
2017-2-23 Update: 修改并添加了部分细节 最近正在学习OpenCV ,为毕业设计做准备.Windows版本的OpenCV都默认提供对VS的支持,其在VS中的配置比较简单,网上也有大批教 ...
- eclipse+cdt+minGW (C/C++ 编译)
1. 安装Eclipse CDT 方法1: 已安装Eclipse的话,可以通过菜单Help->Install New Software,安装CDT插件. 点击ADD后 Name:CDT L ...
- QT creator+OpenCV2.4.2+MinGW 在windows下开发环境配置
由于项目开发的原因,需要配置QT creator+OpenCV2.4.2+MinGW开发环境,现对配置方法做如下总结: 1. 下载必备软件 QT SDK for Open Source C++ de ...
- Clion+Cmake+Qt5+Qwt+msys2+MinGW在Windows下的安装配置使用教程
摘要: CLion, a cross-platform C/C++ IDE. 本文主要介绍基于Clion作为IDE, MinGW作为编译器,CMake作为项目构建工具,开发基于Qt5.qwt的C++图 ...
随机推荐
- petri网学习心得
本文转载自duxw,如给您带来不便之处,请联系博主. 1.Petri网书籍:<petri网导论>,吴哲辉 非常适合初学者.概念清晰,容易理解. 2.工作流书籍:<Workflow M ...
- bat批量去除文件首行和合并到文件
bat批量去除文件首行 set n=1 :starline for %%j in (*.txt) do ( :3 if exist D:\work\test\new_%n%.txt (set /a n ...
- 七维互联(www.7wei.com)
七维互联 http://www.7wei.com/ 黄云贵的Delphi http://www.cnblogs.com/huangygdelphi/articles/2232171.htm ...
- Java for LeetCode 198 House Robber
You are a professional robber planning to rob houses along a street. Each house has a certain amount ...
- Java for LeetCode 023 Merge k Sorted Lists
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 解 ...
- 4.django笔记之admin
作者:刘耀 QQ:22102107 django-Admin django amdin是django提供的一个后台管理页面,改管理页面提供完善的html和css,使得你在通过Model创建完数据库表之 ...
- codeforces B. Dima and Text Messages 解题报告
题目链接:http://codeforces.com/problemset/problem/358/B 题目意思:给出n个单词(假设为word1,word2.word3...wordn)和一句test ...
- iftop安装
安装方法1.编译安装 如果采用编译安装可以到iftop官网下载最新的源码包. 安装前需要已经安装好基本的编译所需的环境,比如make.gcc.autoconf等.安装iftop还需要安装libpcap ...
- ubuntu下简单的驱动编译
转自:http://www.eefocus.com/jefby1990/blog/13-02/291628_c39b8.html 本文是参考了网上多篇帖子而写的算不上什么原创.唯一值得欣慰的只不过在本 ...
- AppPoolService-IIS应用程序池辅助类(C#控制应用程序池操作)
using System.Collections.Generic; using System.DirectoryServices; using System.Linq; using Microsoft ...