<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Em 15-08-2011 16:14, Dominik Kriegner escreveu:
    <blockquote cite="mid:1313424844.17489.4.camel@thales" type="cite">
      <pre wrap="">I think the main problem is in the Utility::findDataFile function. I
could fix the problem with

=== modified file 'src/Utility.C'
--- old/src/Utility.C        2011-03-24 16:55:22 +0000
+++ new/src/Utility.C        2011-08-15 15:39:32 +0000
@@ -213,9 +213,7 @@
                 localfile = filename;
         } else {
                 localfile = Glib::build_filename (
-                        Glib::get_current_dir (), "data");
-                localfile = Glib::build_filename (
-                        localfile, filename);
+                    DATADIR, filename);
         }
 
         Glib::RefPtr&lt;Gio::File&gt; uri =

I am however not sure if this is what the findDataFile function is
intended for. I also attached the patch file. Please have a look!</pre>
    </blockquote>
    <br>
    Hi,<br>
    <br>
    This is fixed in my branch
<a class="moz-txt-link-freetext" href="http://bazaar.launchpad.net/~referencer-devs/referencer/amrlima_gio_port/revision/876">http://bazaar.launchpad.net/~referencer-devs/referencer/amrlima_gio_port/revision/876</a><br>
    <br>
    The problem was introduced by a change due to the gio port. Thanks
    Dominik for reporting!<br>
    <br>
    Regards,<br>
    Ant&oacute;nio Lima<br>
    <br>
    <blockquote cite="mid:1313424844.17489.4.camel@thales" type="cite">
      <pre wrap="">

kind regards

Dominik

On Mon, 2011-08-15 at 12:44 +0200, Dominik Kriegner wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">hi

</pre>
        <blockquote type="cite">
          <pre wrap="">man, 15 08 2011 kl. 11:27 +0200, skrev Dominik Kriegner:
</pre>
          <blockquote type="cite">
            <pre wrap="">$ bin/referencer
int main(int, char**):
        setting pythonPath
to :/home/dominik/apps/lib/python:./plugins:/home/dominik/.referencer/plugins:/home/dominik/devel/referencer/amrlima_gio_port/dist/lib/referencer:
terminate called after throwing an instance of 'Gio::Error'
Aborted
</pre>
          </blockquote>
          <pre wrap="">
I see the same behaviour, however if you use ./src/referencer it works
for me
</pre>
        </blockquote>
        <pre wrap="">
You are right it works with ./src/referencer but only When I execute it
from the root directory of the branch! If I do 

cd src
./referencer 

it fails with the same error again. I guess your case works only since
a data directory and the needed files exist in the root directory.
Since the files already exist there also subsequent startups work as
expected.

</pre>
        <blockquote type="cite">
          <pre wrap="">   
</pre>
          <blockquote type="cite">
            <pre wrap="">A subsequent start of referencer fails because of those 4 emtpy files.
Did I do something wrong or should I file a bug report on launchpad? 
</pre>
          </blockquote>
          <pre wrap="">
Does installing as non-devconfigure work?
./configure
make
make install
</pre>
        </blockquote>
        <pre wrap="">
fails for me too if executed outside the build directory where the data folder is located!
somehow the current directory is important when referencer is started!

kind regards 

dominik

</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
referencer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:referencer@icculus.org">referencer@icculus.org</a>
<a class="moz-txt-link-freetext" href="http://icculus.org/mailman/listinfo/referencer">http://icculus.org/mailman/listinfo/referencer</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>