[讨论]怎么开发跨平台的程序呢?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
delectate
帖子: 18311
注册时间: 2008-01-09 22:41

[讨论]怎么开发跨平台的程序呢?

#1

帖子 delectate » 2008-07-20 23:34

哪个平台适合作为基础,然后开发模型,最后向其他平台伸出“罪恶的小手”? :em06

平时没事,想弄一个摄像头的程序,我比较习惯win下编程(说实话,u下只试过shell编程,c还没碰)

那么我是先在u下写程序然后移植给win还是反其道而行之?

感觉win下资料多一点,u下问题多一点

有没有那位高手有类似经验愿意分享一下呢?

我先在这感谢一下了!
JiangHui
论坛版主
帖子: 21308
注册时间: 2007-08-02 20:29
系统: 窓辺とうこ

#2

帖子 JiangHui » 2008-07-21 0:11

一次编译,处处运行。
——Java
delectate
帖子: 18311
注册时间: 2008-01-09 22:41

#3

帖子 delectate » 2008-07-21 0:15

JiangHui 写了:一次编译,处处运行。
——Java
别的语言呢?
JiangHui
论坛版主
帖子: 21308
注册时间: 2007-08-02 20:29
系统: 窓辺とうこ

#4

帖子 JiangHui » 2008-07-21 0:17

后代 写了:
JiangHui 写了:一次编译,处处运行。
——Java
别的语言呢?
貌似 QT库跨平台
头像
yjcong
帖子: 2470
注册时间: 2006-02-28 3:11

#5

帖子 yjcong » 2008-07-21 0:23

wx...
一梦三年,
松风依旧,
萝月何曾老.


灵幽听微, 谁观玉颜?
灼灼春华, 绿叶含丹.
delectate
帖子: 18311
注册时间: 2008-01-09 22:41

#6

帖子 delectate » 2008-07-21 0:25

yjcong 写了:wx...
you mean that?

http://packages.ubuntu.com/zh-cn/dapper/bochs-wx
头像
yjcong
帖子: 2470
注册时间: 2006-02-28 3:11

#7

帖子 yjcong » 2008-07-21 0:33

wxWidgets lets developers create applications for Win32, Mac OS X, GTK+, X11, Motif, WinCE, and more using one codebase. It can be used from languages such as C++, Python, Perl, and C#/.NET. Unlike other cross-platform toolkits, wxWidgets applications look and feel native. This is because wxWidgets uses the platform's own native controls rather than emulating them. It's also extensive, free, open-source, and mature.


http://www.wxwidgets.org/

坛子里好像有人提过
上次由 yjcong 在 2008-07-21 0:36,总共编辑 1 次。
一梦三年,
松风依旧,
萝月何曾老.


灵幽听微, 谁观玉颜?
灼灼春华, 绿叶含丹.
头像
jialeadmin
帖子: 724
注册时间: 2008-06-17 23:17
来自: 灾区
联系:

#8

帖子 jialeadmin » 2008-07-21 0:35

一窍不通的我路过 伤心的走开
◆WINDOWS系统已彻底删除
◆正在安装UBUNTU 9.04
◆系统正在复制文件,请稍等...
┌────────────┐
│ ■■■■■■■□□□ 70% │
└────────────┘
delectate
帖子: 18311
注册时间: 2008-01-09 22:41

#9

帖子 delectate » 2008-07-21 23:20

yjcong 写了:wxWidgets lets developers create applications for Win32, Mac OS X, GTK+, X11, Motif, WinCE, and more using one codebase. It can be used from languages such as C++, Python, Perl, and C#/.NET. Unlike other cross-platform toolkits, wxWidgets applications look and feel native. This is because wxWidgets uses the platform's own native controls rather than emulating them. It's also extensive, free, open-source, and mature.


http://www.wxwidgets.org/

坛子里好像有人提过
有一种站在巨人肩膀的感觉

假如说如果是拿vc写如何转移到linux
头像
blackfail
帖子: 45
注册时间: 2007-07-25 22:05
来自: Mark
联系:

#10

帖子 blackfail » 2008-07-21 23:27

use python
delectate
帖子: 18311
注册时间: 2008-01-09 22:41

#11

帖子 delectate » 2008-07-21 23:28

blackfail 写了:use python
but I want to use C
头像
syrano
帖子: 4313
注册时间: 2007-10-06 18:40

#12

帖子 syrano » 2008-07-21 23:34

后代 写了:
blackfail 写了:use python
but I want to use C
QT和GTK都可以跨平台(win下需要相应的dll)
相对来说QT比GTK跨平台方便一些。
E=m c^2
头像
xhy
帖子: 3916
注册时间: 2005-12-28 1:16
系统: Ubuntu 12.10 X64
来自: 火星

#13

帖子 xhy » 2008-07-22 1:24

与OS和设备有关的部分用C分别实现

其余的用Java实现
目前负债150多万
头像
mghohoo
帖子: 364
注册时间: 2008-07-13 18:29
来自: 广州

#14

帖子 mghohoo » 2008-07-22 3:22

用opencv做摄像头那部分把~
笔记本:Acer 3820tg
台式机:
CPU:Intel E-1230V
内存:32GB RAM
显卡:660GTX
硬盘:INTEL 730 480G
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#15

帖子 kofshower » 2008-07-22 7:54

mozilla平台
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
回复