📄 readme.win32
字号:
Windows Build Instructions==========================Preparing the Build Environment:--------------------------------For building under Windows, only the GNU C++ compiler (g++) is currentlysupported. However, we plan to also support for MinGW and Microsoft'sVisual C++ compiler in the near future.In order to configure libpion, you will need to install the bash shell andGNU make programs. We recommend that you download and install the programsincluded with Cygwin from http://www.cygwin.com/. The bash shell is includedby default; however, you will need to add the make package (it is locatedwithin the "Devel" group). For a complete development environment, werecommend also installing the following Cygwin packages:Archive: unzip zipDevel: binutils autoconf automake gcc-g++ gdb libtool make openssl-devel subversionEditors: nanoNet: opensshPerl: perlUtils: patchWeb: wgetBuilding Boost with ASIO------------------------Please see the README.boost file for instructions.Boost 1.34.0 has several bugs that prevent it from installing correctlyunder Cygwin. There is a patch that fixes all of these bugs called"cygwin_boost_1_34_0.patch" within libpion's doc subdirectory. If youare using Boost 1.34.0, make sure that you apply this patch afteruncompressing the Boost source code tarball:patch -p0 < LIBPION_HOME/doc/cygwin_boost_1_34_0.patchThere's one more bug in 1.34.0 that you need to fix after building andinstalling the Boost libraries. Boost names the "import" librariesusing a format that is incompatable with GNU's LD linker (they use theformat "boost_*.dll.a" instead of "libboost_*.dll.a"). You can fix thisby creating symbolic links for the libraries needed by libpion:cd BOOST_INSTALL_DIR/libln -s boost_thread-gcc34-mt.dll.a libboost_thread-gcc34-mt.dll.aln -s boost_system-gcc34-mt.dll.a libboost_system-gcc34-mt.dll.aln -s boost_filesystem-gcc34-mt.dll.a libboost_filesystem-gcc34-mt.dll.aThese patches may be unnecessary for Boost 1.34.1 and later releases.Installing zlib & openssl:--------------------------ASIO requires zlib and openssl for compression and SSL/TLS encryptionsupport, respectively. On Windows, we recommend that you use Cygwin toinstall these libraries. However, you may instead choose to download andinstall the latest versions from the following sites:http://www.zlib.nethttp://www.openssl.orgLogging frameworks:-------------------Note that the use of a logging framework is entirely optional, so you mayskip this step if you like.At this time, none of the supported logging libraries build correctlyunder Windows. If you'd like to help add support for these, you candownload the current source code from the following sites:http://logging.apache.org/log4cxxhttp://log4cpp.sourceforge.nethttp://log4cplus.sourceforge.netBuilding and installing libpion:--------------------------------Now you should be able to build and install libpion:(the "-D_WIN32_WINNT=0x500" eliminates warnings in ASIO)tar xvfz libpion-VERSION.tar.gzcd libpion-VERSIONCPPFLAGS="-D_WIN32_WINNT=0x500" \ ./configure --with-boost=/usr/local [--with-openssl]make ; make installKnown Problems:---------------The POSIX path emulation layer provided by cygwin sometimes confused theboost::filesystem library. libpion includes some extra code for cygwin totry to find the path you actually want. If you are using libpion in acygwin environment, you may need to configure your cygwin installationdirectory using the parameter "--with-cygwin=[directory]" (the default is"c:/cygwin"). Please see the boost::filesystem documenation for moreinformation: http://www.boost.org/libs/filesystem/doc/index.htmIf Windows cannot find all the shared libraries used by your program, it willsimply exit immediately without printing any messages. To see what sharedlibraries (or DLLs) a program uses, you can use the following command:objdump -p <PROGRAM> | grep "DLL Name"You may want to make sure that your executables can find the Boost DLLslocated in "lib" subdirectory of your installation path by adding thedirectory to your PATH:export PATH=/usr/local/lib:$PATH(assuming that you are using the default prefix of /usr/local/lib)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -