From: Reini U. <ru...@x-...> - 2010-07-12 17:23:43
|
2010/7/11 Arseny Slobodyuk <am...@ic...>: > I tried to build cygwin and mingw versions with all those modules > Yaroslav included (and ffcall which he included but forgot to mention > in the description) and couldn't: cygwin includes: rawsock wildcard dirkey bindings/win32 berkeley-db pcre postgresql fastcgi zlib libsvm gdbm pari (pari is new) and in extra packages: clx/new-clx gtk2 gdi > I'm having trouble to build libsvm in cygwin. BTW, this info in > impnotes (the part in the parens) is obsolete as libsvm is not in > clisp CVS tree: Me also everytime. I always need to chmod +x the dll and more. untested at 2.49, needed for all previous versions: --- origsrc/clisp-2.49/modules/libsvm/Makefile 2009-05-15 10:11:38.000000000 +0200 +++ src/clisp-2.49/modules/libsvm/Makefile 2009-08-11 01:19:31.328125000 +0200 @@ -9,7 +9,12 @@ CXXFLAGS = -O3 -ffast-math -Wall CLISP = clisp -q -norc INCLUDES = $$($(CLISP) -b)/linkkit +# on windows be sure not to symlink the dll, copy it +ifeq ($(SHREXT), .dll) +LN = cp +else LN = ln +endif MAKE = make @@ -23,6 +28,7 @@ all : libsvm.fas svm$(SHREXT) libsvm.o svm$(SHREXT) : svm.cpp svm.h $(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(INCLUDES) \ -fPIC -shared -o svm$(SHREXT) svm.cpp -lm + chmod 0755 svm$(SHREXT) svm.o : svm.cpp svm.h $(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(INCLUDES) -c svm.cpp --- origsrc/clisp-2.49/modules/libsvm/libsvm.lisp 2009-05-14 10:11:34.000000000 +0200 +++ src/clisp-2.49/modules/libsvm/libsvm.lisp 2009-08-10 12:28:49.296875000 +0200 @@ -16,7 +16,7 @@ (default-foreign-language :stdc) (default-foreign-library (namestring (make-pathname :name "svm" :defaults *load-pathname* - :type #+win32 "dll" #+unix "so" + :type #+(or win32 cygwin) "dll" #+(and unix (not cygwin)) "so" #-(or win32 unix) nil))) ; ??? (c-lines "#include \"svm.h\"~%") -- Reini Urban cygwin maintainer |