|
wxWindows -- wxGTK的License
[复制链接]
|
|
发表于 16-3-2005 12:50 AM
|
显示全部楼层
尝试用了wxGlade , 发觉wxGlade 的GUI design 方式是用sizer ,而wx-devcpp 好像是用absolute position , 这一点, wxGlade 优。
但是, wxGlade 的基本control 很少, wx-devcpp 包括了其他wxWidgets 的control , 包括filelist 等等。 这一点, wx-devcpp 优。
考虑到portablility 是我选择用wxwidgets 的原因, 我觉得wxglade 比较适合。
以上只是一些浅见,因为还没真正用过, 只是作为大家的一个参考。 |
|
|
|
|
|
|
|
发表于 19-3-2005 06:29 AM
|
显示全部楼层
我现在在尝试开发code-blocks 的GUI Builder plugin , 不过我完全没有经验。
在读着wxGlade 的phyton 源代码, 不过我也是不会phyton 的。
这个是一个很有挑战性的尝试, 开始在读着wx-widgets 的源代码了。。 +_+ blur ... |
|
|
|
|
|
|
|

楼主 |
发表于 19-3-2005 08:08 PM
|
显示全部楼层
慢慢来,先学好wx-widgets 吧。
我也正在学,尽量不用任何code generator。 |
|
|
|
|
|
|
|
发表于 24-3-2005 05:26 AM
|
显示全部楼层
惭愧, 到现在还link 不到wxwidget 的程序。
以下是我的compile 和link 的error message , 那位有经验, 指点指点。
mingw32-g++.exe -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fno-exceptions -D_X86_ -DWIN32 -D_WIN32 -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -DSTRICT -D__WXMSW__ -D__WINDOWS__ -I"C:\\MinGW\\include" -I"C:\\wxWindows-2.4.2\\include" -I"..\\MinGW\\include" -I"..\\wxWindows-2.4.2\\include" -c "main.cpp" -o ".objs\\main.o"
mingw32-g++.exe -L"C:\\MinGW\\lib" -L"..\\MinGW\\lib" -L"..\\wxWindows-2.4.2\\lib" -L"..\\wxWindows-2.4.2\\contrib\\lib" -L"..\\wxWindows-2.4.2\\src\\msw" -o "wxwindows.exe" -L"C:\\MinGW\\lib" -L"..\\MinGW\\lib" -L"..\\wxWindows-2.4.2\\lib" -L"..\\wxWindows-2.4.2\\contrib\\lib" -L"..\\wxWindows-2.4.2\\src\\msw" ".objs\\main.o" -lstdc++ -lgcc -lgdi32 -lcomdlg32 -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid -lwxmswd -mwindows
..\\wxWindows-2.4.2\\lib/libwxmswd.a(app.o)(.text+0x61a): In function `ZN5wxApp10InitializeEv':
c:/wxwindows-2.4.2/src/msw/../../src/msw/app.cpp:235: undefined reference to `InitCommonControls@0'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(app.o)(.text+0x624):c:/wxwindows-2.4.2/src/msw/../../src/msw/app.cpp:249: undefined reference to `OleInitialize@4'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(app.o)(.text+0x1160): In function `ZN5wxApp7CleanUpEv':
c:/wxwindows-2.4.2/src/msw/../../src/msw/app.cpp:561: undefined reference to `OleUninitialize@0'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(statbr95.o)(.text+0x215): In function `ZN11wxStatusBar6CreateEP8wxWindowilRK8wxString':
c:/wxwindows-2.4.2/src/msw/../../src/msw/statbr95.cpp:104: undefined reference to `CreateStatusWindowA@16'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(utils.o)(.text+0x10f): In function `Z17wxGetFullHostNamePci':
c:/wxwindows-2.4.2/src/msw/../../src/msw/utils.cpp:182: undefined reference to `WSAStartup@8'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(utils.o)(.text+0x140):c:/wxwindows-2.4.2/src/msw/../../src/msw/utils.cpp:186: undefined reference to `gethostname@8'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(utils.o)(.text+0x176):c:/wxwindows-2.4.2/src/msw/../../src/msw/utils.cpp:192: undefined reference to `gethostbyname@4'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(utils.o)(.text+0x19f):c:/wxwindows-2.4.2/src/msw/../../src/msw/utils.cpp:197: undefined reference to `gethostbyaddr@12'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(utils.o)(.text+0x1f8):c:/wxwindows-2.4.2/src/msw/../../src/msw/utils.cpp:207: undefined reference to `WSACleanup@0'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(droptgt.o)(.text+0x998): In function `ZN12wxDropTarget8RegisterEm':
c:/wxwindows-2.4.2/src/msw/../../src/msw/ole/droptgt.cpp:330: undefined reference to `CoLockObjectExternal@12'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(droptgt.o)(.text+0x9f2):c:/wxwindows-2.4.2/src/msw/../../src/msw/ole/droptgt.cpp:336: undefined reference to `RegisterDragDrop@8'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(droptgt.o)(.text+0xa10):c:/wxwindows-2.4.2/src/msw/../../src/msw/ole/droptgt.cpp:338: undefined reference to `CoLockObjectExternal@12'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(droptgt.o)(.text+0xa8d): In function `ZN12wxDropTarget6RevokeEm':
c:/wxwindows-2.4.2/src/msw/../../src/msw/ole/droptgt.cpp:352: undefined reference to `RevokeDragDrop@4'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(droptgt.o)(.text+0xadc):c:/wxwindows-2.4.2/src/msw/../../src/msw/ole/droptgt.cpp:358: undefined reference to `CoLockObjectExternal@12'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(droptgt.o)(.data+0x0): In function `ZN12wxDataFormataSERKS_':
c:/wxwindows-2.4.2/src/msw/../../include/wx/msw/ole/dataform.h: undefined reference to `IID_IUnknown'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(droptgt.o)(.data+0x4):c:/wxwindows-2.4.2/src/msw/../../include/wx/msw/ole/dataform.h: undefined reference to `IID_IDropTarget'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(spinbutt.o)(.text+0x2e1): In function `ZN12wxSpinButton6CreateEP8wxWindowiRK7wxPointRK6wxSizelRK8wxString':
c:/wxwindows-2.4.2/src/msw/../../src/msw/spinbutt.cpp:122: undefined reference to `CreateUpDownControl@48'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(imaglist.o)(.text+0x177): In function `ZN11wxImageList6CreateEiibi':
c:/wxwindows-2.4.2/src/msw/../../src/msw/imaglist.cpp:99: undefined reference to `ImageList_Create@20'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(imaglist.o)(.text+0x200): In function `ZN11wxImageListD2Ev':
c:/wxwindows-2.4.2/src/msw/../../src/msw/imaglist.cpp:113: undefined reference to `ImageList_Destroy@4'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(imaglist.o)(.text+0x25e): In function `ZN11wxImageListD1Ev':
c:/wxwindows-2.4.2/src/msw/../../src/msw/imaglist.cpp:113: undefined reference to `ImageList_Destroy@4'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(imaglist.o)(.text+0x2bc): In function `ZN11wxImageListD0Ev':
c:/wxwindows-2.4.2/src/msw/../../src/msw/imaglist.cpp:113: undefined reference to `ImageList_Destroy@4'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(imaglist.o)(.text+0x354): In function `ZNK11wxImageList13GetImageCountEv':
c:/wxwindows-2.4.2/src/msw/../../src/msw/imaglist.cpp:127: undefined reference to `ImageList_GetImageCount@4'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(imaglist.o)(.text+0x3a3): In function `ZNK11wxImageList7GetSizeEiRiS0_':
c:/wxwindows-2.4.2/src/msw/../../src/msw/imaglist.cpp:135: undefined reference to `ImageList_GetIconSize@12'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(imaglist.o)(.text+0x440): In function `ZN11wxImageList3AddERK8wxBitmapS2_':
c:/wxwindows-2.4.2/src/msw/../../src/msw/imaglist.cpp:149: undefined reference to `ImageList_Add@12'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(imaglist.o)(.text+0x4aa): In function `ZN11wxImageList3AddERK8wxBitmapRK8wxColour':
c:/wxwindows-2.4.2/src/msw/../../src/msw/imaglist.cpp:169: undefined reference to `ImageList_AddMasked@12'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(imaglist.o)(.text+0x4f9): In function `ZN11wxImageList3AddERK6wxIcon':
c:/wxwindows-2.4.2/src/msw/../../src/msw/imaglist.cpp:184: undefined reference to `ImageList_ReplaceIcon@12'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(imaglist.o)(.text+0x56e): In function `ZN11wxImageList7ReplaceEiRK8wxBitmapS2_':
c:/wxwindows-2.4.2/src/msw/../../src/msw/imaglist.cpp:205: undefined reference to `ImageList_Replace@16'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(imaglist.o)(.text+0x616): In function `ZN11wxImageList7ReplaceEiRK6wxIcon':
c:/wxwindows-2.4.2/src/msw/../../src/msw/imaglist.cpp:221: undefined reference to `ImageList_ReplaceIcon@12'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(imaglist.o)(.text+0x69f): In function `ZN11wxImageList6RemoveEi':
c:/wxwindows-2.4.2/src/msw/../../src/msw/imaglist.cpp:237: undefined reference to `ImageList_Remove@8'
..\\wxWindows-2.4.2\\lib/libwxmswd.a(imaglist.o)(.text+0x712): In function `ZN11wxImageList9RemoveAllEv':
Process terminated with status 1 (0 minutes, 44 seconds)
29 errors, 0 warnings
[ Last edited by jangancari on 23-3-2005 at 03:27 PM ] |
|
|
|
|
|
|
|

