Comments (6)
For future reference, adding -DUCHAR_TYPE=wchar_t
would solve this. For details read the umachine.h
.
/**
- \var UChar
- The base type for UTF-16 code units and pointers.
- Unsigned 16-bit integer.
- Starting with ICU 59, C++ API uses char16_t directly, while C API continues to use UChar.
- UChar is configurable by defining the macro UCHAR_TYPE
- on the preprocessor or compiler command line:
- -DUCHAR_TYPE=uint16_t or -DUCHAR_TYPE=wchar_t (if U_SIZEOF_WCHAR_T==2) etc.
- (The UCHAR_TYPE can also be #defined earlier in this file, for outside the ICU library code.)
- This is for transitional use from application code that uses uint16_t or wchar_t for UTF-16.
- The default is UChar=char16_t.
- C++11 defines char16_t as bit-compatible with uint16_t, but as a distinct type.
...
from pdfalto.
Hello,
Concerning the first part, it actually depends on the gcc version you have (and the value of its include parameter), the update have solved the issue but it was not the reason, so yes maybe it's related to icu. fyi the c++ standard is updated to 11 to support last needed changes.
As I commented in XPDF repository, libpaper is not mandatory.
from pdfalto.
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 8.1.0 (GCC)
I'm no C++ expert, but as far as I understand char16_t
appeared as a type in C++11, and icu 61 seems to use it. So unless you specify that this shouldn't build with icu 61, then pdfalto also needs C++11, which is what the fix I was suggesting does. What other problem could it be?
from pdfalto.
Ok that's right, because you've installed icu 61 you needed c++11 standard, anyway it's updated to use C++11 standard since it was needed for another purpose for pdfalto.
from pdfalto.
Hello,
Could you close this issue please ?
from pdfalto.
Thanks for the fix!
from pdfalto.
Related Issues (20)
- Is there an option to output ALTO XML to STDOUT? HOT 3
- heap-buffer-overflow found?
- empty image / svg
- compile error on RHEL 8.6 (Ootpa): /usr/bin/ld: cannot find -lstdc++ HOT 1
- Error case with invalid characters mapping
- Segmentation fault with pdf with comments
- Soft hyphens omitted HOT 3
- PDF to XML conversion time out for some files in server mode but run the pdfalto_server cmd in shell is fast and returns ok. HOT 1
- xpdf version 4.04
- ARM binaries for the Apple M1 HOT 3
- Cannot run pdfalto HOT 5
- PDF cause a crash with annotation option
- Building on arm64 Ubuntu Server 22.04 fails
- Building for Apple Silicon failed due to missing directories (with manual fix)
- Wrong characters / difference between extraction and display HOT 1
- [Suggestion] Reporting the byte location of images HOT 2
- Compilation error on arch linux HOT 1
- Error case, missing digits HOT 4
- Error case: double column, and line numbers
- No rule to make target `libs/image/png/mac/arm64/libpng.a'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdfalto.