开发者

compile wxWidget on Snow Leopard

开发者 https://www.devze.com 2022-12-28 14:47 出处:网络
I just downloaded wxWidget source code on my snow leopard machine. The source code is the multiplatform one, so it contains windows and GTK components of wxWidget as well. I\'d like to compile the wxW

I just downloaded wxWidget source code on my snow leopard machine. The source code is the multiplatform one, so it contains windows and GTK components of wxWidget as well. I'd like to compile the wxWidget source code, but haven't found a good guide yet.

This is my first step to create a multiplatform project, hopefully I would be able to use CMake to generate makefile later on.

Any help would be appreciated.

EDIT: Just to clarify, I'd like to build stable release of wxWidget on S开发者_JAVA技巧now Leopard, it would be building wxWidget 2.8.x on OS X 10.6.x. I have read the compiling wiki here http://wiki.wxwidgets.org/Development:_wxMac#Building_under_10.6_Snow_Leopard Unfortunately, it didn't help.


I like using configure/make/make install:

./configure --enable-monolithic --enable-universal_binary --disable-shared --with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk
make
sudo make install

I just tried this with wxWidgets 2.9.0 and it worked great.


The wxWiki is always a good place for guides, specifically the various OSX guides and the extra note here about compiling under 10.6.

It would also be good to note that there have been many changes between the current stable releases and the trunk, specifically much work has been done on a port to Cocoa.

Using CMake is pretty straight forward, just check the FindWxWidgets.cmake file in CMake for instructions, you can also check out the CMake docs (I would give the link but they don't seem to be up right now).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号