fltk demo

背景:

基于microwindows nano-X上面运行fltk demo,是nano-X API 预留的fltk接口.

 

运行环境及程序版本:

microwindows-0.89pre8

(源文件必须下载,编译通过.编译过程请参考以下网址内容中的[如何编译源文件]部分,版本不同,但是类似的操作)

http://www.cnblogs.com/galoishelley/p/3413964.html

 

flnx-0.16(编译过程比较复杂,之后贴链接)

Linux debian7

 

编写及运行:

1- 编写login_main.cxx,文件保存到~/flnx-0.16/test/

源代码:

https://github.com/galoishelley/fltk

 

2- 修改~/flnx-0.16/test/Makefile

CPPFILES =\
CubeMain.cxx CubeView.cxx \
adjuster.cxx arc.cxx ask.cxx bitmap.cxx boxtype.cxx browser.cxx button.cxx \
buttons.cxx checkers.cxx clock.cxx colbrowser.cxx color_chooser.cxx \
cube.cxx cursor.cxx curve.cxx demo.cxx doublebuffer.cxx editor.cxx \
file_chooser.cxx fonts.cxx forms.cxx fractals.cxx fullscreen.cxx \
gl_overlay.cxx glpuzzle.cxx hello.cxx iconize.cxx image.cxx input.cxx \
keyboard.cxx label.cxx list_visuals.cxx mandelbrot.cxx menubar.cxx \
message.cxx minimum.cxx navigation.cxx output.cxx overlay.cxx pixmap.cxx \
pixmap_browser.cxx radio.cxx resizebox.cxx scroll.cxx shape.cxx shiny.cxx \
subwindow.cxx symbols.cxx tabs.cxx tile.cxx valuators.cxx fast_slow.cxx \
resize.cxx pack.cxx inactive.cxx login_main.cxx

ALL = valuators CubeView adjuster arc ask bitmap boxtype browser button buttons checkers \
clock colbrowser color_chooser cube cursor curve demo doublebuffer \
editor file_chooser fonts forms fractals fullscreen gl_overlay \
glpuzzle hello iconize image input keyboard label list_visuals \
mandelbrot menubar message minimum navigation output overlay pixmap \
pixmap_browser radio resizebox scroll shape shiny subwindow \
symbols tabs tile fast_slow resize pack inactive login_main

 

3- 编译login_main

cd ~/flnx-0.16/test/
make

 

4- 确认电脑的X11,如没启动,请运行.

xinit

 

5- 运行fltk必须先运行nano-X,如果无法启动,提示Cannot initialise keyboard,则执行第4步.

~/microwindows-0.89pre8/src/bin$ ./nano-X

 

6- 运行fltk

~/flnx-0.16/test$ ./login_main

 

参考资料:

http://www.fltk.org/doc-1.3/classFl__Adjuster.html

 

 read-only access to git repository:

git clone https://github.com/galoishelley/fltk

 

转载于:https://www.cnblogs.com/galoishelley/p/3423574.html

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值