How to apply poppler to qt4???
-
HI!!
I'm a beginner qt engineer in korea.
Please help me.
I tried to use poppler by referring to the following site.https://doc.qt.io/archives/qq/qq27-poppler.html
https://forum.qt.io/topic/27172/solved-integrating-poppler-in-qt4/8
https://github.com/shanalily/DeepReader/wiki/Developer-DocumentationI used poppler-0.24.5. and
sudo apt-get install libfontconfig1-dev sudo apt-get install libpoppler-dev sudo apt-get install libpoppler-qt4-dev cd poppler-0.24.5 ./configure make sudo make install
I entered the command.
And I entered the following code in project.pro.INCLUDEPATH += /usr/include/poppler/qt4 LIBS += -L/usr/lib -lpoppler-qt4
Then the following error occurred.
/opt/arm-qte-4.8.5_package/4.5.1/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lpoppler-qt4
The path of my poppler library is "/usr/local/lib", so I changed the path to "/usr/local/lib", but it has no effect.
I don't know what to check anymore.
Please help me
Please tell me if you have any additional needs
I'm sorry that the sentence was awkward with a translator. -
HI!!
I'm a beginner qt engineer in korea.
Please help me.
I tried to use poppler by referring to the following site.https://doc.qt.io/archives/qq/qq27-poppler.html
https://forum.qt.io/topic/27172/solved-integrating-poppler-in-qt4/8
https://github.com/shanalily/DeepReader/wiki/Developer-DocumentationI used poppler-0.24.5. and
sudo apt-get install libfontconfig1-dev sudo apt-get install libpoppler-dev sudo apt-get install libpoppler-qt4-dev cd poppler-0.24.5 ./configure make sudo make install
I entered the command.
And I entered the following code in project.pro.INCLUDEPATH += /usr/include/poppler/qt4 LIBS += -L/usr/lib -lpoppler-qt4
Then the following error occurred.
/opt/arm-qte-4.8.5_package/4.5.1/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lpoppler-qt4
The path of my poppler library is "/usr/local/lib", so I changed the path to "/usr/local/lib", but it has no effect.
I don't know what to check anymore.
Please help me
Please tell me if you have any additional needs
I'm sorry that the sentence was awkward with a translator.@Hwanwoo said in How to apply poppler to qt4???:
The path of my poppler library
What is the name of the poppler library?
Is it really libpoppler-qt4.so?
You use Qt5 not Qt4, right?Also, you installed poppler using apt, then why do compile poppler by yourself?
-
I use Qt4!!
sudo apt-get install libpoppler-qt5-dev ->sudo apt-get install libpoppler-qt4-dev
Sorry....
Several attempts were made.
At first, I tried to configure only, but it didn't work. I used apt and configure together in another example.
This sitehttps://github.com/shanalily/DeepReader/wiki/Developer-Documentation
I've been trying all the ways on the internet for a few days.
-
I use Qt4!!
sudo apt-get install libpoppler-qt5-dev ->sudo apt-get install libpoppler-qt4-dev
Sorry....
Several attempts were made.
At first, I tried to configure only, but it didn't work. I used apt and configure together in another example.
This sitehttps://github.com/shanalily/DeepReader/wiki/Developer-Documentation
I've been trying all the ways on the internet for a few days.
-
@jsulm
I just tried to use it because there is a way to write both in the example.
If you can see only pdf in qt using poppler, it doesn't matter whether you use apt or compile.
I kept trying to compile, but it wasn't, so I just tried apt. -
@Hwanwoo
If I were you I would see if I could still find an existing downloadablesudo apt-get install libpoppler-qt4-dev
somewhere on the web which can be installed on your distro. Unless you know that is not available.@JonB
I'm sorry, but I didn't understand what you meant.sudo apt-get install libpoppler-qt4-dev Reading package lists... Done Building dependency tree Reading state information... Done libpoppler-qt4-dev is already the newest version. The following package was automatically installed and is no longer required: thunderbird-globalmenu Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 444 not upgraded.
When I apt-get, I get a message like this.
I don't know what to do anymore. -
@JonB
I'm sorry, but I didn't understand what you meant.sudo apt-get install libpoppler-qt4-dev Reading package lists... Done Building dependency tree Reading state information... Done libpoppler-qt4-dev is already the newest version. The following package was automatically installed and is no longer required: thunderbird-globalmenu Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 444 not upgraded.
When I apt-get, I get a message like this.
I don't know what to do anymore.@Hwanwoo I already asked this question before, but you did not answer it: "Is it really libpoppler-qt4.so?"
So, again: what is the exact name of poppler-qt4 lib?Also, I see that you are building for ARM. Are you, by any chance, doing cross-compilation?
-
@JonB
I'm sorry, but I didn't understand what you meant.sudo apt-get install libpoppler-qt4-dev Reading package lists... Done Building dependency tree Reading state information... Done libpoppler-qt4-dev is already the newest version. The following package was automatically installed and is no longer required: thunderbird-globalmenu Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 444 not upgraded.
When I apt-get, I get a message like this.
I don't know what to do anymore.@Hwanwoo
For my part, from reading what you had written I was not clear that you had succeeded in gettinglibpoppler-qt4-dev
. It is not available for my distro. However, now I see that you have done so. In which case, like @jsulm I don't understand why you are not trying to get that working for you instead of deciding you need to build it.In any case, please answer @jsulm's questions.
-
@Hwanwoo I already asked this question before, but you did not answer it: "Is it really libpoppler-qt4.so?"
So, again: what is the exact name of poppler-qt4 lib?Also, I see that you are building for ARM. Are you, by any chance, doing cross-compilation?
I'm sorry .
Previously, I didn't understand the question properly.
libpoppler-qt4.so is correct.
Is poppler-0.41.0.tar.xz correct for the poppler library name?
I found that I can only output PDF using configure on the desktop.
As you said, I had to do cross-compile for arm.
I should have looked up a lot and asked questions.
I'm sorry -
I'm sorry .
Previously, I didn't understand the question properly.
libpoppler-qt4.so is correct.
Is poppler-0.41.0.tar.xz correct for the poppler library name?
I found that I can only output PDF using configure on the desktop.
As you said, I had to do cross-compile for arm.
I should have looked up a lot and asked questions.
I'm sorry@Hwanwoo said in How to apply poppler to qt4???:
Is poppler-0.41.0.tar.xz correct for the poppler library name?
This is not the name of Poppler library file but of the Poppler archive...
-
@Hwanwoo said in How to apply poppler to qt4???:
Is poppler-0.41.0.tar.xz correct for the poppler library name?
This is not the name of Poppler library file but of the Poppler archive...
-
@jsulm
Is this a file?
./configure
makeThis is the file created using the command above.
I can use pdf in qt in ubuntu environment, but not in target board.
So I am looking for arm cross compile.@Hwanwoo said in How to apply poppler to qt4???:
So I am looking for arm cross compile
Thzen you need to cross-compile that lib for your device.
-
@Hwanwoo said in How to apply poppler to qt4???:
So I am looking for arm cross compile
Thzen you need to cross-compile that lib for your device.