⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 qt-x11-opensource-src-4.1.4.tar.gz源码
💻
字号:
dlcompat for Darwin=========================This is dlcompat, a small library that emulates the dlopen()interface on top of Darwin's dyld API.dlcompat allows loading a ".dylib" library (as long as the RTLD_LOCAL flag isn't passed to dlopen()). It can be configured to yield a warning when trying to close it (dynamic libraries cannot currently be unloaded).It automatically searches for modules in several directories when no absolute path is specified and the module is not found in the current directory.The paths searched are those specified in the environment variablesLD_LIBRARY_PATH and DYLD_LIBRARY_PATH plus /lib, /usr/local/lib and /usr/lib or the path specified in the environment variable DYLD_FALLBACK_LIBRARY_PATH.In the default install the behavior of dlsym is to automatically prependan underscore to passed in symbol names, this allows easier porting ofapplications which were written specifically for ELF based lifeforms.Installation--------------Type:	./configure	make	sudo make installThis will compile the source file, generate both a static and sharedlibrary called libdl and install it into /usr/local/lib. The headerfile dlfcn.h will be installed in /usr/local/include, and the man pagesgo in /usr/local/man.If you want to place the files somewhere else, run  make clean  ./configure --prefix=<prefix>  make  sudo make installwhere <prefix> is the hierarchy you want to install into, e.g. /usrfor /usr/lib and /usr/include (_NOT_ recommended!).To enable debugging output (useful for me), run  make clean  ./configure --enable-debug  make  sudo make install  If you want old dlcompat style behavior of not prepending the underscoreon calls to dlsym then type:  make clean  ./configure --enable-fink  make  sudo make installUsage-------Software that uses GNU autoconf will likely check for a library calledlibdl, that's why I named it that way. For software that doesn't findthe library on its own, you must add a '-ldl' to the appropriateMakefile (or environment) variable, usually LIBS.If you installed dlcompat into a directory other than /usr/local/lib,you must tell the compiler where to find it. Add '-L<prefix>/lib' toLDFLAGS (or CFLAGS) and '-I<prefix>/include' to CPPFLAGS (or CFLAGS).Notes-----If you are writing new software and plan to have Mac OX X compatibility youshould look at the dyld api's in /usr/include/mach-o/dyld.h, rather thanusing dlcompat, using the native api's is the supported method of loadingdynamically on Mac OS X, if you want an small example, look at dlfcn_simple.c,which should help get you started.As of this version the functions in dlcompat should all be thread safe.You can always get the latest version from opendarwin cvs:  cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/cvs/od login  cvs -z3 -d :pserver:anonymous@anoncvs.opendarwin.org:/cvs/od \               co -d dlcompat proj/dlcompat               But remember that you'll have to run autoconf to generate the configure script.It is hoped that this library will be useful, and as bug free as possible, if you findany bugs please let us know about them so they can be fixed.Please send bug reports to Peter O'Gorman <ogorman@users.sourceforge.net>Thanks.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -