| 54 | Nos abrirá el entorno gráfico de {{{qpdfview}}} pero si intetamos abrir un fichero {{{.pdf}} nos muestra dos errores: |
| 55 | |
| 56 | IMAGEN 1 |
| 57 | |
| 58 | IMAGEN 2 |
| 59 | |
| 60 | A su vez, en el shell muestra el error: |
| 61 | |
| 62 | {{{ |
| 63 | Could not load plug-in in first attempt: "/home/debian/tmp/qpdfview-0.4.16/libqpdfview_pdf.so" |
| 64 | "Cannot load library /home/debian/tmp/qpdfview-0.4.16/libqpdfview_pdf.so: (libpoppler-qt4.so.4: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio)" |
| 65 | Could not load plug-in in second attempt: "" |
| 66 | "No se ha encontrado la biblioteca compartida." |
| 67 | }}} |
| 68 | |
| 69 | Entonces lanzamos el siguiente comando: |
| 70 | |
| 71 | {{{ |
| 72 | qpdfview-0.4.16$ export LD_LIBRARY_PATH=/usr/local/lib |
| 73 | }}} |
| 74 | |
| 75 | Levantamos nuevamente qpdfview con: |
| 76 | |
| 77 | {{{ |
| 78 | qpdfview-0.4.16$ ./qpdfview |
| 79 | }}} |
| 80 | |
| 81 | Intentamos abrir un fichero {{{.pdf}}} |
| 82 | |
| 83 | IMAGEN 1 |
| 84 | |
56 | | '''Trabajando con qpdfview-sign (nuestra versión) |
57 | | |
58 | | Luego empezamos a editar los ficheros para que qpdview encuente el poppler-0.47.0 donde le indiquemos. |
59 | | |
60 | | '''Primera corrida |
61 | | |
62 | | - Le indicaremos que busque las librerías en nuestro directorio de poppler descargado |
63 | | |
64 | | En {{{application.pro}}} |
65 | | |
66 | | {{{ |
67 | | 66 sources/main.cpp |
68 | | 67 |
69 | | 68 LIBS += -L/home/debian/Pruebas/poppler-0.47.0/poppler/.libs/ -lpoppler |
70 | | }}} |
71 | | |
72 | | {{{ |
73 | | 278 INCLUDEPATH += /home/pbuitrago/Cenditel/Seguridad/POA-2016/programas/poppler-0.45.0 |
74 | | 279 INCLUDEPATH += /home/pbuitrago/Cenditel/Seguridad/POA-2016/programas/poppler-0.45.0/poppler |
75 | | 280 INCLUDEPATH += /home/debian/Pruebas/poppler-0.47.0/ |
76 | | 281 INCLUDEPATH += /home/debian/Pruebas/poppler-0.47.0/poppler/ |
77 | | }}} |
78 | | |
79 | | '''Segunda Corrida |
80 | | |
81 | | - Le indicaremos que busque las librerías en nuestro poppler instalado en el sistema |
82 | | |
83 | | En {{{application.pro}}} |
84 | | |
85 | | {{{ |
86 | | 68 LIBS += -L/home/debian/Pruebas/poppler-0.47.0/poppler/.libs/ -lpoppler |
87 | | 68 #LIBS += -L/home/debian/Pruebas/poppler-0.47.0/poppler/.libs/ -lpoppler |
88 | | 69 LIBS += -L/usr/local/lib -lpoppler |
89 | | }}} |
90 | | |
91 | | {{{ |
92 | | 280 INCLUDEPATH += /home/debian/Pruebas/poppler-0.47.0/ |
93 | | 281 INCLUDEPATH += /home/debian/Pruebas/poppler-0.47.0/poppler/ |
94 | | 281 #INCLUDEPATH += /home/debian/Pruebas/poppler-0.47.0/ |
95 | | 282 INCLUDEPATH += /usr/local/include/poppler |
96 | | 283 #INCLUDEPATH += /home/debian/Pruebas/poppler-0.47.0/poppler/ |
97 | | 284 #INCLUDEPATH += /home/debian/Pruebas/poppler-0.47.0/poppler/ |
98 | | }}} |
99 | | |
100 | | Copiar el directorio {{{/goo}}} que está en {{{poppler-0.47.0/goo}}} a {{{/usr/local/include/poppler}}} |
101 | | |
102 | | Con las nuevas rutas establecidas compilamos y construimos qpdfview... |
103 | | |
104 | | Ejecutamos el script |
105 | | |
106 | | {{{ |
107 | | $ ./qpdfview |
108 | | ./qpdfview: error while loading shared libraries: libpoppler.so.63: cannot open shared object file: No such file or directory |
109 | | }}} |
110 | | |
111 | | '''Error al cargar las bibliotecas compartidas... |
112 | | |
113 | | En algun momento se usó: |
114 | | |
115 | | {{{ |
116 | | $ export LD_LIBRARY_PATH=/home/debian/Pruebas/poppler-0.47.0/poppler/.libs:$LD_LIBRARY_PATH |
117 | | }}} |
118 | | |
119 | | y |
120 | | |
121 | | {{{ |
122 | | $ export LD_LIBRARY_PATH=/usr/local/lib |
123 | | }}} |
| 87 | IMAGEN 2 |