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 installed VS2010 and CMake 2.8.12 correctly.

Compile the VTK:

Start CMake 2.8.12, fill the source and destination:

source: C:/FLTK/fltk-1.1.10

destination: C:/FLTK/VS2010

Click Configure and use Visual Studio 10 2010 to complie.

When first configure is done, select Grouped and Advanced.

BUILD_EXAMPLES          [ON]  
BUILD_TEST              [ON]  
CMAKE_INSTALL_PREFIX    [C:/FLTK/VS2010_install]  

click Configure again.

After configure is done (No errors show), click Generate.

Go back to your build folder, open FLTK.sln, right click ALL_BUILD, choose Rebuild.

Wait a long time for make process, have a cup of coffee :)

After rebuild is done, right click INSTALL, choose Build.

Now, the configuration is done, enjoy it :)

Create a new empty project,

Open VS2010, create an empty project, go to Properties -> Linker -> Input -> Additional Dependencies, copy the following items:

fltk.lib
fltk_forms.lib
fltk_gl.lib
fltk_images.lib
fltk_jpeg.lib
fltk_png.lib
fltk_zlib.lib

Create a new .cpp file, and try the following test code:

#include "FL/Fl.h"
#include "FL/Fl_Box.h"
#include "FL/Fl_Window.h"

int main()
{

    Fl_Window window(500,500, "Test");

    Fl_Box box(0,0,500,500,"Hello World!");

    window.show();

    return Fl::run();

}

本文转自博客园Grandyang的博客,原文链接:配置FLTK 1.1.10 VS2010 Configuration ,如需转载请自行联系原博主。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值