[rkward-devel] cursor keys on mac missing

meik michalke Meik.Michalke at uni-duesseldorf.de
Tue Dec 6 12:17:47 UTC 2011


hi,

Am Montag, 5. Dezember 2011, 20:14:19 schrieb Thomas Friedrichsmeier:
> On Monday 05 December 2011, meik michalke wrote:
> > i just noticed that the mac version of RKWard lacks support for the
> > left/right cursor keys in its R console (up/down are working).
> 
> hm, could you test the attached patch?

RKWard won't compile with the patch applied: 

<error>
/opt/rkward/var/macports/build/_Users_meik_software_ports_kde_rkward/rkward-
devel/work/trunk/rkward/rkward/rkconsole.cpp: In member function ‘bool 
RKConsole::handleKeyPress(QKeyEvent*)’:
/opt/rkward/var/macports/build/_Users_meik_software_ports_kde_rkward/rkward-
devel/work/trunk/rkward/rkward/rkconsole.cpp:242: error: ‘class QKeyEvent’ has 
no member named ‘modifier’
/opt/rkward/var/macports/build/_Users_meik_software_ports_kde_rkward/rkward-
devel/work/trunk/rkward/rkward/rkconsole.cpp:245: error: conversion from ‘int’ 
to ‘Qt::KeyboardModifiers’ is ambiguous
/opt/rkward/include/QtCore/qglobal.h:2196: note: candidates are: 
QFlags<Enum>::QFlags(void**) [with Enum = Qt::KeyboardModifier] <near match>
/opt/rkward/include/QtCore/qglobal.h:2195: note:                 
QFlags<Enum>::QFlags(Enum) [with Enum = Qt::KeyboardModifier] <near match>
/opt/rkward/var/macports/build/_Users_meik_software_ports_kde_rkward/rkward-
devel/work/trunk/rkward/rkward/rkconsole.cpp:249: error: conversion from ‘int’ 
to ‘Qt::KeyboardModifiers’ is ambiguous
/opt/rkward/include/QtCore/qglobal.h:2196: note: candidates are: 
QFlags<Enum>::QFlags(void**) [with Enum = Qt::KeyboardModifier] <near match>
/opt/rkward/include/QtCore/qglobal.h:2195: note:                 
QFlags<Enum>::QFlags(Enum) [with Enum = Qt::KeyboardModifier] <near match>
make[2]: *** [rkward/CMakeFiles/rkward.frontend.dir/rkconsole.o] Error 1
make[2]: Leaving directory 
`/opt/rkward/var/macports/build/_Users_meik_software_ports_kde_rkward/rkward-
devel/work/trunk/rkward/build'
make[1]: *** [rkward/CMakeFiles/rkward.frontend.dir/all] Error 2
make[1]: Leaving directory 
`/opt/rkward/var/macports/build/_Users_meik_software_ports_kde_rkward/rkward-
devel/work/trunk/rkward/build'
make: *** [all] Error 2
make: Leaving directory 
`/opt/rkward/var/macports/build/_Users_meik_software_ports_kde_rkward/rkward-
devel/work/trunk/rkward/build'
shell command " cd 
"/opt/rkward/var/macports/build/_Users_meik_software_ports_kde_rkward/rkward-
devel/work/trunk/rkward/build" && /usr/bin/make -j2 -w all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for 
details)
Warning: the following items did not execute (for rkward-devel): 
org.macports.activate org.macports.build org.macports.destroot 
org.macports.install
Log for rkward-devel is at: 
/opt/rkward/var/macports/logs/_Users_meik_software_ports_kde_rkward/rkward-
devel/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
</error>

> (I tested and reproduced the issue via VNC, but did not find the time to
> figure out, how to test patches on the Mac).

just put the patchfile to the "files" directory in the same directory where 
the portfile is (which now is /opt/ports/kde/rkward/files on the VNC 
machine!). then add to the portfile:

<code>
patchfiles          name_of_patchfile.diff
</code>

and rebuild the port ("sudo port uninstall rkward-devel && sudo port -v 
install rkward-devel"). the patch will be applied automatically before the 
build. to check if you can build in the first place, probably try the 
uninstall && install as is once -- as normal user, vnc doesn't have enough 
rights.


viele grüße :: m.eik

-- 
  dipl. psych. meik michalke
  abt. f"ur diagnostik und differentielle psychologie
  institut f"ur experimentelle psychologie
  heinrich-heine-universit"at d"usseldorf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20111206/add4aa0c/attachment.sig>


More information about the Rkward-devel mailing list