[ptx] Unable to compile libpano on Ubuntu 6.06

Paul Atreides paul.atreides at chti.net
Wed Jun 7 12:08:19 BST 2006


Bruno Postle a écrit :
> Paul Atreides wrote:
>>
>> I've just download the cvs version.
>> Unfortunately, it generates the same errors with this output :
>>
>> Have I forget something ???
>
> I just looked and Pablo added the fix to libpano CVS three days ago. 
>  Can you check that you have this function in both PTcommon.c and 
> PTcommon.h:
>
>   void InsertFileName( fullPath *fp, char *fname )
>
As said in 
http://sourceforge.net/tracker/index.php?func=detail&aid=1487709&group_id=96188&atid=613954 
<http://sourceforge.net/tracker/index.php?func=detail&aid=1487709&group_id=96188&atid=613954>
I modified the libpano/javastub.c file adding the line :

void InsertFileName ( char* text ) {
}

This modification solves the problem and compilation of libpano goes to 
the end without any errors.
Thanks a lot Bruno and Pablo for so fast answer (I'm impressed !!!) and 
thanks for Hugin, a must have !

(...)

Unfortunately, the compilation of Hugin generates also errors. Could you 
help me to solve it ?
Here is the output :

(...)
if g++ -DHAVE_CONFIG_H "-I." -I../../src/include -I../../src/foreign 
-I../../src/include -I.. 
-I/usr/local/lib/wx/include/gtk2-unicode-release-2.6 
-I/usr/local/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 
-DNO_GCC_PRAGMA    -I/usr/local/include -DHasPANO -pthread 
-I/usr/include -g -O2 -MT UniversalCursor.o -MD -MP -MF 
".deps/UniversalCursor.Tpo" \
          -c -o UniversalCursor.o `test -f 'UniversalCursor.cpp' || echo 
'./'`UniversalCursor.cpp; \
        then mv -f ".deps/UniversalCursor.Tpo" ".deps/UniversalCursor.Po"; \
        else rm -f ".deps/UniversalCursor.Tpo"; exit 1; \
        fi
UniversalCursor.cpp:68:21: erreur: gdk/gdk.h : Aucun fichier ou 
répertoire de ce type
UniversalCursor.cpp:69:21: erreur: gtk/gtk.h : Aucun fichier ou 
répertoire de ce type
UniversalCursor.cpp: In constructor 
«UniversalCursor::UniversalCursor(const wxImage&)»:
UniversalCursor.cpp:224: erreur: invalid use of undefined type «struct 
_GtkWidget»
/usr/local/include/wx-2.6/wx/defs.h:2733: erreur: forward declaration of 
«struct _GtkWidget»
UniversalCursor.cpp:225: erreur: «gdk_bitmap_create_from_data» was not 
declared in this scope
UniversalCursor.cpp:226: erreur: invalid use of undefined type «struct 
_GtkWidget»
/usr/local/include/wx-2.6/wx/defs.h:2733: erreur: forward declaration of 
«struct _GtkWidget»
UniversalCursor.cpp:237: erreur: «gdk_cursor_new_from_pixmap» was not 
declared in this scope
UniversalCursor.cpp:239: erreur: «gdk_bitmap_unref» was not declared in 
this scope
make[3]: *** [UniversalCursor.o] Erreur 1
make[3]: quittant le répertoire « /home/jp/hugin/src/hugin »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/jp/hugin/src/hugin »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/jp/hugin/src »
make: *** [all-recursive] Erreur 1

Sorry, but I need any more help...
JP



More information about the ptx mailing list