Build Failure on OS X Yosemite

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Build Failure on OS X Yosemite

wangyeee
This post has NOT been accepted by the mailing list yet.
Hi there,

I'm trying to compile paparazzi center on OS X Yosemite after upgrading from Mavericks. I cannot compile source code under cockpit.

$ make
OC gcs.ml
findlib: [WARNING] Interface glibIvy.cmi occurs in several directories: /Users/wang/.opam/system/lib/glibivy, /opt/local/lib/ocaml
findlib: [WARNING] Interface ivy.cmi occurs in several directories: /Users/wang/.opam/system/lib/glibivy, /opt/local/lib/ocaml
File "gcs.ml", line 632, characters 23-29:
Error: This expression has type int32 but an expression was expected of type
         Gdk.native_window
make: *** [gcs.cmo] Error 2

And here is line 632:

    (GWindow.plug ~window ~width ~height ():>GWindow.window_skel), fun _ -> () in

I'm completely new to ocaml so I can't figure out this error. Anyone can help?

I'm compiling everything from scratch as Paparazzi Tools from the download site never works for me, and I've managed to compile from scratch in Mavericks(with some modifications to the source).

Here's system info:
xCode Version 6.1 (6A1052d)
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
ocamlc version 4.02.1
opam version 1.2.0

Most dependencies installed with homebrew, except for ivy related items. I installed them from source manually.

Regards.
Reply | Threaded
Open this post in threaded view
|

Re: Build Failure on OS X Yosemite

liangchao
Hi, it seems that we encountered the same build problem in Yosemite. But I still have a dependency error of "Error: Unbound module GnoDruid". I've suffering this error for about 3 days. I'll appreciate that if you tell how to make it out.
Reply | Threaded
Open this post in threaded view
|

Re: Build Failure on OS X Yosemite

wangyeee
Nope, I commented out all references to GnoDruid in file ./sw/supervision/pc_common.mlGnoDruid was installed by opam.

2014-11-04 7:05 GMT+08:00 liangchao [via Paparazzi UAV] <[hidden email]>:
Hi, it seems that we encountered the same build problem in Yosemite. But I still have a dependency error of "Error: Unbound module GnoDruid". I've suffering this error for about 3 days. I'll appreciate that if you tell how to make it out.


If you reply to this email, your message will be added to the discussion below:
http://lists.paparazziuav.org/Build-Failure-on-OS-X-Yosemite-tp16302p16321.html
To unsubscribe from Build Failure on OS X Yosemite, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Build Failure on OS X Yosemite

liangchao
In reply to this post by wangyeee
En...I doubted that if won't work. Have you installed paparazzi-tools. GnoDruid do exist and compiled in the directory /opt/paprazzi/lib/ocaml/.

Maybe install paparazzi in a Ubuntu virtual machine is the best way for us.
Reply | Threaded
Open this post in threaded view
|

Re: Build Failure on OS X Yosemite

flixr
Administrator
Hi guys,

while I can't help out on OS X stuff, it might be worth looking into replacing the deprecated GnoDruid with GtkAssistant:
https://github.com/paparazzi/paparazzi/issues/923

Cheers, Felix

On Tue, Nov 4, 2014 at 10:57 AM, liangchao <[hidden email]> wrote:
En...I doubted that if won't work. Have you installed paparazzi-tools.
GnoDruid do exist and compiled in the directory /opt/paprazzi/lib/ocaml/.

Maybe install paparazzi in a Ubuntu virtual machine is the best way for us.



--
View this message in context: http://lists.paparazziuav.org/Build-Failure-on-OS-X-Yosemite-tp16302p16324.html
Sent from the paparazzi-devel mailing list archive at Nabble.com.

_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
Reply | Threaded
Open this post in threaded view
|

Re: Build Failure on OS X Yosemite

liangchao
In reply to this post by wangyeee
Hi, Wangyeee:

On Ubuntu 14.04, I could build successfully. But after I've installed opam manually, the same error as yours have raised.

OC gcs.ml
findlib: [WARNING] Interface glibIvy.cmi occurs in several directories: /Users/wang/.opam/system/lib/glibivy, /opt/local/lib/ocaml
findlib: [WARNING] Interface ivy.cmi occurs in several directories: /Users/wang/.opam/system/lib/glibivy, /opt/local/lib/ocaml
File "gcs.ml", line 632, characters 23-29:
Error: This expression has type int32 but an expression was expected of type
         Gdk.native_window
make: *** [gcs.cmo] Error 2

After roll back the environment variables and remove the opam, it could be build again.
Reply | Threaded
Open this post in threaded view
|

Re: Build Failure on OS X Yosemite

Gautier Hattenberger-3
Hi,

So, it appears that the error comes from a change in the API of lablgtk
(and probably Gtk itself). A parameter that was previously an int32 (in
version 2.16.0 and below) has now the type Gdk.native_window (in version
2.18.x).
Unbuntu only package 2.16.0, but opam install by default the latest
version 2.18.3. You can still get an older version with opam (opam
install -v lablgtk.2.16.0, maybe remove the 2.18.3 version first).
It is really annoying to deal with this kind of stuff in ocaml, but I
still need to make something for this because we'll face this problem in
Unbuntu one day or another.

Gautier

Le 07/11/2014 10:48, liangchao a écrit :

> Hi, Wangyeee:
>
> On Ubuntu 14.04, I could build successfully. But after I've installed opam
> manually, the same error as yours have raised.
>
> OC gcs.ml
> findlib: [WARNING] Interface glibIvy.cmi occurs in several directories:
> /Users/wang/.opam/system/lib/glibivy, /opt/local/lib/ocaml
> findlib: [WARNING] Interface ivy.cmi occurs in several directories:
> /Users/wang/.opam/system/lib/glibivy, /opt/local/lib/ocaml
> File "gcs.ml", line 632, characters 23-29:
> Error: This expression has type int32 but an expression was expected of type
>           Gdk.native_window
> make: *** [gcs.cmo] Error 2
>
> After roll back the environment variables and remove the opam, it could be
> build again.
>
>
>
>
> --
> View this message in context: http://lists.paparazziuav.org/Build-Failure-on-OS-X-Yosemite-tp16302p16362.html
> Sent from the paparazzi-devel mailing list archive at Nabble.com.
>
> _______________________________________________
> Paparazzi-devel mailing list
> [hidden email]
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel