Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have to install a package named hface.

But when I am trying to install it I get this output with 2 errors:

I do ./configure and then sudo make After make I got the following error:

In file included from TMatrix.h:129:0,
                 from CMatrixStream.h:14,
                 from CMatrixStream.cpp:3:
TMatrix.inl: In constructor 'TMatrix<TYPE, ALLOCATOR>::TMatrix(const TMatrix<TYPE, ALLOCATOR>&, const TMatrix<TYPE, ALLOCATOR>&, const TMatrix<TYPE, ALLOCATOR>::cmatmultop&)':
TMatrix.inl:236:15: error: 'CblasRowMajor' was not declared in this scope
TMatrix.inl:236:15: note: suggested alternative:
saic_cblas.h:17:18: note:   'SAIC_CBLAS::CblasRowMajor'
TMatrix.inl:236:29: error: 'CblasNoTrans' was not declared in this scope
TMatrix.inl:236:29: note: suggested alternative:
saic_cblas.h:18:18: note:   'SAIC_CBLAS::CblasNoTrans'
make[3]: *** [CMatrixStream.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I have uploaded the package here. Whould you mind guide me install this?

Edit 1:


After the Rinwidz's offer I added the gls_cblas.h to the files and included it to the TMatrix.inl

Then also needed the files "tiffio.h", then "tiff.h", then "jpeglib.h", tehn "jconfig.h" and then "jmorecfg.h";

Now when I tried make, I got the following output with errors:

make  all-recursive
make[1]: Entering directory `/home/mohammad/bbase/FRGC Metadata/FRGC-2.0-dist/BEE_DIST/BEE/hface'
Making all in src
make[2]: Entering directory `/home/mohammad/bbase/FRGC Metadata/FRGC-2.0-dist/BEE_DIST/BEE/hface/src'
Making all in stdlib
make[3]: Entering directory `/home/mohammad/bbase/FRGC Metadata/FRGC-2.0-dist/BEE_DIST/BEE/hface/src/stdlib'
source='CNormalizeFaceImage.cpp' object='CNormalizeFaceImage.lo' libtool=yes \
    depfile='.deps/CNormalizeFaceImage.Plo' tmpdepfile='.deps/CNormalizeFaceImage.TPlo' \
    depmode=gcc3 /bin/bash ../../config/depcomp \
    /bin/bash ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.   -DSAIC_BLAS -DLINUX -DUNKNOWN -g -O2 -DFPOPT_P4 -c -o CNormalizeFaceImage.lo `test -f 'CNormalizeFaceImage.cpp' || echo './'`CNormalizeFaceImage.cpp
rm -f .libs/CNormalizeFaceImage.lo
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -DSAIC_BLAS -DLINUX -DUNKNOWN -g -O2 -DFPOPT_P4 -c CNormalizeFaceImage.cpp -MT CNormalizeFaceImage.lo -MD -MP -MF .deps/CNormalizeFaceImage.TPlo  -fPIC -DPIC -o .libs/CNormalizeFaceImage.lo
In file included from CNormalizeFaceImage.cpp:25:0:
tiffio.h:59:9: error: 'uint16' does not name a type
tiffio.h:60:9: error: 'uint16' does not name a type
tiffio.h:61:9: error: 'uint32' does not name a type
tiffio.h:62:9: error: 'uint32' does not name a type
tiffio.h:63:9: error: 'int32' does not name a type
tiffio.h:72:9: error: 'int32' does not name a type
In file included from CNormalizeFaceImage.cpp:25:0:
tiffio.h:108:17: error: ISO C++ forbids declaration of 'tsize_t' with no type [-fpermissive]
tiffio.h:108:17: error: typedef 'tsize_t' is initialized (use decltype instead)
tiffio.h:108:19: error: 'TIFFReadWriteProc' was not declared in this scope
tiffio.h:109:16: error: ISO C++ forbids declaration of 'toff_t' with no type [-fpermissive]
tiffio.h:109:16: error: typedef 'toff_t' is initialized (use decltype instead)
tiffio.h:109:18: error: 'TIFFSeekProc' was not declared in this scope
tiffio.h:111:16: error: ISO C++ forbids declaration of 'toff_t' with no type [-fpermissive]
tiffio.h:111:16: error: typedef 'toff_t' is initialized (use decltype instead)
tiffio.h:111:18: error: 'TIFFSizeProc' was not declared in this scope
tiffio.h:112:53: error: 'toff_t' has not been declared
tiffio.h:113:55: error: 'toff_t' has not been declared
tiffio.h:125:8: error: 'tsize_t' does not name a type
tiffio.h:126:8: error: 'tsize_t' does not name a type
tiffio.h:127:8: error: 'tsize_t' does not name a type
tiffio.h:128:8: error: 'tsize_t' does not name a type
tiffio.h:129:8: error: 'tsize_t' does not name a type
tiffio.h:130:8: error: 'tsize_t' does not name a type
tiffio.h:135:8: error: 'uint32' does not name a type
tiffio.h:136:8: error: 'tdir_t' does not name a type
tiffio.h:137:8: error: 'tstrip_t' does not name a type
tiffio.h:138:8: error: 'ttile_t' does not name a type
tiffio.h:139:48: error: 'tsize_t' has not been declared
tiffio.h:141:36: error: 'tdir_t' has not been declared
tiffio.h:142:39: error: 'uint32' has not been declared
tiffio.h:143:39: error: 'tdir_t' has not been declared
tiffio.h:149:45: error: 'uint32' has not been declared
tiffio.h:149:53: error: 'tsample_t' has not been declared
tiffio.h:150:46: error: 'uint32' has not been declared
tiffio.h:150:54: error: 'tsample_t' has not been declared
tiffio.h:151:37: error: 'uint32' has not been declared
tiffio.h:151:45: error: 'uint32' has not been declared
tiffio.h:151:53: error: 'uint32' has not been declared
tiffio.h:162:6: error: 'TIFFReadWriteProc' has not been declared
tiffio.h:162:34: error: 'TIFFReadWriteProc' has not been declared
tiffio.h:163:6: error: 'TIFFSeekProc' has not been declared
tiffio.h:164:6: error: 'TIFFSizeProc' has not been declared
tiffio.h:171:8: error: 'ttile_t' does not name a type
tiffio.h:172:33: error: 'uint32' has not been declared
tiffio.h:172:41: error: 'uint32' has not been declared
tiffio.h:172:49: error: 'uint32' has not been declared
tiffio.h:172:57: error: 'tsample_t' has not been declared
tiffio.h:173:8: error: 'ttile_t' does not name a type
tiffio.h:174:8: error: 'tsize_t' does not name a type
tiffio.h:176:8: error: 'tsize_t' does not name a type
tiffio.h:178:8: error: 'tstrip_t' does not name a type
tiffio.h:179:8: error: 'tstrip_t' does not name a type
tiffio.h:180:8: error: 'tsize_t' does not name a type
tiffio.h:181:8: error: 'tsize_t' does not name a type
tiffio.h:182:8: error: 'tsize_t' does not name a type
tiffio.h:183:8: error: 'tsize_t' does not name a type
tiffio.h:184:8: error: 'tsize_t' does not name a type
tiffio.h:185:8: error: 'tsize_t' does not name a type
tiffio.h:186:8: error: 'tsize_t' does not name a type
tiffio.h:187:8: error: 'tsize_t' does not name a type
tiffio.h:188:39: error: 'toff_t' has not been declared
tiffio.h:189:27: error: variable or field 'TIFFSwabShort' declared void
tiffio.h:189:27: error: 'uint16' was not declared in this scope
tiffio.h:189:35: error: expected primary-expression before ')' token
tiffio.h:190:26: error: variable or field 'TIFFSwabLong' declared void
tiffio.h:190:26: error: 'uint32' was not declared in this scope
tiffio.h:190:34: error: expected primary-expression before ')' token
tiffio.h:191:34: error: variable or field 'TIFFSwabArrayOfShort' declared void
tiffio.h:191:34: error: 'uint16' was not declared in this scope
tiffio.h:191:42: error: expected primary-expression before ',' token
tiffio.h:191:44: error: expected primary-expression before 'unsigned'
tiffio.h:192:33: error: variable or field 'TIFFSwabArrayOfLong' declared void
tiffio.h:192:33: error: 'uint32' was not declared in this scope
tiffio.h:192:41: error: expected primary-expression before ',' token
tiffio.h:192:43: error: expected primary-expression before 'unsigned'
CNormalizeFaceImage.cpp: In member function 'bool CNormalizeFaceImage::NormalizeTiff(const string&, const CMetadata&)':
CNormalizeFaceImage.cpp:115:4: error: 'uint16' was not declared in this scope
CNormalizeFaceImage.cpp:115:11: error: expected ';' before 'fillorder'
CNormalizeFaceImage.cpp:116:4: error: 'tsize_t' was not declared in this scope
CNormalizeFaceImage.cpp:116:12: error: expected ';' before 'result'
CNormalizeFaceImage.cpp:160:4: error: 'stripSize' was not declared in this scope
CNormalizeFaceImage.cpp:160:35: error: 'TIFFStripSize' was not declared in this scope
CNormalizeFaceImage.cpp:161:39: error: 'TIFFNumberOfStrips' was not declared in this scope
CNormalizeFaceImage.cpp:171:11: error: 'result' was not declared in this scope
CNormalizeFaceImage.cpp:171:86: error: 'TIFFReadEncodedStrip' was not declared in this scope
CNormalizeFaceImage.cpp:176:22: error: 'result' was not declared in this scope
CNormalizeFaceImage.cpp:193:45: error: 'fillorder' was not declared in this scope
CNormalizeFaceImage.cpp: In member function 'bool CNormalizeFaceImage::NormalizePGM(const string&, const CMetadata&)':
CNormalizeFaceImage.cpp:359:26: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
CNormalizeFaceImage.cpp:371:29: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
CNormalizeFaceImage.cpp:382:29: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
make[3]: *** [CNormalizeFaceImage.lo] Error 1
make[3]: Leaving directory `/home/mohammad/bbase/FRGC Metadata/FRGC-2.0-dist/BEE_DIST/BEE/hface/src/stdlib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mohammad/bbase/FRGC Metadata/FRGC-2.0-dist/BEE_DIST/BEE/hface/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mohammad/bbase/FRGC Metadata/FRGC-2.0-dist/BEE_DIST/BEE/hface'
make: *** [all] Error 2

What do you offer?

Edit 2:


I have downloaded the tiff.h from blender before; and then downloaded it from MIT. Now several errors have been skiped and the new error is:

CSets.cpp: In member function 'std::vector<std::basic_string<char> > CSets::readFileNames(const string&)':
CSets.cpp:193:11: error: 'exit' was not declared in this scope

Edit 3:


In respect to this conversation I had to include <cstdlib> in order to have exit() function for gcc4.3

No I have another error:

In file included from MemMapAllocator.h:33:0,
                 from MemMapAllocator.cpp:6:
TMemMapArray.h: In member function 'TYPE* TMemMapArray<TYPE>::CreateMemMapArray(int, TYPE, std::string&, FILEHANDLE&)':
TMemMapArray.h:264:36: error: there are no arguments to 'mkstemp' that depend on a template parameter, so a declaration of 'mkstemp' must be available [-fpermissive]
TMemMapArray.h:264:36: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
share|improve this question
1  
Have you got an English source? SAIC_CBLAS::CblasRowMajor yields only this topic on google... CblasRowMajor shows that this is part of gsl/gsl_cblas.h. Is this part of the package? ( xllgsl.svn.codeplex.com/svn/trunk/include/gsl/gsl_cblas.h ) –  Rinzwind Feb 28 '13 at 11:25
    
I have downloaded and added the gsl_cblas.h to the hface/src/stdlib/ and also included to the header of TMatrix.inl Now the errors of TMatrix.inl has been cleared. I have another error with tiffio.h CNormalizeFaceImage.cpp:25:20: fatal error: tiffio.h: No such file or directory I am going to find and copy this file. –  Mohammad Etemaddar Mar 2 '13 at 7:03
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.