-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
difficulties for building examples #4
Comments
Hi, For compiling from the git repo, you have to generate the files './configure', 'Makefile.in', etc... You can do this by just running 'autoreconf -i'. The will run autoconf, automake, etc... in the correct order. Of course, you need to have autoreconf installed. For simplicity, I have just added a file './autogen.sh' which just call autoreconf. The command: 'ocamlbuild -use-ocamlfind -pkg efl an_example.byte' can only be run once ocaml-efl have been installed (after 'make install') |
Thanks for helping me.
The make command generated a lot of errors that you can see here: I was able to install the libs:
But I am not able to build one of your example:
|
Sorry, I did not see you installed ocaml with opam. First, clean up what you did: Now, do: NB1: Apparently, the log you posted for 'make' only contained warnings, and no errors. What is surprising, is that is that it also gives warnings in the EFL headers. How did you installed the EFL/Elementary ? By compiling the sources or by your package manager ? NB2: There is an opam package available for the EFL, but its a few months old. However, there has been a new release today, and the opam package should be available in a few days. NB3: This is a general remark about ocamlbuilld. Don't run ocamlbuild in a subdirectory of a directory where ocamlbuild has already been runed. If you want to test: |
The
Here is the ouput of the
Nothing fancy, I used the ArchLinux package manager. FYI:
and
Ok, but sometimes I prefer to use the github version. It helps me to learn faster (the hard way you know) and sometimes I can give some feedback or help (well not for now with Ocaml).
Thanks for the informations, as a beginner with Ocaml, I find that the process to produce executable is not very obvious or clear at first sight. I will have to read more on it I guess. |
I have uninstalled everything and installed the ocaml-efl 1.17 via
|
Could you give me the build log when your are trying to compile the first C example given here: https://www.enlightenment.org/docs/efl/start Just, to check you still gets all the warnings you posted. |
No I have no warnings or errors, the two first examples can be built. I will try to test in a clean install in a VM of ArchLInux in order to see if its my machine that have a specific configuration. I can make a vagrant file for you (using Virtualbox and an ArchLinux) if you are interested. |
Have you previously runed the command: eval $(opam config env) which should be run every time you open a terminal (or you can put it in your ~/.bashrc) ? |
I am using the fish shell but I have this in my configuration file:
The last line does the same things : init.fish
variables.fish
|
So I tested in a newly created VM (virtualbox) and I had the same issue. If you wan to try :
In this directory add the following vargant file named "Vagrant"
then do
It will take some times but at the end I have this message:
You can use |
Thank you. |
Ok, I think I solved the issue: it was about not having inline prototype functions. I remind you that for opam you have to do the configuration step as follows: |
Yes it works, everything is compiling. Just to sumup (using bash):
Thanks for your help. I will try to do the same with the fish shell and try your examples. |
Hi,
I am just starting learning Ocaml so don't be too harsh. :)
I have installed ocaml-efl via opam and I wanted to try the different examples. So I have locally cloned you repos (I use ArchLinux x86-64) read the README, and tried this:
or
Both have failed. After that I have read the issue #1 that says that the examples are built when the user build the bindings.
In the INSTALL file it is said to launch the
./configure
command but there is no configure file in the root directory.Nevermind, I added one
autoconf.sh
just to see but even if I was able to generate a configure file, I was not able to build.As I said previously I am just starting with Ocaml, but I really want to try your bindings.
Regards
The text was updated successfully, but these errors were encountered: