Re: [Okular-devel] Building Okular

2014-01-22 Thread John

On 12/25/2013 08:53 PM, Firiuz Abdillah wrote:

On 12/25/13, Yuri Chornoivan  wrote:

 Wed, 25 Dec 2013 14:14:34 +0200, Firiuz Abdillah
:


Hi,
I'm going to learn about Okular. This is my first time building KDE
Apps, especially using cmake. Steps I have taken:
1. I downloaded source from annongit latest commit and also from
launchpad mature source package of Okular.
2. I goto src/build and run "cmake .." but failed on file
audioplayer.cpp (displaying moc file of the same name).

Well, I want to ask, what should I set up before build KDE apps on my
machine (Ubuntu 13.10 64bit)?

Need guide, all help appreciated.

Hi,

It seems that Okular is not compilable with Qt 5/KDE Frameworks yet (you
can help to make it real).

Please install Qt 4 development packages and compile Okular with them.

Hope this helps.

Best regards,
Yuri


@Yuri : Good, it's compiled! Thanks for the help. It's true, okular
compiled properly using qt4.
@Albert : (I'm not receiving your answer email but I saw it on
okular-dev-archieve) Yes, I try that way. Thanks for the help.

For everyone want to know. This is what I did.
1. Install libqt4-dev : sudo apt-get install libqt4-dev
2. export PATH=/usr/lib/x86_64-linux-gnu/qt4/bin:$PATH
Get qt4 path from qmake-qt4 -query
3. cmake .. -DQT_QMAKE_EXECUTABLE=/usr/lib/x86_64-linux-gnu/qt4/bin/qmake
4. make
5. sudo checkinstall

Regard,

Abdillah
--


Thank you all for this information.

1. I had to install "libqjson-dev" and "libqjson-dbg", using sudo 
apt-get install.
2. I also had to explicitly call ./CMakeLists.txt in the cmake command: 
cmake .. -DQT_QMAKE_EXECUTABLE=/usr/lib/x86_64-linux-gnu/qt4/bin/qmake 
./CMakeLists.txt

3. Then make. It finally built.

Cheers,

John
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 330298] New: okular cannot display eps build with gp2eps images in dvi file

2014-01-22 Thread tomas
https://bugs.kde.org/show_bug.cgi?id=330298

Bug ID: 330298
   Summary: okular cannot display eps build with gp2eps images in
dvi file
Classification: Unclassified
   Product: okular
   Version: unspecified
  Platform: Mint (Ubuntu based)
OS: Linux
Status: UNCONFIRMED
  Severity: minor
  Priority: NOR
 Component: DVI backend
  Assignee: okular-devel@kde.org
  Reporter: tguoz...@gmail.com

When open with okular dvi files, compiled with latex, from documents including
.eps figures created with the gnuplotutility gp2eps, I cannot see the images. 

Reproducible: Always

Steps to Reproduce:
1. make any eps with the utility gp2eps http://gnuplotutils.googlecode.com/
2. insert in a .tex file and compile with latex
3. open the .dvi file with okular
Actual Results:  
 Only text within the document is displayed

Expected Results:  
Display text and the image

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 330298] okular cannot display eps build with gp2eps images in dvi file

2014-01-22 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=330298

Albert Astals Cid  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEEDSINFO
 CC||aa...@kde.org
 Resolution|--- |WAITINGFORINFO

--- Comment #1 from Albert Astals Cid  ---
Can you please attach such a file?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 111410: Selection tool: copy/extract as vector graphic by calling "pdftocairo"

2014-01-22 Thread Thomas Fischer

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/111410/
---

(Updated Jan. 22, 2014, 8:39 p.m.)


Review request for Okular.


Changes
---

Patch uses a class derived from KJob to encapsulate potentially long-running 
calls to pdftocairo.

Code compiles and starts, but when opening a .pdf file, Okular crashes with the 
following output on the command line (program was installed in /tmp/kde-usr):

ASSERT failure in QWidget: "Widgets must be created in the GUI thread.", file 
kernel/qwidget.cpp, line 1301
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = okular path = /tmp/kde-usr/bin pid = 14074
KCrash: Arguments: /tmp/kde-usr/bin/okular --nocrashhandler /home/tf/test.pdf 
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/tf/.kde4/socket-corvus/kdeinit4__0
okular: Fatal IO error: client killed


Repository: okular


Description
---

This patch implements the feature request of bug 321350: if a PDF file is 
viewed, the selection tool offers the new extraction method "vector" which 
allows to save to a file (PDF, SVG, EPS, PostScript). The crop operation is 
performed by calling "pdftocairo" with matching arguments. The resulting file 
contains the original PDF file's content without rendering it to a pixmap.

I am not sure if calling an external program is an acceptable solution for this 
problem. However, it is tested if the program is available before showing the 
new option. Alternatively, the code of pdftocairo (as part of poppler) would 
had to be copied and integrated into Okular increasing the solution's 
complexity. I am not aware of a similar solution available using poppler-qt4 
only. Maybe using a QPrinter printing to PDF would have been an alternative, 
but again this seemed to be too complex.


