2008/9/7 Marko Kuder <[EMAIL PROTECTED]>:
> On 9/7/08, James Legg <[EMAIL PROTECTED]> wrote:
>> make: *** [install] Error 1
>> --------------------------------------------------------------------------------
>>
>> If I run
>> touch ../gsoc2008_integration/src/PTBatcherGUI/PTBatcherGUI.desktop
>> and then run make install again, Hugin runs fine (I tried the fast
>> preview and send to batch).
>
> I guess I forgot to add the .desktop file for the GUI program. I
> commited it to the repo now.

Yes, make install works now.

>> However, when starting PTBatcherGUI I am greeted with these errors:
>> 18:25:57: Can't load image from file
>> '/share/hugin/xrc/data/media-playback-start.png': file does not exist.
>> 18:25:57: Can't load image from file
>> '/share/hugin/xrc/data/media-playback-pause.png': file does not exist.
>> 18:25:57: Can't load image from file
>> '/share/hugin/xrc/data/media-skip-forward.png': file does not exist.
>> 18:25:57: Can't load image from file
>> '/share/hugin/xrc/data/process-stop22.png': file does not exist.
>> 18:25:57: Can't load image from file
>> '/share/hugin/xrc/data/list-add.png': file does not exist.
>> 18:25:57: Can't load image from file
>> '/share/hugin/xrc/data/list-remove.png': file does not exist.
>> 18:25:57: Can't load image from file
>> '/share/hugin/xrc/data/document-new.png': file does not exist.
>> 18:25:57: Can't load image from file
>> '/share/hugin/xrc/data/document-open.png': file does not exist.
>> 18:25:57: Can't load image from file
>> '/share/hugin/xrc/data/media-floppy.png': file does not exist.
>> 18:25:57: Can't load image from file
>> '/share/hugin/xrc/data/folder-saved-search.png': file does not exist.
>>
>> On my system, these files should be installed to
>> /usr/share/hugin/xrc/data/, but they are not there either.
>
> They should be there... did you try to run CMake again? The
> CMakeLists.txt in the data directory is configured to copy all *.png
> files and should work the same for my files.
>
> The errors may still be there after you get the *.png files in place,
> judging from the output - the filepaths start with "/share/hugin..."
> when they should contain the absolute path. But maybe it works anyway,
> let's first fix your *.png files...
>
> --
> Marko

You're right. The files are copied to /usr/local/share/hugin/xrc/data.
They are found if I type
"/usr/local/bin/PTBatcherGUI", but not when I type "PTBatcherGUI",
since the /usr/local bit is missing from the file names.

It looks like this bit of the path is meant to come from line 115 of
BatchFrame.cpp, however it is taking argv[0] to find the directory.
This is a problem since PTBatcherGUI can be invoked without explicitly
using /usr/local/bin/ or the equivalent on other systems, i.e. using a
link, having the directory in the path environment variable (I was
using this), or using a copy of the executable.

I don't know how you should find the path correctly, though.

Hope that helps,
James

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---

Reply via email to