楼主 |
发表于 24-3-2005 01:29 PM
|
显示全部楼层
jangancari 于 24-3-2005 05:26 AM 说 :
惭愧, 到现在还link 不到wxwidget 的程序。
以下是我的compile 和link 的error message , 那位有经验, 指点指点。
mingw32-g++.exe -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fno- ...
你用什么IDE or tool? |
|
|
|
|
|
|
|
发表于 28-3-2005 08:20 AM
|
显示全部楼层
chewkit 于 23-3-2005 11:29 PM 说 :
你用什么IDE or tool?
我用的是Code::Block 。 |
|
|
|
|
|
|
|
发表于 28-3-2005 10:55 AM
|
显示全部楼层
jangancari 于 28-3-2005 08:20 AM 说 :
我用的是Code::Block 。
你正在compile wxWidgets 2.4.2 Debug version? 你用CodeBlock来compile wxWidgets? 试试看使用Makefile来 compile,看效果一样吗?
chewkit:
你有将wxWin的library path 设定好吗? 你在configure的时候做过什么?
 |
|
|
|
|
|
|
|
发表于 28-3-2005 11:01 PM
|
显示全部楼层
我的问题已经暂时解决了, 是没有link 到一些library的关系, 谢谢大家的回复。
Sirius 于 27-3-2005 08:55 PM 说 :
你正在compile wxWidgets 2.4.2 Debug version? 你用CodeBlock来compile wxWidgets? 试试看使用Makefile来 compile,看效果一样吗?
不, 我是用code block 来写一个简单的wx-widgets 程序。
我已经用makefile 来编译wxwidgets 了。
虽然我的问题已经解决, 但是执行时有点问题, 说wxwidgets 的version 不同(debug version), 这可能是我makefile 是编译出来的是debug 版本 , 今晚会再重编译wxwidgets final 版本, 才来link 过。 |
|
|
|
|
|
|
|