Diffs (updated)
-

  core/document.h fe296e0 
  core/document.cpp 19eaa70 
  core/generator.h 19c81d5 
  core/generator.cpp 23b274b 
  generators/poppler/generator_pdf.h eb91f66 
  generators/poppler/generator_pdf.cpp f08a571 
  ui/pageview.cpp 65967bf 

Diff: https://git.reviewboard.kde.org/r/111410/diff/


Testing
---


Thanks,

Thomas Fischer

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 330298] okular cannot display eps build with gp2eps images in dvi file

2014-01-22 Thread tomas
https://bugs.kde.org/show_bug.cgi?id=330298

--- Comment #2 from tomas  ---
Created attachment 84804
  --> https://bugs.kde.org/attachment.cgi?id=84804&action=edit
eps image created with gp2eps

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 330298] okular cannot display eps build with gp2eps images in dvi file

2014-01-22 Thread tomas
https://bugs.kde.org/show_bug.cgi?id=330298

--- Comment #3 from tomas  ---
Created attachment 84805
  --> https://bugs.kde.org/attachment.cgi?id=84805&action=edit
dvi document that includes the eps image

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 330298] okular cannot display eps build with gp2eps images in dvi file

2014-01-22 Thread Luigi Toscano
https://bugs.kde.org/show_bug.cgi?id=330298

Luigi Toscano  changed:

   What|Removed |Added

 CC||luigi.tosc...@tiscali.it

--- Comment #4 from Luigi Toscano  ---
Can you please attach also the .tex file? Which version of (la)tex distribution
(and which operating system) did you use?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 330298] okular cannot display eps build with gp2eps images in dvi file

2014-01-22 Thread tomas
https://bugs.kde.org/show_bug.cgi?id=330298

--- Comment #5 from tomas  ---
Created attachment 84806
  --> https://bugs.kde.org/attachment.cgi?id=84806&action=edit
latex file

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 330298] okular cannot display eps build with gp2eps images in dvi file

2014-01-22 Thread tomas
https://bugs.kde.org/show_bug.cgi?id=330298

--- Comment #6 from tomas  ---
latex -v
pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
Operating system: linux Mint Maya KDE

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 330298] okular cannot display eps build with gp2eps images in dvi file

2014-01-22 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=330298

Albert Astals Cid  changed:

   What|Removed |Added

 Status|NEEDSINFO   |CONFIRMED
 Resolution|WAITINGFORINFO  |---
 Ever confirmed|0   |1

--- Comment #7 from Albert Astals Cid  ---
Yep

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 330303] New: Okular crashed while attempting to print

2014-01-22 Thread wodencafe
https://bugs.kde.org/show_bug.cgi?id=330303

Bug ID: 330303
   Summary: Okular crashed while attempting to print
Classification: Unclassified
   Product: okular
   Version: 0.17.3
  Platform: Ubuntu Packages
OS: Linux
Status: UNCONFIRMED
  Keywords: drkonqi
  Severity: crash
  Priority: NOR
 Component: general
  Assignee: okular-devel@kde.org
  Reporter: wodenc...@gmail.com

Application: okular (0.17.3)
KDE Platform Version: 4.11.3
Qt Version: 4.8.4
Operating System: Linux 3.11.0-15-generic x86_64
Distribution: Ubuntu 13.10

-- Information about the crash:
- What I was doing when the application crashed:
I had opened a PDF file and attempted to open the print dialog, when I did,
Okular became unresponsive and crashed.

It is important to note that Okular was running very slow and hang-y prior to
this.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fec9509f7c0 (LWP 32405))]

