Mac installation problem

Added by Kevin Gue over 9 years ago

Newbie question here: I am running OSX 10.7.6 on a Mac. I've installed macports and amc per the website (I think!). I can compile LaTeX files with amc fine, but cannot seem to get the executable to run. When I run the executable, X starts, then I get this error message:

Unrecognized image file format at /opt/local/lib/AMC/perl/AMC-gui.pl line 101.

Line 101 of that file is:

101 Gtk2::Window->set_default_icon_list(map { Gtk2::IconTheme->get_default->load_icon("auto-multiple-choice",$_,"force-svg") } (8,16,32,48,64,128));

Can anyone help?


Replies (3)

RE: Mac installation problem - Added by Alexis Bienvenüe over 9 years ago

Unfortunately, I don't have any Mac system to test, and the MacPorts maintainer for AMC port has currently no time to look at this.

You can test AMC in a VirtualBox with debian, ubuntu or other linux system installed, or test some of the hints below.

  1. Can you check that the following file is present on our system?
    /opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
    
  2. If so, can you run as root the following command, and see if something is better?
    /opt/local/bin/gdk-pixbuf-query-loaders --update-cache
    
  3. Another try: in the file /opt/local/lib/AMC/perl/AMC-gui.pl, you can try to
  • comment out the line 101 with a leading #
  • change all occurences of "force-svg" to "no-svg"
  • change line 846 from
    my $ii=$it->lookup_icon("flag",$taille ,"no-svg");
    

    to
    my $ii='';
    

RE: Mac installation problem - Added by Kevin Gue over 9 years ago

Definitely making progress! I tried #2 above (... --update-cache) and now the app starts and ... seems to work. When the GUI opens, I get the following errors in my Terminal window:

Gtk-WARNING **: Unknown property: GtkImage.halign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkImage.halign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkImage.halign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkButton.halign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkComboBox.halign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkButton.halign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkButton.valign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkHBox.valign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkButton.halign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkButton.valign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkButton.halign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkButton.valign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkHBox.hexpand at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkScrolledWindow.hexpand at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkTreeView.halign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkTreeView.hexpand at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkVButtonBox.halign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkButton.halign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkButton.halign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkButton.halign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkVBox.valign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.
Gtk-WARNING **: Unknown property: GtkHBox.halign at /opt/local/lib/AMC/perl/AMC-gui.pl line 745.

Line 745 of that file is:

$g->add_from_file($glade_base.$main_widget.".glade");

But, I just ran through a small example and all seemed okay. I will continue to test. Let me know if there is an obvious fix to this new issue.

RE: Mac installation problem - Added by Alexis Bienvenüe over 9 years ago

Thanks for your report. I think all the Gtk-WARNINGs can be ignored: all should run ok.

(1-3/3)