📄 install
字号:
CHMLIB 0.3 Installation=======================-----Linux/Unix and Windows (Cygwin)-----I. Relevant options: CHM_MT: build library with synchronization for thread-safety CHM_USE_PREAD: use pread instead of lseek/read CHM_USE_IO64: support 64-bit file I/O Modify the INSTALLPREFIX to change the installation location. Except on platforms where they need to be disabled, I recommend leaving all three options enabled. OS X, however, in particular, seems to need pread and io64 disabled.II. autoconf/automake-style build ./configure [options] make su make installIII. old-style (plain Makefile) build cd src <edit Makefile.simple if necessary> make -f Makefile.old su make installTo use the library, see chm_lib.h, and the included example programs: test_chmLib.c enum_chmLib.c chm_http.c-------Windows (MSVC++, Win CE SDK)-------I. Relevant options: CHM_MT: build library with synchronization for thread-safetyII. Windows Standard Build Unzip ChmLib-vs6.zip in the src directory, and open the ChmLib.dsw file in Developer Studio. (This was developed on Developer Studio 6. I don't know if that matters.) You may wish to enable or disable certain features by adding preprocessor defines under the project settings dialog: CHM_MT: build library with synchronization for thread-safety CHM_MT is enabled by default in the Windows build. The resultant library is called chmlib.lib. To use the library, see chm_lib.h, and the included example programs: test_chmLib.c enum_chmLib.c chm_http.c The example programs should also show up in the Visual Studio workspace, except for chm_http. I don't know enough about Windows network programming to try to get that one working. Other than that one, all the other examples run without any problems.III. Windows CE Build Unzip ChmLib-ce.zip in the src directory. I don't know much beyond that, as I have no familiarity with Windows CE, but this should be a good starting point. These project files are from Rich Erwin, who also supplied the necessary code changes to get it running.Sparc (Solaris)--------------- Andrew Hodgetts has gotten the library compilable and working on SparcSolaris machines, with CPUs ranging from a Sun4m (Sparc5) up through anUltraSparcIII (SunFireV880). He has managed the compilation using both GCC andSunProC, although, he notes, some modification to the Makefile was required,since SunProC does not understand the -fPIC flag, which GCC uses for PositionIndependent Code.MIPS (SGI Irix)--------------- Andrew Hodgetts has gotten the library compilable and working on SGI MIPSmachines running Irix; this was using only the standard MIPS compiler, not GCC.He reported that the -n32 flag was required in the Makefile. He also reportedthat the MIPS compiler was fairly verbose with the warning messages, but thatthe simple examples that came with the library seemed to work.OS X---- Apparently, various people have gotten the library compiled for OS X. Fromwhat I've heard, the secret is to disable pread and io64, and possibly to usethe 'libtool' from fink, instead of the one included with the standarddevelopers kit.BSD variants---- I've heard that the library has been compiled on BSD variants. I haven'theard of any particular difficulties.Other Unix variants------------------- The code has been written with an eye on portability. Presently, I've onlypersonally compiled on Linux and Windows, albeit on a variety of Linuxconfigurations, but, as reported above, Andrew Hodgetts has reported successfuluse of the library on both Solaris machines and MIPS machines.. After I getversion 0.3 out, I may try to get it compiling on some of the machines I haveat work. This code may or may not compile out of the box with, for instance,*BSD or other Unix variants. I welcome any patches that increase theportability of this code. Platforms that I have access to at work, and may attempt to support afterversion 0.3: - AIX - maybe Tru64
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -