[Vala] FreeBSD - vala/GTK3 - Seat & FileChooserNative types not found



Hello,

I am trying to compile a vala program on FreeBSD, it compiles fine on Fedora so I am asking here on the vala 
list, thinking this is something BSD/vala specific.

The configure script runs smooth, as part of the output below indicates:

-- Found PkgConfig: /usr/local/bin/pkg-config (found version "1.3.7") 
-- Found GObject: /usr/local/lib/libgobject-2.0.so (found version "2.50.2") 
-- Found Vala: /usr/local/bin/valac (found suitable version "0.30.2", minimum required is "0.30") 
-- Found Gee: /usr/local/lib/libgee-0.8.so (found version "0.18.1") 
-- Found GLib: /usr/local/lib/libglib-2.0.so (found suitable version "2.50.2", minimum required is "2.38") 
-- Found SQLite3: /usr/local/lib/libsqlite3.so (found version "3.20.1") 
-- Found GDKPixbuf2: /usr/local/lib/libgdk_pixbuf-2.0.so (found version "2.36.9") 
-- Found GIO: /usr/local/lib/libgio-2.0.so (found version "2.50.2") 
-- Found GModule: /usr/local/lib/libgmodule-2.0.so (found version "2.50.2") 
-- Found Gettext: /usr/local/bin/xgettext (found version "0.19.8.1") 
-- Found GTK3: /usr/local/lib/libgtk-3.so (found suitable version "3.22.15", minimum required is "3.22") 
-- Found GDK3: /usr/local/lib/libgdk-3.so (found version "3.22.15") 
-- Found GPGME: /usr/local/lib/libgpgme.so (found version "1.9.0") 
-- Found GCrypt: /usr/local/lib/libgcrypt.so (found version "1.8.1") 
-- Looking for memset_s
-- Looking for memset_s - found
-- Found Soup: /usr/local/lib/libsoup-2.4.so (found version "2.52.2") 

Running "make" I encounter the following errors:

/home/philip/Downloads/dino-master/main/src/ui/conversation_summary/message_textview.vala:68.14-68.22: error: 
The type name `Seat' could not be found
        List<weak Seat> seats = window.get_display().list_seats();
             ^^^^^^^^^
/home/philip/Downloads/dino-master/main/src/ui/manage_accounts/dialog.vala:152.9-152.25: error: The type name 
`FileChooserNative' could not be found
        FileChooserNative chooser = new FileChooserNative (
        ^^^^^^^^^^^^^^^^^
/home/philip/Downloads/dino-master/main/src/ui/conversation_titlebar/file_entry.vala:38.9-38.25: error: The 
type name `FileChooserNative' could not be found
        FileChooserNative chooser = new FileChooserNative (
        ^^^^^^^^^^^^^^^^^
Compilation failed: 3 error(s), 0 warning(s)
*** Error code 1

Other GTK types in the program are compiling ok so I assume libraries are being found. Therefore, I checked 
that I have the header files for these types:

-rw-r--r--  1 root  wheel  4378 Dec 18 20:24 /usr/local/include/gtk-3.0/gdk/gdkseat.h
-rw-r--r--  1 root  wheel  2392 Dec 18 20:25 /usr/local/include/gtk-3.0/gtk/gtkfilechoosernative.h

The block of code that references type Seat is as follows:

    private void populate_context_menu(Gtk.Menu popup) {
        popup.@foreach((widget) => { widget.destroy(); });

        Gdk.Window window = get_window(TextWindowType.TEXT);
        List<weak Seat> seats = window.get_display().list_seats();
        if (seats.length() > 0) {
            int device_x, device_y;
            window.get_device_position(seats.nth_data(0).get_pointer(), out device_x, out device_y, null);
            string url = find_url_at_location(device_x, device_y);
            if (url != null) {
                Gtk.MenuItem copy_url_item = new Gtk.MenuItem.with_label(_("Copy Link Address")) { 
visible=true };
                copy_url_item.activate.connect(() => {
                    Clipboard.get_default(window.get_display()).set_text(url, url.length);
                });
                popup.append(copy_url_item);
            }
        }

and the block of code that references type FileChooserNative is also as follows:c void on_clicked() {

        FileChooserNative chooser = new FileChooserNative (
                "Select file", get_toplevel() as Window, FileChooserAction.OPEN,
                "Select", "Cancel");
        if (chooser.run() == Gtk.ResponseType.ACCEPT) {
            string uri = chooser.get_filename();
            stream_interactor.get_module(FileManager.IDENTITY).send_file(uri, conversation);
        }
    }
 

I  would appreciate any help as what I can do to resolve this.

Thanks,
Philip



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]