With the patch for sweodef.h I can build with cygwin (x86) on a 32-bit Windows7.
It does not build a dll, but a statically linked file ./modules/swephp.a
Output of 'make test' is
Warning: linker path does not have real file for library -lswe.
I have the capability to make that library automatically link in when
you link to this library. But I can only do this if you have a
shared version of the library, which you do not appear to have
because I did check the linker path looking for a file starting
with libswe but no candidates were found. (...for file magic test)
Warning: libtool could not satisfy all declared inter-library
dependencies of module swephp. Therefore, libtool will create
a static module, that should work as long as the dlopening
application is linked with the -dlopen flag.
libtool: link: ar cru .libs/swephp.a .libs/swephp.o
libtool: link: ranlib .libs/swephp.a
libtool: link: ( cd ".libs" && rm -f "swephp.la" && ln -s "../swephp.la" "swephp.la" )
/bin/sh /home/alois/php-sweph/libtool --mode=install cp ./swephp.la /home/alois/php-sweph/modules
libtool: install: cp ./.libs/swephp.lai /home/alois/php-sweph/modules/swephp.la
libtool: install: cp ./.libs/swephp.a /home/alois/php-sweph/modules/swephp.a
libtool: install: chmod 644 /home/alois/php-sweph/modules/swephp.a
libtool: install: ranlib /home/alois/php-sweph/modules/swephp.a
The tests all get skipped, because (!extension_loaded('swephp') fails.
I do not know whether and how a static library swephp.a can be loaded, or how a dynamic library swephp.dll could be built.
With the patch for sweodef.h I can build with cygwin (x86) on a 32-bit Windows7.
It does not build a dll, but a statically linked file ./modules/swephp.a
Output of 'make test' is Warning: linker path does not have real file for library -lswe. I have the capability to make that library automatically link in when you link to this library. But I can only do this if you have a shared version of the library, which you do not appear to have because I did check the linker path looking for a file starting with libswe but no candidates were found. (...for file magic test)
Warning: libtool could not satisfy all declared inter-library dependencies of module swephp. Therefore, libtool will create a static module, that should work as long as the dlopening application is linked with the -dlopen flag. libtool: link: ar cru .libs/swephp.a .libs/swephp.o libtool: link: ranlib .libs/swephp.a libtool: link: ( cd ".libs" && rm -f "swephp.la" && ln -s "../swephp.la" "swephp.la" ) /bin/sh /home/alois/php-sweph/libtool --mode=install cp ./swephp.la /home/alois/php-sweph/modules libtool: install: cp ./.libs/swephp.lai /home/alois/php-sweph/modules/swephp.la libtool: install: cp ./.libs/swephp.a /home/alois/php-sweph/modules/swephp.a libtool: install: chmod 644 /home/alois/php-sweph/modules/swephp.a libtool: install: ranlib /home/alois/php-sweph/modules/swephp.a
The tests all get skipped, because (!extension_loaded('swephp') fails. I do not know whether and how a static library swephp.a can be loaded, or how a dynamic library swephp.dll could be built.