Page 1 of 3
PTR_GEN source code available?
Posted: Mon Mar 03, 2014 11:39 am
by ppe
Hi,
is PTR_GEN source code available somewhere? Having spent a few hours studying how SMSQ/E handles various mouse implementations I would like to understand how PTR_GEN does the same.
On a more general level: what is needed (in terms of software) to make e.g. a QIMI mouse or a serial mouse work with PTR_GEN?
Kind regards,
Petri
Re: PTR_GEN source code available?
Posted: Mon Mar 03, 2014 11:59 am
by tofro
Petri,
if you have had a look into SMSQ/E sources for a while, you might have seen that PTR_GEN is just one build target in that source tree. That is: Newer versions (don't know exactly when this started , but Marcel or Wolfgang will know) of PTR_GEN are simply generated from the same sources as the EE of SMSQ/E. To my knowledge there's no separate sources available. Make sure you pick the newest SMSQ/E source tree, IMHO ptr_gen as a target is only explicitely included there.
To answer your specific question: The QIMI mouse driver is in smsq_gold_qimi_asm
Regards,
Tobias
Re: PTR_GEN source code available?
Posted: Mon Mar 03, 2014 12:15 pm
by ppe
Hi Tobias,
thank you for that piece of information, that's really good news! I'll take a look at the build targets, earlier I was only looking at the individual source files.
So if I understood correctly, I should be able to build a custom version of PTR_GEN for black box QL from the SMSQ/E sources.
I think there was a tutorial on how to set up a build environment for SMSQ/E somewhere....
Kind regards,
Petri
Re: PTR_GEN source code available?
Posted: Mon Mar 03, 2014 12:52 pm
by tofro
ppe wrote:
I think there was a tutorial on how to set up a build environment for SMSQ/E somewhere....
Yes, there is - It comes with the sources
Check the "extras_help" directory and other subdirs under "extras". You will want to use the method using "SMSQEMake", that is by far the easiest method.
And: Don't even bother to try building without SMSQ/E - Most probably it will not work. Best start with a build environment based on QPC2
Tobias
Re: PTR_GEN source code available?
Posted: Mon Mar 03, 2014 1:47 pm
by prime
Ahhaa,
This may help me too, as I may be able to build a version of PTR_GEN that will work with the Sandy SuperQBoard mouse.
Cheers.
Phill.
Re: PTR_GEN source code available?
Posted: Mon Mar 03, 2014 9:55 pm
by prime
Humm
Setup QPC2, and installed the required tools but when I run SMSQEMake and select the bits to build, hit go and it falls over not being able to find EXEP_W is this from a toolkit that I will need to load ?
Cheers.
Phill.
Re: PTR_GEN source code available?
Posted: Mon Mar 03, 2014 10:09 pm
by tofro
"outptr_bin" in 'extras_exe_src'
doc in extras_help_howto_txt

Re: PTR_GEN source code available?
Posted: Mon Mar 03, 2014 10:54 pm
by prime
OK,
Thanks for that I'm now getting a little further now make is throwing an error with not being able to find Q_ERR_ON
Cheers.
Phill.
Re: PTR_GEN source code available?
Posted: Mon Mar 03, 2014 10:55 pm
by tofro
QLiberator runtime not loaded
Pick from here:
http://www.dilwyn.me.uk/tk/qlibrun336mod.zip
Re: PTR_GEN source code available?
Posted: Mon Mar 03, 2014 11:39 pm
by prime
Humm odd because QPC2 already has a qlib_run though it is a different file (smaller). The one from that zip file doesn't seem to have Q_ERR_ON anywhere in it and it's not turning up as an extra.....
Ahh after some searching looks like it's qlib_ext that I need, which contains the extensions.
Cheers.
Phill.