jadooman / phonetisaurus

Automatically exported from code.google.com/p/phonetisaurus
0 stars 0 forks source link

Need to use/point to nondefault installation location for openFST #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It's entirely possible that I'm screwing something up; help is much appreciated!

What steps will reproduce the problem?
1. Install openfst in nondefault/nonroot location
2. Try to run 'make' in phonetisaurus's src dir

What is the expected output? What do you see instead?
See below.  I suspect that phonetisaurus is looking for openFST in its default 
location (/usr/local/bin, I think).  We run several instances of openFST on the 
box, so I don't want to install openFST with the phonetisaurus required config 
in the system /usr/local/bin.  How can I specify a nondefault location for 
openFST?

What version of the product are you using? On what operating system?
phonetisaurus-0.7.8, openfst-1.3.3
RedHatEnterpriseLinux 6, 64-bit, 2.6.32 kernel

Please provide any additional information below.

I did configure openfst 1.3.3 with the flags specified:
./configure --enable-compact-fsts --enable-const-fsts --enable-far 
--enable-lookahead-fsts --enable-pdt 
--prefix=/groups/tools/phonetisaurus/openFST/

But, when I run 'make' in phonetisaurus src:
[/groups/tools/phonetisaurus/src]# make
g++ -O2 -I3rdparty/sparsehash -I3rdparty/utfcpp    -c Phonetisaurus.cpp -o 
Phonetisaurus.o
Phonetisaurus.cpp:34:24: error: fst/fstlib.h: No such file or directory
In file included from Phonetisaurus.cpp:38:
FstPathFinder.hpp:35: error: âfstâ is not a namespace-name
FstPathFinder.hpp:35: error: expected namespace-name before â;â token
FstPathFinder.hpp:38: error: ISO C++ forbids declaration of âvectorâ with no 
type
FstPathFinder.hpp:38: error: expected â;â before â<â token
FstPathFinder.hpp:39: error: âLogWeightâ does not name a type
FstPathFinder.hpp:40: error: expected â)â before â<â token
FstPathFinder.hpp: In member function âbool pathdata_pred::operator()(const 
PathData&, const PathData&)â:
FstPathFinder.hpp:45: error: âconst struct PathDataâ has no member named 
âcostâ
FstPathFinder.hpp:45: error: âconst struct PathDataâ has no member named 
âcostâ
FstPathFinder.hpp: At global scope:
FstPathFinder.hpp:71: error: ISO C++ forbids declaration of âsetâ with no type
FstPathFinder.hpp:71: error: expected â;â before â<â token
FstPathFinder.hpp:79: error: ISO C++ forbids declaration of âvectorâ with no 
type
FstPathFinder.hpp:79: error: expected â;â before â<â token
FstPathFinder.hpp:82: error: expected â)â before â<â token
FstPathFinder.hpp:84: error: ISO C++ forbids declaration of âVectorFstâ with 
no type
FstPathFinder.hpp:84: error: expected â,â or â...â before â<â token
FstPathFinder.hpp:87: error: ISO C++ forbids declaration of âVectorFstâ with 
no type
FstPathFinder.hpp:87: error: expected â,â or â...â before â<â token
In file included from Phonetisaurus.hpp:36,
                 from Phonetisaurus.cpp:39:
MBRDecoder.hpp:34: error: âfstâ is not a namespace-name
MBRDecoder.hpp:34: error: expected namespace-name before â;â token
MBRDecoder.hpp:36: error: expected initializer before â<â token
MBRDecoder.hpp:37: error: expected initializer before â<â token
MBRDecoder.hpp:38: error: expected initializer before â<â token
MBRDecoder.hpp:39: error: âLogArcâ was not declared in this scope
MBRDecoder.hpp:39: error: template argument 2 is invalid
MBRDecoder.hpp:39: error: template argument 5 is invalid
MBRDecoder.hpp:39: error: invalid type in declaration before â;â token
MBRDecoder.hpp:41: error: expected initializer before âto_stringâ
MBRDecoder.hpp:68: error: ISO C++ forbids declaration of âvectorâ with no type
MBRDecoder.hpp:68: error: expected â;â before â<â token
MBRDecoder.hpp:69: error: ISO C++ forbids declaration of âSymbolTableâ with 
no type
MBRDecoder.hpp:69: error: expected â;â before â*â token
MBRDecoder.hpp:70: error: ISO C++ forbids declaration of âVectorFstâ with no 
type
MBRDecoder.hpp:70: error: expected â;â before â<â token
MBRDecoder.hpp:71: error: ISO C++ forbids declaration of âVectorFstâ with no 
type
MBRDecoder.hpp:71: error: expected â;â before â<â token
MBRDecoder.hpp:72: error: ISO C++ forbids declaration of âvectorâ with no type
MBRDecoder.hpp:72: error: expected â;â before â<â token
MBRDecoder.hpp:73: error: ISO C++ forbids declaration of âvectorâ with no type
MBRDecoder.hpp:73: error: expected â;â before â<â token
MBRDecoder.hpp:74: error: ISO C++ forbids declaration of âvectorâ with no type
MBRDecoder.hpp:74: error: expected â;â before â<â token
MBRDecoder.hpp:75: error: ISO C++ forbids declaration of âvectorâ with no type
MBRDecoder.hpp:75: error: expected â;â before â<â token
MBRDecoder.hpp:76: error: ISO C++ forbids declaration of âvectorâ with no type
MBRDecoder.hpp:76: error: expected â;â before â<â token
MBRDecoder.hpp:80: error: âVectorFstâ has not been declared
MBRDecoder.hpp:80: error: expected â,â or â...â before â<â token
MBRDecoder.hpp:89: error: âVectorFstâ has not been declared
MBRDecoder.hpp:89: error: expected â,â or â...â before â<â token
MBRDecoder.hpp:99: error: âVectorFstâ has not been declared
MBRDecoder.hpp:99: error: expected â,â or â...â before â<â token
MBRDecoder.hpp:102: error: âvectorâ has not been declared
MBRDecoder.hpp:102: error: expected â,â or â...â before â<â token
MBRDecoder.hpp:112: error: âVectorFstâ has not been declared
MBRDecoder.hpp:112: error: expected â,â or â...â before â<â token
MBRDecoder.hpp:114: error: âVectorFstâ has not been declared
MBRDecoder.hpp:114: error: expected â,â or â...â before â<â token
MBRDecoder.hpp:116: error: ISO C++ forbids declaration of âVectorFstâ with no 
type
MBRDecoder.hpp:116: error: expected â;â before â<â token
MBRDecoder.hpp:119: error: âstringâ does not name a type
MBRDecoder.hpp:121: error: âLogArcâ does not name a type
In file included from Phonetisaurus.cpp:39:
Phonetisaurus.hpp:37: error: âfstâ is not a namespace-name
Phonetisaurus.hpp:37: error: expected namespace-name before â;â token
Phonetisaurus.hpp:38: error: expected initializer before â<â token
Phonetisaurus.hpp:47: error: âstringâ does not name a type
Phonetisaurus.hpp:48: error: âstringâ does not name a type
Phonetisaurus.hpp:49: error: âstringâ does not name a type
Phonetisaurus.hpp:50: error: âstringâ does not name a type
Phonetisaurus.hpp:51: error: âstringâ does not name a type
Phonetisaurus.hpp:56: error: ISO C++ forbids declaration of âvectorâ with no 
type
Phonetisaurus.hpp:56: error: expected â;â before â<â token
Phonetisaurus.hpp:58: error: ISO C++ forbids declaration of âsetâ with no type
Phonetisaurus.hpp:58: error: expected â;â before â<â token
Phonetisaurus.hpp:59: error: ISO C++ forbids declaration of âmapâ with no type
Phonetisaurus.hpp:59: error: expected â;â before â<â token
Phonetisaurus.hpp:61: error: ISO C++ forbids declaration of âStdVectorFstâ 
with no type
Phonetisaurus.hpp:61: error: expected â;â before â*â token
Phonetisaurus.hpp:62: error: âStdVectorFstâ does not name a type
Phonetisaurus.hpp:63: error: ISO C++ forbids declaration of âSymbolTableâ 
with no type
Phonetisaurus.hpp:63: error: expected â;â before â*â token
Phonetisaurus.hpp:64: error: ISO C++ forbids declaration of âSymbolTableâ 
with no type
Phonetisaurus.hpp:64: error: expected â;â before â*â token
Phonetisaurus.hpp:70: error: âStdVectorFstâ does not name a type
Phonetisaurus.hpp:72: error: âStdVectorFstâ does not name a type
Phonetisaurus.hpp:74: error: ISO C++ forbids declaration of âvectorâ with no 
type
Phonetisaurus.hpp:74: error: expected â;â before â<â token
Phonetisaurus.hpp:76: error: âvectorâ has not been declared
Phonetisaurus.hpp:76: error: expected â,â or â...â before â<â token
Phonetisaurus.cpp:41: error: âfstâ is not a namespace-name
Phonetisaurus.cpp:41: error: expected namespace-name before â;â token
Phonetisaurus.cpp: In constructor âPhonetisaurus::Phonetisaurus(const char*, 
bool, float, float, float, int)â:
Phonetisaurus.cpp:54: error: âepsâ was not declared in this scope
Phonetisaurus.cpp:55: error: âsbâ was not declared in this scope
Phonetisaurus.cpp:56: error: âseâ was not declared in this scope
Phonetisaurus.cpp:57: error: âskipâ was not declared in this scope
Phonetisaurus.cpp:59: error: âg2pmodelâ was not declared in this scope
Phonetisaurus.cpp:59: error: âStdVectorFstâ has not been declared
Phonetisaurus.cpp:61: error: âisymsâ was not declared in this scope
Phonetisaurus.cpp:61: error: âSymbolTableâ was not declared in this scope
Phonetisaurus.cpp:61: error: expected primary-expression before â)â token
Phonetisaurus.cpp:61: error: expected â;â before âg2pmodelâ
Phonetisaurus.cpp:62: error: âtieâ was not declared in this scope
Phonetisaurus.cpp:63: error: âskipSeqsâ was not declared in this scope
Phonetisaurus.cpp:68: error: âosymsâ was not declared in this scope
Phonetisaurus.cpp:68: error: expected primary-expression before â)â token
Phonetisaurus.cpp:68: error: expected â;â before âg2pmodelâ
Phonetisaurus.cpp:72: error: âepsMapperâ was not declared in this scope
Phonetisaurus.cpp:72: error: âmakeEpsMapperâ was not declared in this scope
Phonetisaurus.cpp:75: error: âILabelCompareâ was not declared in this scope
Phonetisaurus.cpp:75: error: âStdArcâ was not declared in this scope
Phonetisaurus.cpp:75: error: âicompâ was not declared in this scope
Phonetisaurus.cpp:76: error: âArcSortâ was not declared in this scope
Phonetisaurus.cpp: In member function âvoid Phonetisaurus::loadClusters()â:
Phonetisaurus.cpp:86: error: âisymsâ was not declared in this scope
Phonetisaurus.cpp:87: error: âstringâ was not declared in this scope
Phonetisaurus.cpp:87: error: expected â;â before âsymâ
Phonetisaurus.cpp:89: error: âsymâ was not declared in this scope
Phonetisaurus.cpp:89: error: âtieâ was not declared in this scope
Phonetisaurus.cpp:89: error: âstringâ is not a class or namespace
Phonetisaurus.cpp:91: error: âstrtokâ was not declared in this scope
Phonetisaurus.cpp:92: error: âvectorâ was not declared in this scope
Phonetisaurus.cpp:92: error: âclusterâ was not declared in this scope
Phonetisaurus.cpp:99: error: âclustersâ was not declared in this scope
Phonetisaurus.cpp: At global scope:
Phonetisaurus.cpp:105: error: âStdVectorFstâ does not name a type
Phonetisaurus.cpp:135: error: âStdVectorFstâ does not name a type
Phonetisaurus.cpp: In member function âint 
Phonetisaurus::_compute_thetas(int)â:
Phonetisaurus.cpp:208: error: âthetasâ was not declared in this scope
Phonetisaurus.cpp:210: error: âminâ was not declared in this scope
Phonetisaurus.cpp:217: error: âpowâ was not declared in this scope
Phonetisaurus.cpp: At global scope:
Phonetisaurus.cpp:221: error: expected constructor, destructor, or type 
conversion before â<â token
make: *** [Phonetisaurus.o] Error 1

Original issue reported on code.google.com by burn...@gmail.com on 25 Oct 2013 at 12:20

GoogleCodeExporter commented 9 years ago
If you add the library path to OpenFst to your LD_LIBRARY_PATH, I suspect these 
should resolve.

Original comment by Josef.Ro...@gmail.com on 22 Apr 2014 at 8:22

GoogleCodeExporter commented 9 years ago
Thanks for replying.  We ended up reinstalling openFST in the default location, 
but I'll give the environment-variable method a shot on our test box.  Thanks!

Original comment by burn...@gmail.com on 22 Apr 2014 at 11:16

GoogleCodeExporter commented 9 years ago
yeah sorry about the incredibly belated reply.  i only just figured out how to 
turn on 'all notifications' for the project.  i will close this then.

Original comment by Josef.Ro...@gmail.com on 22 Apr 2014 at 11:30

GoogleCodeExporter commented 9 years ago

Original comment by Josef.Ro...@gmail.com on 22 Apr 2014 at 11:30