close
引用小豪強者
http://www.haostudio.idv.tw/blog/
繼在Linux中安裝wxWidgets之後,
現在又有需求將wxWidgets裝在Cygwin中.
(1) 先到http://www.cygwin.com/下載並安裝cygwin. 我目前裝的是1.7 beta版. 並且所有的套件全部裝上, 以免缺東缺西的很討厭. 反正我HDD夠大,沒差那1,2GB
(2) 到http://www.wxwidgets.org/下載wxWidgets source code. 我目前用的是wxX11-2.8.10.tar.gz. 並將其copy到Cygwin 中的$HOME/src
(3)因為我只想將wxWidget中安裝給自己使用, 所以目標是將wxWidget裝在自己的home directory.
(4) 新增一個檔案叫做install_wx_cygwin.sh 在$HOME/src中, 內容如下:
#!/bin/bash export CFLAGS=-mno-cygwin
export CPPFLAGS=-mno-cygwin
export CXXFLAGS=-mno-cygwin
export LDFLAGS="-mno-cygwin -mwindows"
./configure --prefix=$HOME --with-msw --enable-unicode --disable-shared \
--enable-std_iostreams --disable-precomp-headers --without-expat
make
make install
make samples
P.S. or just
#./confugere --prefix=/usr/lib/wxWidget --disable-shared; make; make install
-----------------------------------------------------------------------
http://wiki.wxwidgets.org/Supported_Platforms#Platforms_supported_by_wxMSW
Build WxWidget error on Cygwin
../src/msw/utils.cpp:218: error: invalid use of incomplete type 'struct hostent'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winsock.h:452: error: forward declaration of 'struct hosten
http://forums.wxwidgets.org/viewtopic.php?t=26480
# export CPPFLAGS=-D__USE_W32_SOCKETS;
#./confugere --prefix=/usr/lib/wxWidget --disable-shared; make; make install
(You can --disable-sockets , if your application does not use sockets. Otherwise, this is bug 11626 : http://trac.wxwidgets.org/ticket/11626
this is reported fixed in SVN)
全站熱搜