Re: [fpc-pascal] ptccrt missing keys
>maybe try: >make CPU_TARGET=x86_64 OS_TARGET=win64 Here is what I have now: H:\ptcpas-code-715-trunk>make CPU_TARGET=x86_64 OS_TARGET=win64 J:/Programming/FPC/3.0.2/bin/i386-Win32/ppcrossx64.exe -Twin64 -Px86_64 -XPx86_64-win64- -Xr -Fuhermes -Fuptcwrapper -Fuptcgraph -Fux11 -Fuwin32/directx -Fiptcgraph/inc -FE. -FUunits/x86_64-win64 -dx86_64 ptc.pp Warning: Option "-Xr" is ignored for the current target platform. Free Pascal Compiler version 3.0.2 [2017/02/13] for x86_64 Copyright (c) 1993-2017 by Florian Klaempfl and others Target OS: Win64 for x64 Compiling ptc.pp ptc.pp(125,21) Fatal: Can't find unit glext used by ptc Fatal: Compilation aborted make: *** [ptc.ppu] Error 1 It seems like it can't find my units but it specifies -FUunits/x86_64-win64 maybe I need to give it the full path to my units for 64bit? > please be patient, it'll get there, maybe in a few week's time I will be happy to be patient 😊 Thank you for all your hard work on this! James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Nikolay Nikolov Sent: Monday, June 12, 2017 6:56 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] ptccrt missing keys On 06/13/2017 01:33 AM, James Richters wrote: >> Follow the instructions in docs/INSTALL.txt to compile the package. Then add >> units\i386-win32 from the snapshot directory to the unit search path of your >> compiler. > Can I have instructions on how to compile ptcpas for x86_64-win64? > > I tried guessing that I might need fpcmake -r -Tx86_64-win64 > > when I try that I get : > Processing Makefile.fpc > x86_64-win64 requires: rtl > Writing Makefile > Processing demos/Makefile.fpc > x86_64-win64 requires: rtl > Writing Makefile > Processing examples/Makefile.fpc > x86_64-win64 requires: rtl > Writing Makefile > Processing test/Makefile.fpc > x86_64-win64 requires: rtl > Writing Makefile > > But when I try to run make I get: > > Makefile:208: *** The Makefile doesn't support target i386-win32, please run > fpcmake first. Stop. maybe try: make CPU_TARGET=x86_64 OS_TARGET=win64 > > I tried looking at command line options for make but I don't see how > to change the target to x86_64-win64, and anyway I might be doing it > completely wrong so I think it's best to just ask > > I also notice that the changes in https://sourceforge.net/p/ptcpas/code/742 > list 'dead key support under Windows and X11 (via XIM)' in the comments. > are the missing keys now working and if so do I need to enable them somehow? >I haven't tried compiling this yet, I'm still using r715. I thought I > would ask if it was ready first. Not yet. I'm still working on it. I ended up revamping all the keyboard input support in ptcpas, because I discovered there are some differences between linux and windows in the keycodes for some keys. Since, these are OEM-specific keys, so they differ between keyboard layouts, I tried different keyboard layouts and I discovered that dead keys don't work. So, I started digging in order to find out why that's the case. So, after a lot of changes, I got them working under both windows and linux. After that, I figured out it's time to prepare a new ptcpas release, because there are many other changes, since the last release and I want to get it in time for the new release to be included into fpc 3.0.4. So, suddenly, I'm working on a whole lot more things on ptcpas (relative mouse movement, better unicode support for the keyboard input under both windows and linux, merging several other fixes into upstream fpc libraries, for which ptcpas carries a forked version) :) But, please be patient, it'll get there, maybe in a few week's time. If you're impatient, you can temporarily patch ptcgraph/ptccrt.pp, lines 120..309. These convert the ptcpas key events to crt readkey codes. Best regards, Nikolay ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] ptccrt missing keys
On 06/13/2017 01:33 AM, James Richters wrote: Follow the instructions in docs/INSTALL.txt to compile the package. Then add units\i386-win32 from the snapshot directory to the unit search path of your compiler. Can I have instructions on how to compile ptcpas for x86_64-win64? I tried guessing that I might need fpcmake -r -Tx86_64-win64 when I try that I get : Processing Makefile.fpc x86_64-win64 requires: rtl Writing Makefile Processing demos/Makefile.fpc x86_64-win64 requires: rtl Writing Makefile Processing examples/Makefile.fpc x86_64-win64 requires: rtl Writing Makefile Processing test/Makefile.fpc x86_64-win64 requires: rtl Writing Makefile But when I try to run make I get: Makefile:208: *** The Makefile doesn't support target i386-win32, please run fpcmake first. Stop. maybe try: make CPU_TARGET=x86_64 OS_TARGET=win64 I tried looking at command line options for make but I don't see how to change the target to x86_64-win64, and anyway I might be doing it completely wrong so I think it's best to just ask I also notice that the changes in https://sourceforge.net/p/ptcpas/code/742 list 'dead key support under Windows and X11 (via XIM)' in the comments. are the missing keys now working and if so do I need to enable them somehow? I haven't tried compiling this yet, I'm still using r715. I thought I would ask if it was ready first. Not yet. I'm still working on it. I ended up revamping all the keyboard input support in ptcpas, because I discovered there are some differences between linux and windows in the keycodes for some keys. Since, these are OEM-specific keys, so they differ between keyboard layouts, I tried different keyboard layouts and I discovered that dead keys don't work. So, I started digging in order to find out why that's the case. So, after a lot of changes, I got them working under both windows and linux. After that, I figured out it's time to prepare a new ptcpas release, because there are many other changes, since the last release and I want to get it in time for the new release to be included into fpc 3.0.4. So, suddenly, I'm working on a whole lot more things on ptcpas (relative mouse movement, better unicode support for the keyboard input under both windows and linux, merging several other fixes into upstream fpc libraries, for which ptcpas carries a forked version) :) But, please be patient, it'll get there, maybe in a few week's time. If you're impatient, you can temporarily patch ptcgraph/ptccrt.pp, lines 120..309. These convert the ptcpas key events to crt readkey codes. Best regards, Nikolay ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] ptccrt missing keys
>Follow the instructions in docs/INSTALL.txt to compile the package. Then add >units\i386-win32 from the snapshot directory to the unit search path of your >compiler. Can I have instructions on how to compile ptcpas for x86_64-win64? I tried guessing that I might need fpcmake -r -Tx86_64-win64 when I try that I get : Processing Makefile.fpc x86_64-win64 requires: rtl Writing Makefile Processing demos/Makefile.fpc x86_64-win64 requires: rtl Writing Makefile Processing examples/Makefile.fpc x86_64-win64 requires: rtl Writing Makefile Processing test/Makefile.fpc x86_64-win64 requires: rtl Writing Makefile But when I try to run make I get: Makefile:208: *** The Makefile doesn't support target i386-win32, please run fpcmake first. Stop. I tried looking at command line options for make but I don't see how to change the target to x86_64-win64, and anyway I might be doing it completely wrong so I think it's best to just ask I also notice that the changes in https://sourceforge.net/p/ptcpas/code/742 list 'dead key support under Windows and X11 (via XIM)' in the comments. are the missing keys now working and if so do I need to enable them somehow? I haven't tried compiling this yet, I'm still using r715. I thought I would ask if it was ready first. Thanks, James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Nikolay Nikolov Sent: Sunday, May 28, 2017 9:52 AM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] ptccrt missing keys On 05/26/2017 10:49 PM, James Richters wrote: >> It's great that it's finally working for you. And yes, ptccrt supports most >> alt and ctrl key combinations, but if you find some key combination missing, >> please report it - it is easy to add. > I could really use F11 and F12 including shift, alt, and crtl if possible > from the prccrt graphics window. I suspect there is some fundamental reason > why F11 and F12 aren't usable, because F11 and F12 don't work in crt either. > But here is what does work in crt that would be great if would also work in > ptccrt. > > lots of missing keys Unfortunately, all of the missing keys and differences from ptccrt (including the very odd ones) stem from the fact that ptccrt behaves _exactly_ like the crt unit in Turbo Pascal 7 under DOS, with a 100% IBM compatible keyboard and BIOS. This includes the lack of support for extended keys (like F11 and F12). The Windows crt unit doesn't conform strictly to that, however, so that's why there are differences. I don't want to sacrifice the DOS/TP7 crt unit compatibility, so I'll have to think of something, but it'll take a little time. Perhaps I'll add different keyboard compatibility "modes" or something like that. Nikolay ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal