denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Denemo-devel] PDF window


From: Jeremiah Benham
Subject: Re: [Denemo-devel] PDF window
Date: Thu, 20 Oct 2011 23:23:03 -0500
User-agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1

On 10/20/2011 12:07 PM, Richard Shann wrote:
Jeremiah,

I have now got the pdf widget working inside Denemo. The old print view
window is now showing a pdf of the score, and point and click now works
entirely internally inside Denemo (the previous version only worked with
xpdf and used external files and Unix signals to do the business).
For some reason, although the Print Dialog pops up, and lists my printer
correctly, I get no printing. This is not critical, because the previous
route to printing (ie the PrintPreview command) is still working as
before, launching an external pdf viewer.
Before I can check in though, I need the new dependency, which is
libevince2 (for building Denemo you need libevince-dev).
Can you create this dependency in the make system, so that the compile
and link steps have
-I/usr/include/evince/2.30
   -levview
(or whatever pkgconfig says are the include and lib flags)

Debian Sid has evince >= 3.0. This is going to require some massaging because the pkg-config file is named evince-view-3.0.pc. your version would be called evince-view-2.3.pc. We use to do something similar to this with portaudio versions. Theses lines would needed to be added for 2.3.

PKG_CHECK_MODULES(EVINCE, evince-view-2.3 >= 2.3)
CFLAGS="$CFLAGS $EVINCE_CFLAGS"
LIBS="$LIBS $EVINCE_LIBS"


PKG_CHECK_MODULES(EVINCE, evince-view-3.0 >= 3.0)
CFLAGS="$CFLAGS $EVINCE_CFLAGS"
LIBS="$LIBS $EVINCE_LIBS"

Perhaps I need to create a couple booleans to set the results of the pkg_check. Something like VERSION2 VERSION3.
sudo code:

if (VERSION2 || VERSION3)
  CFLAGS="$CFLAGS $EVINCE_CFLAGS"
  LIBS="$LIBS $EVINCE_LIBS"
else
  stop ./configure with error message


Jeremiah





  and I can then check in the code I have?
I believe if the version is greater than 2.32 there is a possibility
that some conditional code may be needed as the ev_init() call is no
longer needed (but perhaps they have made it a dummy).

Richard



On Tue, 2011-10-18 at 19:20 +0100, Richard Shann wrote:
While asking about evince I was tipped off by a very helpful guy about
an evince widget which we can embed in Denemo.
This will mean that we have the pdf as a window inside Denemo and can
not only do point and click without going outside in the present clunky
fashion but can do all sorts of other stuff (dragging objects in the pdf
window and having Denemo insert the needed LilyPond in the score).
This will mark a major improvement - substituting for the current
PrintPreview window with an evince widget which knows how to print and
which denemo can talk too.
Richard



_______________________________________________
Denemo-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/denemo-devel


_______________________________________________
Denemo-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/denemo-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]