apertium / lttoolbox

Finite state compiler, processor and helper tools used by apertium
http://wiki.apertium.org/wiki/Lttoolbox
GNU General Public License v2.0
18 stars 22 forks source link

configure fails because of missing utf8.h #142

Closed mortenivar closed 2 years ago

mortenivar commented 2 years ago

During the ./configure phase, I got

checking for utf8.h... no
configure: error: You don't have utfcpp installed

The docs don't mention utfcpp as a dependency. After installing it, I needed to do

export CPPFLAGS=-I/usr/include/utf8cpp/

TinoDidriksen commented 2 years ago

Yup. Arch is the odd one out since it puts utfcpp in an unexpected place. This should indeed be fixed.

TinoDidriksen commented 2 years ago

Fixed. Also, README has mentioned utfcpp for almost a year.

mortenivar commented 2 years ago

Tino Didriksen @.***> wrote:

Fixed. Also, README has mentioned utfcpp for almost a year.

Okay, somehow I missed it.

ZJaume commented 2 years ago

It seems that cmake isn't checking for utfcpp either. I was having this error in the cmake branch whan running make, insalling libutfcpp-dev in Ubuntu solved it:

[  2%] Building CXX object lttoolbox/CMakeFiles/lttoolbox.dir/acx.cc.o
[  4%] Building CXX object lttoolbox/CMakeFiles/lttoolbox.dir/att_compiler.cc.o
[  7%] Building CXX object lttoolbox/CMakeFiles/lttoolbox.dir/alphabet.cc.o
In file included from /work/jzaragoza/forced-terminology/tools/lttoolbox/lttoolbox/alphabet.h:26:0,
                 from /work/jzaragoza/forced-terminology/tools/lttoolbox/lttoolbox/alphabet.cc:17:
/work/jzaragoza/forced-terminology/tools/lttoolbox/lttoolbox/ustring.h:25:10: fatal error: utf8.h: No such file or directory
 #include <utf8.h>
          ^~~~~~~~
compilation terminated.
In file included from /work/jzaragoza/forced-terminology/tools/lttoolbox/lttoolbox/att_compiler.h:26:0,
                 from /work/jzaragoza/forced-terminology/tools/lttoolbox/lttoolbox/att_compiler.cc:18:
/work/jzaragoza/forced-terminology/tools/lttoolbox/lttoolbox/ustring.h:25:10: fatal error: utf8.h: No such file or directory
 #include <utf8.h>
          ^~~~~~~~
compilation terminated.
In file included from /work/jzaragoza/forced-terminology/tools/lttoolbox/lttoolbox/xml_walk_util.h:4:0,
                 from /work/jzaragoza/forced-terminology/tools/lttoolbox/lttoolbox/acx.cc:18:
/work/jzaragoza/forced-terminology/tools/lttoolbox/lttoolbox/ustring.h:25:10: fatal error: utf8.h: No such file or directory
 #include <utf8.h>
          ^~~~~~~~
compilation terminated.
lttoolbox/CMakeFiles/lttoolbox.dir/build.make:75: recipe for target 'lttoolbox/CMakeFiles/lttoolbox.dir/acx.cc.o' failed
make[2]: *** [lttoolbox/CMakeFiles/lttoolbox.dir/acx.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
lttoolbox/CMakeFiles/lttoolbox.dir/build.make:103: recipe for target 'lttoolbox/CMakeFiles/lttoolbox.dir/att_compiler.cc.o' failed
make[2]: *** [lttoolbox/CMakeFiles/lttoolbox.dir/att_compiler.cc.o] Error 1
lttoolbox/CMakeFiles/lttoolbox.dir/build.make:89: recipe for target 'lttoolbox/CMakeFiles/lttoolbox.dir/alphabet.cc.o' failed
make[2]: *** [lttoolbox/CMakeFiles/lttoolbox.dir/alphabet.cc.o] Error 1
CMakeFiles/Makefile2:241: recipe for target 'lttoolbox/CMakeFiles/lttoolbox.dir/all' failed
make[1]: *** [lttoolbox/CMakeFiles/lttoolbox.dir/all] Error 2
Makefile:145: recipe for target 'all' failed
make: *** [all] Error 2