[ptx] Compile Hugin on Ubuntu : Error on compiling libpano

Bruno Postle bruno at postle.net
Fri Apr 22 16:24:12 BST 2005


On Fri 22-Apr-2005 at 08:18 -0600, Rob Park wrote:
> Bruno Postle wrote:
> > I'm fairly sure that this is the only package you need to
> > compile libpano12:

> I'm not sure. I was getting this same error for a while too, then I 
> finally installed something that made it work

Probably whatever package contains jni.h or adds a symlink so that
configure finds jni.h.

> Is pano12 written in java? I'm not sure exactly what you'd lose
> from pano12 if you just disabled java...

The java stuff is so that ptpicker and pteditor can use the library.

You can hack libpano12 without java support, just delete all
references to ptpicker and pteditor from the Makefile and delete
these lines from filter.h and sys_ansi.c:

Index: filter.h
===================================================================
RCS file: /cvsroot/panotools/libpano/filter.h,v
retrieving revision 1.10
diff -r1.10 filter.h
90,91d89
< extern int JavaUI; // Flag to indicate use of java dialogs
< void JPrintError( char* text );
Index: sys_ansi.c
===================================================================
RCS file: /cvsroot/panotools/libpano/sys_ansi.c,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 sys_ansi.c
47,49d46
<       if( JavaUI ){
<               JPrintError( message );
<       }else{
52d48
<       }

-- 
Bruno


More information about the ptX mailing list