楼主 |
发表于 29-3-2005 09:09 AM
|
显示全部楼层
你有将wxWin的library path 设定好吗? 你在configure的时候做过什么?
我有设定WXWIN和Path里加%WXWIN%。
很奇怪我自己写的程序compile却没问题,但是wxsqlite就不能。
我只是按./configure而已,请问还要放些什么在后面?
jangancari:
Code::Block 也compile不到我写的程序。
请问如何设定? |
|
|
|
|
|
|
|
发表于 29-3-2005 12:25 PM
|
显示全部楼层
chewkit 于 28-3-2005 07:09 PM 说 :
我有设定WXWIN和Path里加%WXWIN%。
很奇怪我自己写的程序compile却没问题,但是wxsqlite就不能。
我只是按./configure而已,请问还要放些什么在后面?
jangancari:
Code::Block 也compile不到我写的程 ...
你可以尝试在code::block 的Menu > Project > build options
compiler dir 加入 %WXWIN%/include
不过, 我还是建议你用configure file 来安装, 你尝试 把%WXWIN%/include 加入PATH 这个environment variable , 因为我看你的编译错误是找不到%WXWIN%/include 里的 wx/<header file> |
|
|
|
|
|
|
|

楼主 |
发表于 30-3-2005 09:26 AM
|
显示全部楼层
哎呀,好头痛!还是弄不到。
暂时用回makefile.g95来complile。 |
|
|
|
|
|
|
|
发表于 6-4-2005 07:37 AM
|
显示全部楼层
天啊, 我upgrade 了code block , 竟然又不能link wxwidgets 程序了。。 天啊。。 |
|
|
|
|
|
|
|
发表于 6-4-2005 11:24 AM
|
显示全部楼层
wxWidgets 2.5.5 出来了,多几个星期就可以出下一个稳定版本 2.6了。但是2.5.5好像还有bugs,还是让别人当当白老鼠  我还在 2.5.2 |
|
|
|
|
|
|
|
发表于 6-4-2005 11:36 AM
|
显示全部楼层
刚刚解决了,uninstall 了code block , 这次选择remove setting, 再安装过就好了。 看来是convert 旧版本的setting 那儿出错了。
我还在用2.4.2 版 。。, 应该会upgrade 了。
Sirius , 有关于sqlite 的东西想请教你。 sqlite 是embeded database, 我们用可不可以用它先创建table /database(not runtime) 就像ms access /foxpro DBF 那样, 然后才调用它的源代码来access 这资料库/table ?
还是我们一定要在run-time 创建table/db , 才能使用它? |
|
|
|
|
|
|
|

