<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LiangXu Wang &#187; Windows</title>
	<atom:link href="http://wlx.westgis.ac.cn/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://wlx.westgis.ac.cn</link>
	<description>technology backup/share</description>
	<lastBuildDate>Sat, 14 Jan 2012 03:56:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>cout float的显示问题</title>
		<link>http://wlx.westgis.ac.cn/589/</link>
		<comments>http://wlx.westgis.ac.cn/589/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 04:52:05 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Program]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[cout]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=589</guid>
		<description><![CDATA[在c++，使用cout直接显示float类型的数据，在不同系统上显示方式可能有所不同。 测试代码： #include &#60;iostream&#62; using namespace std; int main() { float t=0.000000277; cout&#60;&#60;t&#60;&#60;endl; return 0; } 在LINUX上： 2.77e-07 而在WINDOWS上结果如下： 2.77e-007]]></description>
			<content:encoded><![CDATA[<p>在c++，使用cout直接显示float类型的数据，在不同系统上显示方式可能有所不同。<br />
测试代码：<br />
<code>#include &lt;iostream&gt;</p>
<p>using namespace std;</p>
<p>int main()<br />
{<br />
    float t=0.000000277;<br />
    cout&lt;&lt;t&lt;&lt;endl;<br />
    return 0;<br />
}</code><br />
在LINUX上：</p>
<blockquote><p>2.77e-07</p></blockquote>
<p>而在WINDOWS上结果如下：</p>
<blockquote><p>2.77e-007</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/589/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在ubuntu中使用samba客户端</title>
		<link>http://wlx.westgis.ac.cn/482/</link>
		<comments>http://wlx.westgis.ac.cn/482/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 08:16:24 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[smbfs]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/482/</guid>
		<description><![CDATA[主要目的是想在ubuntu中使用WINDOWS服务器上的空间，所有的数据都是挂在WINDOWS服务器上的一个磁盘阵列，操作方法参考此处。 首先安装： sudo aptitude install smbfs 然后准备一个目录： sudo mkdir /media/Storage 输入帐号，放在/root/.cifscredentials文件，内容如下： username=Guest password= 分别对应WINDOWS共享下的用户名和密码。 然后编辑/etc/fstab，添加一行： //192.168.0.10/SHARENAME /media/Storage cifs auto,iocharset=utf8,uid=USER,gid=users,credentials=/root/.cifscredentials,file_mode=0775,dir_mode=0775 0 0 然后修改上述的信息为你实际的信息， 192.168.0.10对应服务器地址 /media/Storage对应ubuntu中的目录 user对应共享后的用户名 users对应共享后的用户组 file_mode=0775，dir_mode=0775的意义是对所有用户都可读写。 然后使用下面的命令执行mount过程： sudo mount -a 如果共享名称里包含空格，可以使用\040来代替。]]></description>
			<content:encoded><![CDATA[<p>主要目的是想在ubuntu中使用WINDOWS服务器上的空间，所有的数据都是挂在WINDOWS服务器上的一个磁盘阵列，操作方法参考<a href="http://www.mattvanstone.com/2007/11/automatically-mounting-windows-smb-shares-in-ubuntu-v3/">此处</a>。<br />
首先安装：</p>
<blockquote><p>sudo aptitude install smbfs</p></blockquote>
<p>然后准备一个目录：</p>
<blockquote><p>sudo mkdir /media/Storage</p></blockquote>
<p>输入帐号，放在/root/.cifscredentials文件，内容如下：</p>
<blockquote><p>username=Guest<br />
password=</p></blockquote>
<p>分别对应WINDOWS共享下的用户名和密码。<br />
然后编辑/etc/fstab，添加一行：</p>
<blockquote><p>//192.168.0.10/SHARENAME /media/Storage cifs auto,iocharset=utf8,uid=USER,gid=users,credentials=/root/.cifscredentials,file_mode=0775,dir_mode=0775 0 0</p></blockquote>
<p>然后修改上述的信息为你实际的信息，<br />
192.168.0.10对应服务器地址<br />
/media/Storage对应ubuntu中的目录<br />
user对应共享后的用户名<br />
users对应共享后的用户组<br />
file_mode=0775，dir_mode=0775的意义是对所有用户都可读写。<br />
然后使用下面的命令执行mount过程：</p>
<blockquote><p>sudo mount -a</p></blockquote>
<p>如果共享名称里包含空格，可以使用\040来代替。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/482/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用批处理进行按星期的数据库备份</title>
		<link>http://wlx.westgis.ac.cn/212/</link>
		<comments>http://wlx.westgis.ac.cn/212/#comments</comments>
		<pubDate>Mon, 07 Aug 2006 06:19:13 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bat]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/212/</guid>
		<description><![CDATA[需要按星期进 @echo off echo &#8212;&#8212;&#8212;&#8211; echo name: Oracle data export automata utility echo author: WANG Liangxu echo date: 2006-8-7 echo refined by NAN Zhuotong echo documented by NAN Zhuotong echo Any problem please contact us via wlx@mygis.org; nztong@lzb.ac.cn REM This &#8230; <a href="http://wlx.westgis.ac.cn/212/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>需要按星期进</p>
<blockquote><p>@echo off<br />
echo &#8212;&#8212;&#8212;&#8211;<br />
echo name: Oracle data export automata utility<br />
echo author: WANG Liangxu<br />
echo date: 2006-8-7<br />
echo refined by NAN Zhuotong<br />
echo documented by NAN Zhuotong<br />
echo Any problem please contact us via wlx@mygis.org; nztong@lzb.ac.cn</p>
<p>REM This program is used to export data in Oracle to external files named with current date.<br />
REM A simple export schema is employed. Monday the data will be completely exported.<br />
REM Tuesday through Thursday data will be exported in an incremental manner.<br />
REM Friday, data exported include all the incremental data since the last completed export.<br />
REM Saturday and Sunday incremental export will be employed once more.</p>
<p>REM This program can be used together with Windows plan and task utility. In that way,<br />
REM the program can be enhanced with running by schedule.</p>
<p>echo &#8212;&#8212;&#8212;&#8211;<br />
set w=%date:~13,1%<br />
set d=%date:~0,4%%date:~5,2%%date:~8,2%<br />
rem echo %d%<br />
if %w%==一 goto 1<br />
if %w%==二 goto 2<br />
if %w%==三 goto 3<br />
if %w%==四 goto 4<br />
if %w%==五 goto 5<br />
if %w%==六 goto 6<br />
if %w%==日 goto 7</p>
<p>REM exp system/systemwestdc inctype=complete file=d:/ORADB-BACKUP/20060807.dmp (complete)<br />
REM exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/2006xxxx.dmp<br />
REM exp system/systemwestdc inctype=cumulative file=d:/ORADB-BACKUP/2006xxxx.dmp<br />
REM Mon： 完全备份（A）<br />
REM Tue： 增量导出（B）<br />
REM Wed： 增量导出（C）<br />
REM Thu： 增量导出（D）<br />
REM Fri： 累计导出（E）<br />
REM Sat： 增量导出（F）<br />
REM Sun： 增量导出（G）</p>
<p>:1<br />
 echo Begin exporting data to file %d%-compl.dmp<br />
 exp system/systemwestdc inctype=complete file=d:/ORADB-BACKUP/%d%-compl.dmp<br />
 goto end<br />
:2<br />
 echo Begin exporting data to file %d%-incre.dmp<br />
 exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/%d%-incre.dmp<br />
 goto end<br />
:3<br />
 echo Begin exporting data to file %d%-incre.dmp<br />
 exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/%d%-incre.dmp<br />
 goto end<br />
:4<br />
 echo Begin exporting data to file %d%-incre.dmp<br />
 exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/%d%-incre.dmp<br />
 goto end<br />
:5<br />
 echo Begin exporting data to file %d%-cumul.dmp<br />
 exp system/systemwestdc inctype=cumulative file=d:/ORADB-BACKUP/%d%-cumul.dmp<br />
 goto end<br />
:6<br />
 echo Begin exporting data to file %d%-incre.dmp<br />
 exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/%d%-incre.dmp<br />
 goto end<br />
:7<br />
 echo Begin exporting data to file %d%-incre.dmp<br />
 exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/%d%-incre.dmp<br />
 goto end<br />
:end</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/212/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cross compile QT4 program for windows on ubuntu dapper</title>
		<link>http://wlx.westgis.ac.cn/199/</link>
		<comments>http://wlx.westgis.ac.cn/199/#comments</comments>
		<pubDate>Sat, 20 May 2006 01:37:29 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Program]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[cross]]></category>
		<category><![CDATA[dapper]]></category>
		<category><![CDATA[qt4]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/199/</guid>
		<description><![CDATA[1、首先安装基础程序： sudo wine mingw32 mingw32-binutils mingw32-runtime 2、安装QT4支持（LINUX下的支持）： sudo apt-get install libqt4-core libqt4-gui libqt4-qt3support libqt4-sql libqt4-debug-dev libqt4-dev 3、下载QT4 for win程序： wget http://wftp.tu-chemnitz.de/pub/Qt/qt/source/qt-win-opensource-4.1.2-mingw.exe 4、安装： wine qt-win-opensource-4.1.2-mingw.exe 中间会提示找不到MINGW32的位置，没关系，可以直接跳过。 5、修改specs文件 sudo cp -Rf /usr/share/qt4/mkspecs/win32-g++ /usr/share/qt4/mkspecs/win32-x-g++ sudo nano /usr/share/qt4/mkspecs/win32-x-g++/qmake.conf 把和下面相关的内容都进行修改： QMAKE_CXX = i586-mingw32msvc-g++ QMAKE_INCDIR = &#8230; <a href="http://wlx.westgis.ac.cn/199/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>1、首先安装基础程序：<br />
sudo wine mingw32 mingw32-binutils mingw32-runtime<br />
2、安装QT4支持（LINUX下的支持）：<br />
sudo apt-get install libqt4-core libqt4-gui libqt4-qt3support libqt4-sql libqt4-debug-dev libqt4-dev<br />
3、下载QT4 for win程序：<br />
wget http://wftp.tu-chemnitz.de/pub/Qt/qt/source/qt-win-opensource-4.1.2-mingw.exe<br />
4、安装：<br />
wine qt-win-opensource-4.1.2-mingw.exe<br />
中间会提示找不到MINGW32的位置，没关系，可以直接跳过。<br />
5、修改specs文件<br />
sudo cp -Rf /usr/share/qt4/mkspecs/win32-g++ /usr/share/qt4/mkspecs/win32-x-g++<br />
sudo nano /usr/share/qt4/mkspecs/win32-x-g++/qmake.conf<br />
把和下面相关的内容都进行修改：</p>
<blockquote><p>QMAKE_CXX = i586-mingw32msvc-g++</p>
<p>QMAKE_INCDIR = /usr/i586-mingw32msvc/include/<br />
QMAKE_INCDIR_QT = /usr/local/qt4-w32/4.1.2/include<br />
QMAKE_LIBDIR_QT = /usr/local/qt4-w32/4.1.2/lib</p>
<p>QMAKE_LINK = i586-mingw32msvc-g++</p>
<p># ne pas oublier le -mwindows ici<br />
QMAKE_LFLAGS = -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mwindows</p>
<p>#isEqual(MINGW_IN_SHELL, 1) {<br />
QMAKE_DIR_SEP = /<br />
QMAKE_COPY = cp<br />
QMAKE_COPY_DIR = cp -r<br />
QMAKE_MOVE = mv<br />
QMAKE_DEL_FILE = rm -f<br />
QMAKE_MKDIR = mkdir -p<br />
QMAKE_DEL_DIR = rm -rf<br />
#} else {<br />
# QMAKE_COPY = cp<br />
# QMAKE_COPY_DIR = cp -r<br />
# QMAKE_MOVE = mv<br />
# QMAKE_DEL_FILE = rm -f<br />
# QMAKE_MKDIR = mkdir -p<br />
# QMAKE_DEL_DIR = rm -rf<br />
#}</p>
<p># Enlever les .exe et rajouter -qt4<br />
QMAKE_MOC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}moc-qt4<br />
QMAKE_UIC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}uic-qt4</p>
<p># Je n&#8217;ai pas trouvé d&#8217;équivalent de ce fichier, j&#8217;ai quand meme enlevé le .exe<br />
QMAKE_IDC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}idc</p>
<p>QMAKE_RC = i586-mingw32msvc-windres</p>
<p>QMAKE_STRIP = i586-mingw32msvc-strip</p></blockquote>
<p>6、QT4的跨平台编译支持就完成了，以后可以这样编译WINDOWS程序：<br />
qmake-qt4 -project<br />
qmake-qt4 -spec win32-x-g++<br />
make</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/199/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>windows下安装mingw32, wxWidgets和SQLITE3</title>
		<link>http://wlx.westgis.ac.cn/191/</link>
		<comments>http://wlx.westgis.ac.cn/191/#comments</comments>
		<pubDate>Tue, 18 Apr 2006 09:04:09 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Program]]></category>
		<category><![CDATA[mingw32]]></category>
		<category><![CDATA[sqlite]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[wxwidgets]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/?p=191</guid>
		<description><![CDATA[首先安装mingw32，从SF上下载安装包，直接安装。 安装完成后修改环境变量，把mingw/bin目录加到path里，安装的时候我选择了gcc, g++和make。 wxWidgets使用安装包安装完成后，还需要进行一下编译： cd wxWidgets-2.6.3/build/msw mingw32-make -f makefile.gcc 然后安装sqlite3，需要下载3个文件，sqlite3.dll, sqlite3.def,sqlite3.h 用dlltool制作sqlite3的lib文件（.a）： dlltool -k -d sqlite3.def -lsqlite3.a 拷贝sqlite3.a文件到mingw/lib目录下，还需要： ld sqlite3.a 然后拷贝sqlite3.dll到windows/system32目录或者你的程序目录下，拷贝sqlite3.h到mingw/include目录。 最后就是需要参照某个makefile.gcc文件来制作自己的makefile。 需要注意，本来我的程序是以minimal程序的makefile.gcc为蓝本的，后来发现编译总是有问题，提示wxDatePickerCtrl有问题，但是我编译samples/calendar没有任何问题，后来比较后发现minimal在link的时候少了一个库: -lwxmsw26d_adv，若程序用到了sqlite3，还需要-lsqlite3。]]></description>
			<content:encoded><![CDATA[<p>首先安装mingw32，从SF上下载安装包，直接安装。<br />
安装完成后修改环境变量，把mingw/bin目录加到path里，安装的时候我选择了gcc, g++和make。<br />
wxWidgets使用安装包安装完成后，还需要进行一下编译：<br />
cd wxWidgets-2.6.3/build/msw<br />
mingw32-make -f makefile.gcc<br />
然后安装sqlite3，需要下载3个文件，sqlite3.dll, sqlite3.def,sqlite3.h<br />
用dlltool制作sqlite3的lib文件（.a）：<br />
dlltool -k -d sqlite3.def -lsqlite3.a<br />
拷贝sqlite3.a文件到mingw/lib目录下，还需要：<br />
ld sqlite3.a<br />
然后拷贝sqlite3.dll到windows/system32目录或者你的程序目录下，拷贝sqlite3.h到mingw/include目录。<br />
最后就是需要参照某个makefile.gcc文件来制作自己的makefile。<br />
需要注意，本来我的程序是以minimal程序的makefile.gcc为蓝本的，后来发现编译总是有问题，提示wxDatePickerCtrl有问题，但是我编译samples/calendar没有任何问题，后来比较后发现minimal在link的时候少了一个库: -lwxmsw26d_adv，若程序用到了sqlite3，还需要-lsqlite3。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/191/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>编译sqlite for windows on ubuntu dapper</title>
		<link>http://wlx.westgis.ac.cn/190/</link>
		<comments>http://wlx.westgis.ac.cn/190/#comments</comments>
		<pubDate>Thu, 13 Apr 2006 05:50:27 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Program]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[cross]]></category>
		<category><![CDATA[dapper]]></category>
		<category><![CDATA[sqlite]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/190/</guid>
		<description><![CDATA[参考其中的SQLITE部分： http://mpa.itc.it/radim/wingrass/INSTALL 下载源码，解压缩： cd sqlite-3.3.5 nano Makefile.linux-gcc #modify: #TOP = ../sqlite-3.3.5 #这个修改不知道有没有意义 # Note: SQLite is using for example its own parser (lemon) which must be compiled first for Linux make -f Makefile.linux-gcc lemon keywordhash.h cp Makefile.linux-gcc Makefile.mingw-gcc nano Makefile.mingw-gcc &#8230; <a href="http://wlx.westgis.ac.cn/190/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>参考其中的SQLITE部分： http://mpa.itc.it/radim/wingrass/INSTALL</p>
<p>下载源码，解压缩：</p>
<blockquote><p>cd sqlite-3.3.5<br />
nano Makefile.linux-gcc<br />
#modify:<br />
#TOP = ../sqlite-3.3.5<br />
#这个修改不知道有没有意义</p>
<p># Note: SQLite is using for example its own parser (lemon) which must be compiled first for Linux</p>
<p>make -f Makefile.linux-gcc lemon keywordhash.h</p>
<p>cp Makefile.linux-gcc Makefile.mingw-gcc</p>
<p>nano Makefile.mingw-gcc<br />
#    modify Makefile.mingw-gcc (BCC,TCC,AR,RANLIB):<br />
# 修改一下相关部分：<br />
#      BCC = i586-mingw32msvc-gcc -g -O2<br />
#      TCC = i586-mingw32msvc-gcc -O6<br />
#      AR = i586-mingw32msvc-ar cr<br />
#      RANLIB = i586-mingw32msvc-ranlib</p>
<p>#    delete tclsqlite.o from LIBOBJ in main.mk</p>
<p>make -f Makefile.mingw-gcc libsqlite3.a</p>
<p>i586-mingw32msvc-g++ &#8211;shared -o sqlite3.dll \<br />
		    -Wl,&#8211;out-implib=libsqlite3.dll.a \<br />
		    -Wl,&#8211;export-all-symbols \<br />
		    -Wl,&#8211;enable-auto-import \<br />
		    -Wl,&#8211;whole-archive libsqlite3.a \<br />
		    -Wl,&#8211;no-whole-archive -lmingw32</p>
<p>i586-mingw32msvc-strip sqlite3.dll<br />
cp sqlite3.dll /usr/i586-mingw32msvc/bin/<br />
cp libsqlite3.dll.a /usr/i586-mingw32msvc/lib<br />
cp sqlite3.h /usr/i586-mingw32msvc/include
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/190/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>编译wxWidgets for windows on ubuntu dapper</title>
		<link>http://wlx.westgis.ac.cn/189/</link>
		<comments>http://wlx.westgis.ac.cn/189/#comments</comments>
		<pubDate>Thu, 13 Apr 2006 04:36:24 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Program]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[cross]]></category>
		<category><![CDATA[dapper]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[wxwidget]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/189/</guid>
		<description><![CDATA[原文：http://www.wxwidgets.org/wiki/index.php/Cross-Compiling_Under_Linux 下载allportscombine包，然后： ./configure &#8211;with-msw &#8211;target=i586-mingw32msvc &#8211;host=i586-mingw32msvc &#8211;build=i386-linux &#8211;enable-unicode &#8211;prefix=/usr/i586-mingw32msvc/ make make install 注意编译的时候要分两步走，不能象G++那样一步到位： i586-mingw32msvc-g++ -c -o minimal.o minimal.cpp `/usr/i586-mingw32/bin/wx-config &#8211;cxxflags` i586-mingw32msvc-g++ -o minimal.exe minimal.o `/usr/i586-mingw32/bin/wx-config &#8211;libs` 因为wxWidgets是以动态库的方式编译的，还需要拷贝相关的DLL： cp /usr/i586-mingw32msvc/lib/wx*.dll . 同时，还要拷贝mingw32的一个库过来： cp /usr/share/doc/mingw32-runtime/mingwm10.dll.gz . gzip -d *.gz 然后就可以进行测试了： wine minimal.exe]]></description>
			<content:encoded><![CDATA[<p>原文：http://www.wxwidgets.org/wiki/index.php/Cross-Compiling_Under_Linux</p>
<p>下载allportscombine包，然后：</p>
<blockquote><p> ./configure &#8211;with-msw &#8211;target=i586-mingw32msvc &#8211;host=i586-mingw32msvc &#8211;build=i386-linux &#8211;enable-unicode &#8211;prefix=/usr/i586-mingw32msvc/<br />
make<br />
make install</p></blockquote>
<p>注意编译的时候要分两步走，不能象G++那样一步到位：</p>
<blockquote><p>i586-mingw32msvc-g++ -c -o minimal.o minimal.cpp   `/usr/i586-mingw32/bin/wx-config &#8211;cxxflags`</p>
<p>i586-mingw32msvc-g++ -o minimal.exe minimal.o   `/usr/i586-mingw32/bin/wx-config &#8211;libs`
</p></blockquote>
<p>因为wxWidgets是以动态库的方式编译的，还需要拷贝相关的DLL：</p>
<blockquote><p>cp /usr/i586-mingw32msvc/lib/wx*.dll .</p></blockquote>
<p>同时，还要拷贝mingw32的一个库过来：</p>
<blockquote><p>cp /usr/share/doc/mingw32-runtime/mingwm10.dll.gz .<br />
gzip -d *.gz</p></blockquote>
<p>然后就可以进行测试了：<br />
wine minimal.exe</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/189/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>mingw：在LINUX下编译WINDOWS程序</title>
		<link>http://wlx.westgis.ac.cn/187/</link>
		<comments>http://wlx.westgis.ac.cn/187/#comments</comments>
		<pubDate>Wed, 12 Apr 2006 04:04:44 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mingw32]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/187/</guid>
		<description><![CDATA[MinGW &#8211; Minimalist GNU For Windows http://www.mingw.org UBUNTU下可以直接安装： sudo apt-get install mingw32 mingw32-binutils mingw32-runtime 安装后编译程序可以： i586-mingw32msvc-g++（编译C++程序） i586-mingw32msvc-gcc（编译C程序） 用法和gcc/g++非常类似。 如hello.c程序： #include int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow) { MessageBox (NULL, “Hello”, “Hello Demo”, MB_OK); return (0); &#8230; <a href="http://wlx.westgis.ac.cn/187/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>MinGW &#8211; Minimalist GNU For Windows </p>
<p>http://www.mingw.org</p>
<p>UBUNTU下可以直接安装：<br />
sudo apt-get install mingw32 mingw32-binutils mingw32-runtime<br />
安装后编译程序可以：<br />
i586-mingw32msvc-g++（编译C++程序）<br />
i586-mingw32msvc-gcc（编译C程序）<br />
用法和gcc/g++非常类似。<br />
如hello.c程序：</p>
<blockquote><p>   #include <windows.h></p>
<p>   int WINAPI WinMain (HINSTANCE hInstance,<br />
                        HINSTANCE hPrevInstance,<br />
                        PSTR szCmdLine,<br />
                        int iCmdShow)<br />
   {<br />
      MessageBox (NULL, “Hello”, “Hello Demo”, MB_OK);<br />
      return (0);<br />
   }</p></blockquote>
<p>编译：<br />
i586-mingw32msvc-gcc hello.c -o hello.exe -mwindows<br />
注：-mwindows指示其编译的是windows程序，若编译的是console（命令行）程序，则不需要这个参数。<br />
若安装了wine，还可以测试一下这个程序：<br />
wine hello.exe</p>
<p>不过，我本来是想编译wxWidgets程序的，但发现这个好像还是有点问题，估计还需要wxWidgets for mingw32@linux</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/187/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>postgis在windows下的应用</title>
		<link>http://wlx.westgis.ac.cn/68/</link>
		<comments>http://wlx.westgis.ac.cn/68/#comments</comments>
		<pubDate>Tue, 05 Apr 2005 09:59:52 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[PostGIS]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/68/</guid>
		<description><![CDATA[目前，windows下的版本，postgresql官方已经开始支持，目前是8.0.1版本。POSTGIS目前官方尚不支持windows版本，但有支援者在进行同步维护windows版本，目前是1.0-rc6版本，估计很快就是1.0版本了。 1、安装 安装很简单，首先要安装postgresql，注意其有两个帐号，一是系统帐号，二是数据库管理帐号。安装程序可以新建用户，要提到一点，目前的postgresql数据库不支持远程安装，就是说，不能通过远程桌面进行安装（这个限制，不爽）。windows版本还包括了pgadmin3，图形化的管理界面。 然后安装postgis，需要前面安装postgresql的管理员帐号，同时其还要安装一个postgis数据库。 默认情况下，可执行文件都安装到postgresql的bin目录，几个SQL文件安装在postgresql的share/contrib目录下。 2、使用 对于中文用户来讲，首先要考虑数据库的编码问题，可以使用unicode,utf8,euc_cn等编码，默认的是unicode编码。 第一次使用unicode编码时移植linux下的应用，遇到了很多非常奇怪的问题。改用euc_cn编码，问题就少多了。 建库： createdb -U postgres -E EUC_CN db （linux环境下本机默认都不需要认证密码，但在windows系统下，默认是需要验证密码的） alter database db set client_encode=”EUC_CN” （这个要进入到psql环境中才能运行的，不确定是否必须，在linux环境下不需要） 搭建postgis环境： creatlang -U postgres plpgsql db (这个在windows下默认好象是不需要处理的） 引入postgis支持： psql -U postgres -d db -f lwpostgis.sql psql -U postgres &#8230; <a href="http://wlx.westgis.ac.cn/68/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>目前，windows下的版本，postgresql官方已经开始支持，目前是8.0.1版本。POSTGIS目前官方尚不支持windows版本，但有支援者在进行同步维护windows版本，目前是1.0-rc6版本，估计很快就是1.0版本了。</p>
<ul>
1、安装</ul>
<p>安装很简单，首先要安装postgresql，注意其有两个帐号，一是系统帐号，二是数据库管理帐号。安装程序可以新建用户，要提到一点，目前的postgresql数据库不支持远程安装，就是说，不能通过远程桌面进行安装（这个限制，不爽）。windows版本还包括了pgadmin3，图形化的管理界面。<br />
然后安装postgis，需要前面安装postgresql的管理员帐号，同时其还要安装一个postgis数据库。<br />
默认情况下，可执行文件都安装到postgresql的bin目录，几个SQL文件安装在postgresql的share/contrib目录下。</p>
<ul>
2、使用</ul>
<p>对于中文用户来讲，首先要考虑数据库的编码问题，可以使用unicode,utf8,euc_cn等编码，默认的是unicode编码。<br />
第一次使用unicode编码时移植linux下的应用，遇到了很多非常奇怪的问题。改用euc_cn编码，问题就少多了。</p>
<p>建库：<br />
createdb -U postgres -E EUC_CN db<br />
（linux环境下本机默认都不需要认证密码，但在windows系统下，默认是需要验证密码的）<br />
alter database db set client_encode=”EUC_CN”<br />
（这个要进入到psql环境中才能运行的，不确定是否必须，在linux环境下不需要）<br />
搭建postgis环境：<br />
creatlang -U postgres   plpgsql db<br />
(这个在windows下默认好象是不需要处理的）<br />
引入postgis支持：<br />
psql -U postgres -d db -f lwpostgis.sql<br />
psql -U postgres -d db -f spatial_ref_sys.sql<br />
生成矢量数据的sql文件：<br />
shp2pgsql xx.shp xx_table > xx.sql<br />
导入到数据库：<br />
psql -U postgres -d db -f xx.sql</p>
<ul>
3、开始应用</ul>
<p>到此，您的基本的postgis数据库就已经搭建好了，剩下的工作就是看您怎么去最大的压榨postgis的功能了。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/68/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

