Code Monkey home page Code Monkey logo

flaxpdf's People

Contributors

clbr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

turgu1 frame3d

flaxpdf's Issues

Build fails with poppler-0.74.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'

Build fails against recent versions of poppler

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);
'''

poppler version

Is it a reason it requires version >= 0.31? I changed in configure to require >=0.26 and it compiled and works on F21.

Build fails on Arch linux

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```

Installation issue

./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?

AppImage

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.

Please make a Flatpak

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.