楼主 |
发表于 6-4-2005 08:15 PM
|
显示全部楼层
jangancari 于 6-4-2005 11:36 AM 说 :
刚刚解决了,uninstall 了code block , 这次选择remove setting, 再安装过就好了。 看来是convert 旧版本的setting 那儿出错了。
我还在用2.4.2 版 。。, 应该会upgrade 了。
Sirius , 有关于sqlite 的 ...
和MS Access,foxpro差不多. |
|
|
|
|
|
|
|
发表于 7-4-2005 02:21 AM
|
显示全部楼层
jangancari 于 6-4-2005 11:36 AM 说 :
Sirius , 有关于sqlite 的东西想请教你。 sqlite 是embeded database, 我们用可不可以用它先创建table /database(not runtime) 就像ms access /foxpro DBF 那样, 然后才调用它的源代码来access 这资料库/table ?
还是我们一定要在run-time 创建table/db , 才能使用它?
我用wxSQLite 2.x的话,可以run time create table也可以先行create,不过通常我都是用后者,至少可以给我的中间人看看sample data
而且我的program有一个问题,我在DB table里面使用了一个self increase的field,结果当DB table是空的时候,我就不能用我的program insert第一个record  |
|
|
|
|
|
|
|
发表于 9-4-2005 01:57 AM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 18-11-2005 03:00 AM
|
显示全部楼层
把这个wxwidgets 的讨论帖子捞上来。
wxWidgets 已将到了 2.62 , 改了很多, wxGTK 也改变了很多, 有些功能上需要gtk2.0 了。
在Linux 日益普及的现在, 跨平台的framework 越来越有价值, 我看好wxwidgets 在桌面应用软体的前景。Java 也不可以忽视, 开源码的Java 出了我就一定一头栽下去学。 |
|
|
|
|
|
|
|
发表于 26-8-2007 03:00 PM
|
显示全部楼层
原帖由 jangancari 于 18-11-2005 03:00 AM 发表 
把这个wxwidgets 的讨论帖子捞上来。
wxWidgets 已将到了 2.62 , 改了很多, wxGTK 也改变了很多, 有些功能上需要gtk2.0 了。
在Linux 日益普及的现在, 跨平台的framework 越来越有价值, 我看好wxwidg ...
回顾旧帖, 现在Sun 也把JDK 开源了 (虽然目前还不完全), 希望有机会参与这样的project 来学习。 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|