Thread 6 (Thread 0x7fec7e76d700 (LWP 32406)):
#0  0x7fec920b2f7d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x7fec8eca96a4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x7fec8eca97ac in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x7fec92ab3a76 in QEventDispatcherGlib::processEvents
(this=0x7fec780008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x7fec92a855ef in QEventLoop::processEvents
(this=this@entry=0x7fec7e76cd70, flags=...) at kernel/qeventloop.cpp:149
#5  0x7fec92a858e5 in QEventLoop::exec (this=this@entry=0x7fec7e76cd70,
flags=...) at kernel/qeventloop.cpp:204
#6  0x7fec9298488f in QThread::exec (this=this@entry=0x138c5d0) at
thread/qthread.cpp:542
#7  0x7fec92a66d13 in QInotifyFileSystemWatcherEngine::run (this=0x138c5d0)
at io/qfilesystemwatcher_inotify.cpp:265
#8  0x7fec92986f2f in QThreadPrivate::start (arg=0x138c5d0) at
thread/qthread_unix.cpp:338
#9  0x7fec8f181f6e in start_thread (arg=0x7fec7e76d700) at
pthread_create.c:311
#10 0x7fec920bf9cd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 5 (Thread 0x7fec7df6c700 (LWP 32416)):
#0  0x7fec920b2f7d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x7fec8eca96a4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x7fec8eca97ac in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x7fec92ab3a76 in QEventDispatcherGlib::processEvents
(this=0x7fec7407cef0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x7fec92a855ef in QEventLoop::processEvents
(this=this@entry=0x7fec7df6bd70, flags=...) at kernel/qeventloop.cpp:149
#5  0x7fec92a858e5 in QEventLoop::exec (this=this@entry=0x7fec7df6bd70,
flags=...) at kernel/qeventloop.cpp:204
#6  0x7fec9298488f in QThread::exec (this=this@entry=0x152eaa0) at
thread/qthread.cpp:542
#7  0x7fec92a66d13 in QInotifyFileSystemWatcherEngine::run (this=0x152eaa0)
at io/qfilesystemwatcher_inotify.cpp:265
#8  0x7fec92986f2f in QThreadPrivate::start (arg=0x152eaa0) at
thread/qthread_unix.cpp:338
#9  0x7fec8f181f6e in start_thread (arg=0x7fec7df6c700) at
pthread_create.c:311
#10 0x7fec920bf9cd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7fec6c185700 (LWP 32425)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x7fec92987406 in wait (time=18446744073709551615, this=0x18f0e40) at
thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=, mutex=mutex@entry=0x18e8000,
time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x7fec929835eb in QSemaphore::acquire (this=this@entry=0x18e1eb0,
n=n@entry=1) at thread/qsemaphore.cpp:144
#4  0x7fec6d9e053f in GSRendererThread::run (this=0x18e1ea0) at
../../../generators/spectre/rendererthread.cpp:50
#5  0x7fec92986f2f in QThreadPrivate::start (arg=0x18e1ea0) at
thread/qthread_unix.cpp:338
#6  0x7fec8f181f6e in start_thread (arg=0x7fec6c185700) at
pthread_create.c:311
#7  0x7fec920bf9cd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7fec6e5f4700 (LWP 32426)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x7fec92987406 in wait (time=18446744073709551615, this=0x101f9b0) at
thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x122d178,
mutex=mutex@entry=0x122d170, time=time@entry=18446744073709551615) at
thread/qwaitcondition_unix.cpp:158
#3  0x7fec93954086 in QFileInfoGatherer::run (this=0x122d160) at
dialogs/qfileinfogatherer.cpp:214
#4  0x7fec92986f2f in QThreadPrivate::start (arg=0x122d160) at
thread/qthread_unix.cpp:338

[Okular-devel] [okular] [Bug 329907] Okular crashes due to bad interaction of poppler, libgs and lcms

2014-01-22 Thread Jekyll Wu
https://bugs.kde.org/show_bug.cgi?id=329907

Jekyll Wu  changed:

   What|Removed |Added

 CC||wodenc...@gmail.com

--- Comment #7 from Jekyll Wu  ---
*** Bug 330303 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 330303] Okular crashed while attempting to print

2014-01-22 Thread Jekyll Wu
https://bugs.kde.org/show_bug.cgi?id=330303

Jekyll Wu  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #1 from Jekyll Wu  ---


*** This bug has been marked as a duplicate of bug 329907 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 330042] okular can't open some pdf

2014-01-22 Thread Anton Kornberg
https://bugs.kde.org/show_bug.cgi?id=330042

Anton Kornberg  changed:

   What|Removed |Added

 Status|RESOLVED|VERIFIED
 Resolution|FIXED   |WAITINGFORINFO

--- Comment #15 from Anton Kornberg  ---
That's me again. I have hurried a little bit. Indeed, after installation there
was no problems, but now it occurred again. Not like before, but anyways, it's
not comfortable to work with some pdf files. They are constantly freezing when
I try to scroll.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 330042] okular can't open some pdf

2014-01-22 Thread Anton Kornberg
https://bugs.kde.org/show_bug.cgi?id=330042

Anton Kornberg  changed:

   What|Removed |Added

 Status|VERIFIED|RESOLVED
 Resolution|WAITINGFORINFO  |FIXED

--- Comment #16 from Anton Kornberg  ---
Sorry, me again. Thanks for your patience. I have updated KDE up to 4.12 and it
helped. Actually, I tried to do the same when I had Linux Mint 16 KDE, and it
didn't work. But in the case of Kubuntu 13.10 it worked.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 330042] okular can't open some pdf

2014-01-22 Thread Anton Kornberg
https://bugs.kde.org/show_bug.cgi?id=330042

--- Comment #17 from Anton Kornberg  ---
(In reply to comment #11)
> Yeah that includes more stuff but doesn't tell anything interesting. It's
> strange because i'm running similar versions to what you have (just a bit
> newer okular) and it works fine for me.
> 
> Any change you can update to okular that comes with the 4.12 releases?

Sorry, I use this forum first time, I haven't noticed that I can reply for each
post. Yes, it worked. I had updated KDE up to 4.12 and there is no problems
anymore. Thank you!

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel