[Gtk-sharp-list] gapi2-codegen cannot find pango-api.xml

Tobias Brandt tob.brandt at gmail.com
Sat Apr 27 18:37:27 UTC 2013


Solved it:
"/home/tobias/lib" is a symlink to "/home/Daten1/lib". So
"/home/tobias/lib/pkgconfig/../../share/gapi-2.0/pango-api.xml" is an
invalid path, because "/home/Daten1/share" does not exist.
Moving the lib folder to $HOME solves the problem.

I just don't understand why the error message shows the correct path.


On 27 April 2013 18:07, Tobias Brandt <tob.brandt at gmail.com> wrote:

> Hi guys,
>
> I'm trying to compile gnome-sharp from the latest GIT source. I get the
> following error in the step "Making all in art":
>
> make[2]: Entering directory `/media/Daten1/snapshots/gnome-sharp/art'
> rm -f generated/* && \
> /home/tobias/bin/gapi2-codegen --generate art-api.xml \
>  -I:/home/tobias/lib/pkgconfig/../../share/gapi-2.0/pango-api.xml
> -I:/home/tobias/lib/pkgconfig/../../share/gapi-2.0/atk-api.xml
> -I:/home/tobias/lib/pkgconfig/../../share/gapi-2.0/gdk-api.xml
> -I:/home/tobias/lib/pkgconfig/../../share/gapi-2.0/gtk-api.xml
> -I:/home/tobias/lib/pkgconfig/../../share/gapi-2.0/glib-api.xml   \
>  --outdir=generated --customdir=. --assembly-name=art-sharp \
> --gluelib-name=artsharpglue-2 --glue-filename=glue/generated.c \
>  --glue-includes= \
> && touch generated-stamp
> Simple type element art_u8 has no specified default value
> Simple type element art_u32 has no specified default value
>
> Unhandled Exception:
> System.IO.FileNotFoundException: Could not find file
> "/home/tobias/share/gapi-2.0/pango-api.xml".
> File name: '/home/tobias/share/gapi-2.0/pango-api.xml'
>   at System.IO.FileStream..ctor (System.String path, FileMode mode,
> FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous,
> FileOptions options) [0x00000] in <filename unknown>:0
>   at System.IO.FileStream..ctor (System.String path, FileMode mode,
> FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
>   at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
> (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
>   at System.IO.File.OpenRead (System.String path) [0x00000] in <filename
> unknown>:0
>   at GtkSharp.Generation.Parser.Load (System.String filename) [0x00000] in
> <filename unknown>:0
>   at GtkSharp.Generation.Parser.Parse (System.String filename) [0x00000]
> in <filename unknown>:0
>   at GtkSharp.Generation.CodeGenerator.Main (System.String[] args)
> [0x00000] in <filename unknown>:0
> [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could
> not find file "/home/tobias/share/gapi-2.0/pango-api.xml".
> File name: '/home/tobias/share/gapi-2.0/pango-api.xml'
>   at System.IO.FileStream..ctor (System.String path, FileMode mode,
> FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous,
> FileOptions options) [0x00000] in <filename unknown>:0
>   at System.IO.FileStream..ctor (System.String path, FileMode mode,
> FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
>   at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
> (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
>   at System.IO.File.OpenRead (System.String path) [0x00000] in <filename
> unknown>:0
>   at GtkSharp.Generation.Parser.Load (System.String filename) [0x00000] in
> <filename unknown>:0
>   at GtkSharp.Generation.Parser.Parse (System.String filename) [0x00000]
> in <filename unknown>:0
>   at GtkSharp.Generation.CodeGenerator.Main (System.String[] args)
> [0x00000] in <filename unknown>:0
>
>
> But this file clearly exists and is readable:
>
> > ll /home/tobias/share/gapi-2.0/
> total 2.0M
> -rw-r--r-- 1 tobias tobias  47k Apr 27 15:58 art-api.xml
> -rw-r--r-- 1 tobias tobias 104k Apr 27 17:46 atk-api.xml
> -rw-r--r-- 1 tobias tobias 258k Apr 27 17:46 gdk-api.xml
> -rw-r--r-- 1 tobias tobias 287k Apr 27 17:10 gio-api.xml
> -rw-r--r-- 1 tobias tobias  17k Apr 27 17:46 glade-api.xml
> -rw-r--r-- 1 tobias tobias  706 Apr 27 17:46 glib-api.xml
> -rw-r--r-- 1 tobias tobias 1.1M Apr 27 17:46 gtk-api.xml
> -rw-r--r-- 1 tobias tobias 110k Apr 27 17:46 pango-api.xml
>
>
>  I can even write a C# program that can read the file, so it's not a mono
> issue.
>
> Any idea what's going on here?
>
> Cheers,
> Tobias
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20130427/9cf982ea/attachment.html>


More information about the Gtk-sharp-list mailing list