clbr / flaxpdf Goto Github PK
View Code? Open in Web Editor NEWFlaxPDF is a fast, light, multithreaded PDF reader.
License: GNU General Public License v3.0
FlaxPDF is a fast, light, multithreaded PDF reader.
License: GNU General Public License v3.0
error below fixed with:
sed -i 's/getCString/c_str/' src/view.cpp
g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti -DHAVE_CONFIG_H -I. -DDATADIR="/usr/local/share/flaxpdf" -DLOCALEDIR="/usr/local/share/locale" -fopenmp -pthread -isystem /usr/local/include -fvisibility-inlines-hidden -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -isystem /usr/local/include/poppler -isystem /usr/local/include -Wall -Wextra -ffunction-sections -fdata-sections -MT view.o -MD -MP -MF .deps/view.Tpo -c -o view.o view.cpp
view.cpp: In member function 'virtual int pdfview::handle(int)':
view.cpp:397:36: error: 'class GooString' has no member named 'getCString'
397 | const char * const cstr = str->getCString();
| ^~~~~~~~~~
make[2]: *** [Makefile:437: view.o] Error 1
make[2]: Leaving directory '/usr/src/flaxpdf/src'
I suspect there will be several problems, but here's one:
'''
g++ -flto -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -fno-exceptions -fno-rtti -DHAVE_CONFIG_H -I. -DDATADIR="/usr/local/share/flaxpdf" -DLOCALEDIR="/usr/local/share/locale" -isystem /usr/local/include -fvisibility-inlines-hidden -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -isystem /usr/local/include/poppler -isystem /usr/local/include -Wall -Wextra -ffunction-sections -fdata-sections -MT loadfile.o -MD -MP -MF .deps/loadfile.Tpo -c -o loadfile.o loadfile.cpp
loadfile.cpp:193: warning: ignoring '#pragma omp parallel' [-Wunknown-pragmas]
193 | #pragma omp parallel for schedule(guided)
|
loadfile.cpp:221: warning: ignoring '#pragma omp parallel' [-Wunknown-pragmas]
221 | #pragma omp parallel for schedule(guided)
|
loadfile.cpp:229: warning: ignoring '#pragma omp parallel' [-Wunknown-pragmas]
229 | #pragma omp parallel for schedule(guided)
|
loadfile.cpp: In function 'void loadfile(const char*)':
loadfile.cpp:282:42: error: no matching function for call to 'PDFDoc::PDFDoc(GooString*)'
282 | PDFDoc *pdf = new PDFDoc(&gooname);
'''
Is it a reason it requires version >= 0.31? I changed in configure to require >=0.26 and it compiled and works on F21.
Attempting to build from the AUR on with arch yeilds:
loadfile.cpp: In function ‘void loadfile(const char*)’:
loadfile.cpp:334:22: error: no match for ‘operator=’ (operand types are ‘std::unique_ptr<GlobalParams>’ and ‘GlobalParams*’)
334 | globalParams = new GlobalParams;
| ^~~~~~~~~~~~
In file included from /usr/include/c++/10.2.0/memory:83,
from /usr/include/poppler/PopplerCache.h:18,
from /usr/include/poppler/XRef.h:40,
from /usr/include/poppler/PDFDoc.h:50,
from main.h:41,
from loadfile.cpp:17:
/usr/include/c++/10.2.0/bits/unique_ptr.h:371:19: note: candidate: ‘std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Tp, _Dp>&&) [with _Tp = GlobalParams; _Dp = std::default_delete<GlobalParams>]’
371 | unique_ptr& operator=(unique_ptr&&) = default;
| ^~~~~~~~
/usr/include/c++/10.2.0/bits/unique_ptr.h:371:29: note: no known conversion for argument 1 from ‘GlobalParams*’ to ‘std::unique_ptr<GlobalParams>&&’
371 | unique_ptr& operator=(unique_ptr&&) = default;
| ^~~~~~~~~~~~
/usr/include/c++/10.2.0/bits/unique_ptr.h:386:2: note: candidate: ‘template<class _Up, class _Ep> typename std::enable_if<std::__and_<std::__and_<std::is_convertible<typename std::unique_ptr<_Up, _Ep>::pointer, typename std::__uniq_ptr_impl<_Tp, _Dp>::pointer>, std::__not_<std::is_array<_Up> > >, std::is_assignable<_T2&, _U2&&> >::value, std::unique_ptr<_Tp, _Dp>&>::type std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Up, _Ep>&&) [with _Up = _Up; _Ep = _Ep; _Tp = GlobalParams; _Dp = std::default_delete<GlobalParams>]’
386 | operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
| ^~~~~~~~
/usr/include/c++/10.2.0/bits/unique_ptr.h:386:2: note: template argument deduction/substitution failed:
loadfile.cpp:334:22: note: mismatched types ‘std::unique_ptr<_Tp, _Dp>’ and ‘GlobalParams*’
334 | globalParams = new GlobalParams;
| ^~~~~~~~~~~~
In file included from /usr/include/c++/10.2.0/memory:83,
from /usr/include/poppler/PopplerCache.h:18,
from /usr/include/poppler/XRef.h:40,
from /usr/include/poppler/PDFDoc.h:50,
from main.h:41,
from loadfile.cpp:17:
/usr/include/c++/10.2.0/bits/unique_ptr.h:395:7: note: candidate: ‘std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::nullptr_t) [with _Tp = GlobalParams; _Dp = std::default_delete<GlobalParams>; std::nullptr_t = std::nullptr_t]’
395 | operator=(nullptr_t) noexcept
| ^~~~~~~~
/usr/include/c++/10.2.0/bits/unique_ptr.h:395:17: note: no known conversion for argument 1 from ‘GlobalParams*’ to ‘std::nullptr_t’
395 | operator=(nullptr_t) noexcept
| ^~~~~~~~~
make[2]: *** [Makefile:438: loadfile.o] Error 1```
./configure stops at:
"Checking for fltk-config13... no
Checking for fltk-config... no
Configure: error: fltk-config not found"
Fltk 1.3.3 is installed.
Any ideas?
Hi, I REALLY like FLTK apps 😄
It would be really nice to have an AppImage of this available for people on various distros to simply try out (I am sure it would be quite small) and then decide if they want to build it or nominate it to make it into some distro.
Flatpak and Snap packages are disponibles for many distributions. Endless OS is a Linux distribution why use only Flatpak packages. Please make a Flatpak package.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.