Update files generated from _oasis

Issue #3 closed
阿部晃典 created an issue

libsvm 0.9.3 cannot be installed in OCaml 4.03 or above.

https://opam.ocaml.org/packages/libsvm/

However, I succeeded to install libsvm-ocaml by re-generating files from _oasis in OCaml 4.04 and 4.05. Could you update files by the latest oasis and release a new version to opam?

Comments (11)

  1. 阿部晃典 reporter

    @ogu Did you generate setup files by the latest oasis? It seems that you use oasis 0.4.5: https://bitbucket.org/ogu/libsvm-ocaml/src/fd9ca341145fc9eab6ab8ee90dbe68eaff37368c/setup.ml?at=release-0.9.3&fileviewer=file-view-default#setup.ml-6

    ocamlfind: Error from package `threads': Missing -thread or -vmthread switch

    This error is caused by the too old version of oasis. I used oasis 0.4.10 and solved this problem. Could you retry to regenerate oasis-related files?

  2. Oliver Gu repo owner

    Sorry for the delay! I regenerated the OASIS files and included an opam so that you can install the package by pinning the repository. This is just an immediate solution. I make a new release on OPAM as soon as I find the time to switch to jbuilder as new build system.

  3. 阿部晃典 reporter

    @ogu Thanks! @HappyCrow tries a tentative fix and it is almost completed: PR#10186. In addition, I created conf-libsvm to split depext section from libsvm package: PR#10195. Please voice your opinions if you have any.

  4. Francois Berenger

    Where is the conf-libsvm package? I don't see it in the opam repository neither a pull request for it. I'd like to have a look at it since I created several conf-* packages.

  5. Oliver Gu repo owner

    Thanks Akinori, a conf-libsvm would be great since the current depext section is too restrictive. I added a jbuilder branch which I would like to merge into master to create a new release of the package. However, running jbuilder runtest leads to linker errors. I followed the documentation on defining a library with c stubs with jbuilder and created the following jbuild file. Maybe somebody in this thread can checkout this branch, run jbuilder runtest and tell me what I am missing?

  6. 阿部晃典 reporter

    conf-libsvm was released at Sep 1st: https://opam.ocaml.org/packages/conf-libsvm/ Note that package managers on Linux distributions install libsvm.h at /usr/local/include/libsvm, but homebrew (Mac OSX) installs libsvm.h at /usr/local/include. For compatibility between Linux and Mac OSX, it is required to switch an include path like

    BTW I tried the jbuilder branch, but I cannot solve the problem.

  7. Oliver Gu repo owner

    A new libsvm binding is now available on OPAM. The binding does no longer require the conf-libsvm package because of a contribution from @grudi that heavily reduced dependencies and included the source of the libsvm library. Thanks for you help and sorry that it took so long!

  8. Log in to comment