Share

pfstools for HDR images

Tracker: Bugs

5 Can't compile pfstools from 1.7.0 to 1.8.1 - ID: 2848391
Last Update: Settings changed ( rafm )

I tried to compile each version of pfstools using 64-bit archlinux from
1.8.1 to 1.6.5. I could compile only 1.6.5; the others gave me this error.

I had theese commands:
1) ./configure
2) make. During "make" command it gave me this error:

g++ -DHAVE_CONFIG_H -I. -I../.. -I./../pfs -O3 -MT
pfsextractchannels.o -MD -MP -MF .deps/pfsextractchannels.Tpo -c -o
pfsextractchannels.o pfsextractchannels.cpp


pfsextractchannels.cpp: In function ‘void extractChannels(int,
char**)’:

pfsextractchannels.cpp:92: warning: deprecated conversion from string
constant to ‘char*’

mv -f .deps/pfsextractchannels.Tpo .deps/pfsextractchannels.Po


/bin/sh ../../libtool --tag=CXX --mode=link g++ -O3 -o
pfsextractchannels pfsextractchannels.o ../pfs/libpfs-1.2.la

g++ -O3 -o .libs/pfsextractchannels pfsextractchannels.o
../pfs/.libs/libpfs-1.2.so -Wl,--rpath -Wl,/usr/local/lib

creating pfsextractchannels
g++ -DHAVE_CONFIG_H -I. -I../.. -I./../pfs -O3 -MT pfspanoramic.o -MD
-MP -MF .deps/pfspanoramic.Tpo -c -o pfspanoramic.o pfspanoramic.cpp
pfspanoramic.cpp: In static member function ‘static Projection*
ProjectionFactory::getProjection(const char*)’:
pfspanoramic.cpp:198: error: invalid conversion from ‘const char*’ to
‘char*’
make[3]: *** [pfspanoramic.o] Error 1
make[3]: Leaving directory
`/home/fiol/buildx86_64/pfstools/pfstools-1.8.1/src/filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/fiol/buildx86_64/pfstools/pfstools-1.8.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/fiol/buildx86_64/pfstools/pfstools-1.8.1'
make: *** [all] Error 2

Why does it happen? :-(
Thanks!



Nobody/Anonymous ( nobody ) - 2009-09-01 12:43

5

Closed

None

Rafal Mantiuk

pfstools

None

Public


Comments ( 2 )




Date: 2009-09-05 10:44
Sender: nobody

gcc (GCC) 4.4.1

I confirm that changing line 194 in src/filter/pfspanoramic.cpp to static
Projection *getProjection(char *name) the problem is solved! Tested in
pfstools v. 1.8.1.

Thanks rafm!


Date: 2009-09-01 14:14
Sender: rafmProject Admin

What compiler are you running? (gcc --version).

Please check if if changing the line 194 in src/filter/panoramic.cpp from
static Projection *getProjection(const char *name)
to
static Projection *getProjection(char *name)
solves the problem.




Log in to comment.

Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
status_id Open 2009-09-05 18:02 rafm
close_date - 2009-09-05 18:02 rafm