From: <av...@us...> - 2010-12-22 15:14:32
|
Revision: 7223 http://openhpi.svn.sourceforge.net/openhpi/?rev=7223&view=rev Author: avpak Date: 2010-12-22 15:14:26 +0000 (Wed, 22 Dec 2010) Log Message: ----------- More on Feature Request #3031797 Updated Makefile. Included oHpi.h in produced output dir. Added Known Issues section. Modified Paths: -------------- openhpi/trunk/Makefile.mingw32 openhpi/trunk/README.windows Modified: openhpi/trunk/Makefile.mingw32 =================================================================== --- openhpi/trunk/Makefile.mingw32 2010-12-22 15:00:41 UTC (rev 7222) +++ openhpi/trunk/Makefile.mingw32 2010-12-22 15:14:26 UTC (rev 7223) @@ -22,10 +22,12 @@ done rm -rf ${out} -out: +out: all + rm -rf ${out} mkdir -p ${out} cp README.windows ${out} cat include/SaHpi.h | sed -e 's/ __attribute__.*/;/' -e 's/#define SAHPI_API/#define SAHPI_API __declspec(dllimport)/' > ${out}/SaHpi.h + cp include/oHpi.h ${out} cp utils/libopenhpiutils-${VERSION}.dll ${out}/ cp utils/libopenhpiutils-${VERSION}.dll.a ${out}/ cp utils/libopenhpiutils-${VERSION}.dll.def ${out}/ Modified: openhpi/trunk/README.windows =================================================================== --- openhpi/trunk/README.windows 2010-12-22 15:00:41 UTC (rev 7222) +++ openhpi/trunk/README.windows 2010-12-22 15:14:26 UTC (rev 7223) @@ -32,7 +32,7 @@ Windows version can be obtained at http://www.gtk.org/download-windows.html ======================================================================== -Current windows build system supports only Mingw compiler. +Current windows build system supports only mingw compiler. http://www.mingw.org/ However the built libraries can be use as ordinary windows DLL in projects with any compiler. @@ -56,7 +56,7 @@ -- GLIB_DIR: in order that GLIB_INCLUDES and GLIB_LIBS point to valid directories with glib headers and libraries. - run "make -f Makefile.mingw32". -- run "make -f Makefile.mingw32 bin". +- run "make -f Makefile.mingw32 out". - the bin subdirectory will contain all produced stuff. ======================================================================== @@ -77,17 +77,30 @@ Define "SAHPI_API" macro as "__declspec(dllimport)". -For Mingw compiler it can be just linked. +For mingw compiler it can be just linked. For MSVC: - There is def file libopenhpi-${VERSION}.dll.def - With lib tool you can create import library - Command example "lib /machine:i386 /def:libopenhpi-${VERSION}.dll.def" +- Point produced import library in Project settings And see Client Usage instrustions about configuring OpenHPI daemon address to connect. ======================================================================== +Library Known Issues: + +Seems mingw has its own copy of environment variables. +So the code: + + _putenv("OPENHPI_DAEMON_HOST=..."); + rv = saHpiSessionOpen(...) + +does not work in MSVC as expected. +But setting any variable before running executable works! + +======================================================================== Troubleshouting: Mailing list: ope...@li... This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |