From: Ben v. K. <bva...@gm...> - 2005-10-10 23:49:31
|
Hi, This problem has caused confusion for a few developers now... Currently the clucene-config.h is built in the root directory, but then when installed, it is installed in /CLucene. What I am considering doing is this: Make the clucene-config.h file be generated in src/Clucene/clucene-config.h= . That way it is in the same relative place as when it is installed. Will that break to many people's builds? Will everyone be happy with that? ben On 10/11/05, Ben van Klinken <bva...@gm...> wrote: > You should also include the directory where clucene-config.h is > located, usually this: > -I/home/turchi/clucene-0.9.8/ > > ben > > On 10/11/05, Marco Turchi <tu...@di...> wrote: > > Hi, > > I'm trying to embedded clucene inside my software, but I've a lot of > > problems when I compile all. > > > > I include in my software: > > #include "CLucene/StdHeader.h" > > #include "CLucene.h" > > > > and into the makefile: > > -I/home/turchi/clucene-0.9.8/src/ > > > > /home/turchi/clucene-0.9.8/src/.libs/libclucene.so > > > > when I compile > > g++ -I/usr/include/mysql -I/home/turchi/clucene-0.9.8/src/ > > -DVERBOSE=3D2 -Wall -g -c construct.cc > > > > I obtain: > > In file included from > > /home/turchi/clucene-0.9.8/src/CLucene/config/compiler.h:13, > > from /home/turchi/clucene-0.9.8/src/CLucene/StdHeader.= h:11, > > from construct.cc:8: > > /home/turchi/clucene-0.9.8/src/CLucene/config/CompilerGcc.h:6:53: > > clucene-config.h: No such file or directory > > In file included from > > /home/turchi/clucene-0.9.8/src/CLucene/config/compiler.h:13, > > from /home/turchi/clucene-0.9.8/src/CLucene/StdHeader.= h:11, > > from construct.cc:8: > > /home/turchi/clucene-0.9.8/src/CLucene/config/CompilerGcc.h:49: > > redeclaration > > of C++ built-in type `wchar_t' > > In file included from construct.cc:8: > > /home/turchi/clucene-0.9.8/src/CLucene/StdHeader.h:57:3: #error "Neithe= r > > unistd.h or (io.h & direct.h) were available" > > /home/turchi/clucene-0.9.8/src/CLucene/StdHeader.h:65:3: #error "Haven'= t > > implemented platforms with no sys/stat.h" > > /home/turchi/clucene-0.9.8/src/CLucene/StdHeader.h:71:3: #error "CLucen= e > > can compile, but some extras may not work" > > /home/turchi/clucene-0.9.8/src/CLucene/StdHeader.h:77:3: #error "CLucen= e > > can't compile without <math.h>" > > /home/turchi/clucene-0.9.8/src/CLucene/StdHeader.h:83:3: #error "CLucen= e > > can't compile without the map header" > > /home/turchi/clucene-0.9.8/src/CLucene/StdHeader.h:89:3: #error "CLucen= e > > can't compile without the list header" > > /home/turchi/clucene-0.9.8/src/CLucene/StdHeader.h:95:3: #error "CLucen= e > > can't compile without the set header" > > /home/turchi/clucene-0.9.8/src/CLucene/StdHeader.h:101:3: #error > > "CLucene can't compile without the vector header" > > /home/turchi/clucene-0.9.8/src/CLucene/StdHeader.h:121:3: #error "Can't > > compile clucene without <algorithm>" > > /home/turchi/clucene-0.9.8/src/CLucene/StdHeader.h:127:3: #error "Can't > > compile clucene without <functional>" > > /home/turchi/clucene-0.9.8/src/CLucene/StdHeader.h:131:3: #error > > "CLucene can't compile without printf or snprintf, replacements have no= t > > been implemented" > > /home/turchi/clucene-0.9.8/src/CLucene/StdHeader.h:163:3: #error > > "Haven't implemented platforms with no errno.h" > > /home/turchi/clucene-0.9.8/src/CLucene/StdHeader.h:169:3: #error > > "Haven't implemented platforms with no fcntl.h" > > In file included from > > /home/turchi/clucene-0.9.8/src/CLucene/StdHeader.h:182, > > from construct.cc:8: > > /home/turchi/clucene-0.9.8/src/CLucene/config/compiler.h:157: > > conflicting types > > for `typedef double float_t' > > /usr/include/bits/mathdef.h:29: previous declaration as `typedef long > > double > > float_t' > > > > and so on.... > > > > The clucene demo works without problem. > > > > I'm sure that I'm forgetting something . > > Can you help me? > > > > sorry > > thank you > > > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: > > Power Architecture Resource Center: Free content, downloads, discussion= s, > > and more. http://solutions.newsforge.com/ibmarch.tmpl > > _______________________________________________ > > CLucene-developers mailing list > > CLu...@li... > > https://lists.sourceforge.net/lists/listinfo/clucene-developers > > > |