Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Polish
  4. Problem z dodaniem Popplera
Forum Updated to NodeBB v4.3 + New Features

Problem z dodaniem Popplera

Scheduled Pinned Locked Moved Solved Polish
3 Posts 2 Posters 6.3k Views
  • 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.
  • A Offline
    A Offline
    Axis793
    wrote on 5 Feb 2022, 07:09 last edited by
    #1

    Dzień dobry. Aktualnie pracuje nad projektem aplikacji do wyświetlania plików pdf. Zdecydowałem się użyć do tego celu Popplera. Pobrałem go z tej strony: https://blog.alivate.com.au/poppler-windows/ w wersji poppler-0.68.0_x86 oraz dodałem do swojego projektu za pomocą:

    1083d2c5-0b0e-45ed-b7ad-f3cd963352e4-image.png

    Po zbuildowaniu qmake udało się dodać include prawidłowo a także napisać prostą linie kodu:

    43225121-06d5-46fe-ab47-cb1fdad66cce-image.png

    Przy próbie zbuildowania projektu pojawił się następujący błąd:

    mview.obj:-1: error: LNK2019: nierozpoznany symbol zewn©trzny "__declspec(dllimport) public: static class poppler::document * __cdecl poppler::document::load_from_file(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?load_from_file@document@poppler@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00@Z) przywoˆany w funkcji "public: void __cdecl MVIEW::OpenDocument(void)" (?OpenDocument@MVIEW@@QEAAXXZ)
    

    Nie bardzo wiem czego on dotyczy dlatego, że wszystkie pliki potrzebne do korzystania z Popplera wydają się być dodane prawidłowo. Jeżeli ma ktoś jakieś pomysły co jest przyczyną tego błędu będę bardzo wdzięczny za pomoc.
    Pozdrawiam

    J 1 Reply Last reply 7 Feb 2022, 07:00
    0
    • A Axis793
      5 Feb 2022, 07:09

      Dzień dobry. Aktualnie pracuje nad projektem aplikacji do wyświetlania plików pdf. Zdecydowałem się użyć do tego celu Popplera. Pobrałem go z tej strony: https://blog.alivate.com.au/poppler-windows/ w wersji poppler-0.68.0_x86 oraz dodałem do swojego projektu za pomocą:

      1083d2c5-0b0e-45ed-b7ad-f3cd963352e4-image.png

      Po zbuildowaniu qmake udało się dodać include prawidłowo a także napisać prostą linie kodu:

      43225121-06d5-46fe-ab47-cb1fdad66cce-image.png

      Przy próbie zbuildowania projektu pojawił się następujący błąd:

      mview.obj:-1: error: LNK2019: nierozpoznany symbol zewn©trzny "__declspec(dllimport) public: static class poppler::document * __cdecl poppler::document::load_from_file(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?load_from_file@document@poppler@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00@Z) przywoˆany w funkcji "public: void __cdecl MVIEW::OpenDocument(void)" (?OpenDocument@MVIEW@@QEAAXXZ)
      

      Nie bardzo wiem czego on dotyczy dlatego, że wszystkie pliki potrzebne do korzystania z Popplera wydają się być dodane prawidłowo. Jeżeli ma ktoś jakieś pomysły co jest przyczyną tego błędu będę bardzo wdzięczny za pomoc.
      Pozdrawiam

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 7 Feb 2022, 07:00 last edited by
      #2

      @Axis793 Please post text, not pictures!

      LIBS += P:/.../lib/LIB_NAME.lib
      

      See https://doc.qt.io/qt-5/qmake-variable-reference.html#libs

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Axis793
        wrote on 26 Feb 2022, 07:28 last edited by
        #3

        Hello. Thanks for reply. I’m sorry. It was my first post and I wanted to show as much as possible of code to described my problem as good as I can. I followed your advise and my problem is solved!.

        Sorry again and have a great day!

        1 Reply Last reply
        1

        • Login

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