Error during the build from source

心不动则不痛 提交于 2019-12-06 03:19:47

Sorry but OPA doesn't support 32 bit architecture for the moment. We are working on it.

You can read this article we posted on our blog, we answered to this question (and others): http://blog.opalang.org/2011/07/readers-questions-1.html

Q: Lack of 32-bit and Windows versions of the compiler

A: Yup, we're guilty here. We're working on the 32-bit version and hope to have it ready within a couple of weeks. Windows version is slightly more tricky but we did have a working Windows version and we will have it again without a doubt. We could use some help, by the way. Now that Opa is open-source. Any volunteers?

Keep in touch!

Russtopia

I got Opa compiled for 32-bit Ubuntu 10.10. Had to install a bunch of pkgs from Debian 'Wheezy' (testing) before the build would complete. Packages required:

    camlp4_3.12.0-7_i386.deb
    camlp4-extra_3.12.0-7_i386.deb
    libcryptokit-ocaml_1.3-14+b2_i386.deb
    libcryptokit-ocaml-dev_1.3-14+b2_i386.deb
    libfindlib-ocaml_1.2.7+debian-1_i386.deb
    libfindlib-ocaml-dev_1.2.7+debian-1_i386.deb
    libocamlgraph-ocaml-dev_1.7-1+b2_i386.deb
    libssl-ocaml_0.4.5-1_i386.deb
    libssl-ocaml-dev_0.4.5-1_i386.deb
    libzip-ocaml_1.04-6+b2_i386.deb
    libzip-ocaml-dev_1.04-6+b2_i386.deb
    ocaml_3.12.0-7_i386.deb
    ocaml-base_3.12.0-7_i386.deb
    ocaml-base-nox_3.12.0-7_i386.deb
    ocaml-findlib_1.2.7+debian-1_i386.deb
    ocaml-interp_3.12.0-7_i386.deb
    ocaml-nox_3.12.0-7_i386.deb
    ocaml-ulex_1.1-2+b1_i386.deb

Put these all in a dir and from there run: dpkg --install --force-depends --auto-deconfigure *.deb

One should also run sudo apt-get purge ocaml ocaml-interp ocaml-nox-interp ocaml-nox (or something like that... from memory) .. to purge ocaml 3.11 from the system so 3.12 can be installed via the above .deb files.

NOTE: the compile of 'texttimer.opa' takes FOREVER (at least on my atom netbook).. I thought it was hung or something but after about 15 minutes it finished. Let it run.

I've only tried the hello_opa.opa so far but it looks promising!

[next morning] I installed the precompiled .deb for amd64 on my work machine just to compare -- recompiled the same hello Chat app, and it works just as on my 32-bit Ubuntu. However, BOTH apps don't display any of the image resources -- the tutorial mentions adding "opa-logo.png" and "user.png" to the resources directory, and the compile picks up on those but the resulting app shows no images. I'd suspected it was something to do with my 32-bit build, but apparently not.

Anyone know why the images aren't displayed by the chat app? The CSS does seem to reference those two PNGs. I just grabbed random PNGs from google images to use, but that shouldn't matter.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!