Discussion:
compilar photoprint
Add Reply
Channel Herrera
2020-07-16 15:00:02 UTC
Responder
Permalink
buenas luego de darle "make" para compilar photoprint me da ese
error....ayuda porfavor
$ make
In file included from imagesource_pnm.cpp:24:
imagesource_pnm.h:45:2: error: reference to ‘tuple’ is ambiguous
tuple *tuplerow;
^~~~~
In file included from /usr/include/c++/8/bits/move.h:55,
from /usr/include/c++/8/bits/nested_exception.h:40,
from /usr/include/c++/8/exception:144,
from /usr/include/c++/8/ios:39,
from /usr/include/c++/8/ostream:38,
from /usr/include/c++/8/iostream:39,
from imagesource_pnm.cpp:13:
/usr/include/c++/8/type_traits:2415:11: note: candidates are:
‘template<class ... _Elements> class std::tuple’
class tuple;
^~~~~
In file included from imagesource_pnm.h:30,
from imagesource_pnm.cpp:24:
/usr/include/pam.h:95:17: note: ‘typedef sample* tuple’
typedef sample *tuple;
^~~~~
imagesource_pnm.cpp: In destructor ‘virtual
ImageSource_PNM::~ImageSource_PNM()’:
imagesource_pnm.cpp:30:5: error: ‘tuplerow’ was not declared in this scope
if(tuplerow)
^~~~~~~~
imagesource_pnm.cpp:30:5: note: suggested alternative: ‘tuple’
if(tuplerow)
^~~~~~~~
tuple
imagesource_pnm.cpp: In member function ‘virtual ISDataType*
ImageSource_PNM::GetRow(int)’:
imagesource_pnm.cpp:49:26: error: ‘tuplerow’ was not declared in this scope
pnm_readpamrow(&header,tuplerow);
^~~~~~~~
imagesource_pnm.cpp:49:26: note: suggested alternative: ‘tuple’
pnm_readpamrow(&header,tuplerow);
^~~~~~~~
tuple
imagesource_pnm.cpp:58:14: error: ‘tuplerow’ was not declared in this scope
sample s=tuplerow[x][0];
^~~~~~~~
imagesource_pnm.cpp:58:14: note: suggested alternative: ‘tuple’
sample s=tuplerow[x][0];
^~~~~~~~
tuple
In file included from imagesource.h:16,
from imagesource_pnm.h:16,
from imagesource_pnm.cpp:24:
imagesource_pnm.cpp:72:24: error: ‘tuplerow’ was not declared in this scope
*dst++=EIGHTTOIS(tuplerow[x][0]);
^~~~~~~~
imagesource_types.h:8:25: note: in definition of macro ‘EIGHTTOIS’
#define EIGHTTOIS(x) (((x) << 8) | (x))
^
imagesource_pnm.cpp:72:24: note: suggested alternative: ‘tuple’
*dst++=EIGHTTOIS(tuplerow[x][0]);
^~~~~~~~
imagesource_types.h:8:25: note: in definition of macro ‘EIGHTTOIS’
#define EIGHTTOIS(x) (((x) << 8) | (x))
^
imagesource_pnm.cpp:78:14: error: ‘tuplerow’ was not declared in this scope
*dst++=tuplerow[x][0];
^~~~~~~~
imagesource_pnm.cpp:78:14: note: suggested alternative: ‘tuple’
*dst++=tuplerow[x][0];
^~~~~~~~
tuple
imagesource_pnm.cpp: In constructor ‘ImageSource_PNM::ImageSource_PNM(const
char*)’:
imagesource_pnm.cpp:89:29: warning: ISO C++ forbids converting a string
constant to ‘char*’ [-Wwrite-strings]
char *argv[]={"PNMLoader",0};
^
imagesource_pnm.cpp:122:2: error: ‘tuplerow’ was not declared in this scope
tuplerow = pnm_allocpamrow(&header);
^~~~~~~~
imagesource_pnm.cpp:122:2: note: suggested alternative: ‘tuple’
tuplerow = pnm_allocpamrow(&header);
^~~~~~~~
tuple
make[2]: *** [Makefile:437: imagesource_pnm.lo] Error 1
make[2]: se sale del directorio
'/home/channel/Imágenes/photoprint-0.4.2-pre2/imagesource'
make[1]: *** [Makefile:664: all-recursive] Error 1
make[1]: se sale del directorio
'/home/channel/Imágenes/photoprint-0.4.2-pre2'
make: *** [Makefile:446: all] Error 2
Camaleón
2020-07-17 06:00:01 UTC
Responder
Permalink
Post by Channel Herrera
buenas luego de darle "make" para compilar photoprint me da ese
error....ayuda porfavor
$ make
imagesource_pnm.h:45:2: error: reference to ‘tuple’ is ambiguous
tuple *tuplerow;
^~~~~
(...)

Encontré este bug, que es antiguo y ya no debería aplicar, pero quizá
los comentarios te den alguna pista:

photoprint: FTBFS with GCC 6: error: reference is ambiguous
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811806

Saludos,
--
Camaleón
Loading...