Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. view PDF file using Poppler
Forum Updated to NodeBB v4.3 + New Features

view PDF file using Poppler

Scheduled Pinned Locked Moved 3rd Party Software
popplerpdffreetypejpeg
3 Posts 2 Posters 2.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Massi
    wrote on 31 Aug 2015, 14:47 last edited by Massi
    #1

    Dear Qt forum,

    I m trying to use poppler lib to view or display PDF file within my GUI. I used CMake.exe and tried to build it under vs2013 win64 + Qt5. I built the following dependencies without any errors

    • Cairo
    • Freetype
    • Jpeg
    • OpenJpeg
    • zlib
    • PNG

    I linked the Release/Debug & lib directories in CMake, but when it comes to build poppler in vs2013, I got the many errors, here's one of them:
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(15): error C2894: templates cannot be declared to have 'C' linkage
    3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(20): error C2894: templates cannot be declared to have 'C' linkage
    3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(32): error C2894: templates cannot be declared to have 'C' linkage
    3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(51): error C2894: templates cannot be declared to have 'C' linkage
    3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(57): error C2894: templates cannot be declared to have 'C' linkage
    3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(64): error C2894: templates cannot be declared to have 'C' linkage
    3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(70): error C2894: templates cannot be declared to have 'C' linkage
    3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(77): error C2894: templates cannot be declared to have 'C' linkage
    3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(85): error C2894: templates cannot be declared to have 'C' linkage
    3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(93): error C2894: templates cannot be declared to have 'C' linkage
    3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(99): error C2894: templates cannot be declared to have 'C' linkage
    3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(106): error C2894: templates cannot be declared to have 'C' linkage
    3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(112): error C2894: templates cannot be declared to have 'C' linkage
    3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(118): error C2894: templates cannot be declared to have 'C' linkage
    3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(124): error C2894: templates cannot be declared to have 'C' linkage

    Is there any other way to view PDF file in your GUI?
    I would appreciate any help or guidance from you!

    Regards,

    Software Design Engineer at Ford - Canada

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 31 Aug 2015, 20:35 last edited by
      #2

      Hi,

      Might be a silly question but did you saw the README.windows ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply 1 Sept 2015, 22:18
      0
      • S SGaist
        31 Aug 2015, 20:35

        Hi,

        Might be a silly question but did you saw the README.windows ?

        M Offline
        M Offline
        Massi
        wrote on 1 Sept 2015, 22:18 last edited by Massi 9 Jan 2015, 22:21
        #3

        @SGaist
        Hi! yes I have checked this before but I dropped it, I got many errors because I don't know how to link the libraries in the command prompt

        • 'nmake -f makefile.vc TARGET=rel'

        And the link does not contain Qt5 . When I downloaded the latest release of poppler, it didn't come with makefile.vc file. So I decided to go with CMake GUI.

        I'm not comfortable with makefiles, I prefer to use CMake GUI (easy to include lib & dir) since I already built zlib, freetype and libjpeg libraries in vs2013 win64

        Regards,

        Software Design Engineer at Ford - Canada

        1 Reply Last reply
        0

        3/3

        1 Sept 2015, 22:18

        • Login

        • Login or register to search.
        3 out of 3
        • First post
          3/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved