PTR_GEN source code available?

Anything QL Software or Programming Related.
User avatar
ppe
Trump Card
Posts: 171
Joined: Tue Dec 14, 2010 10:48 am
Location: Espoo, Finland

PTR_GEN source code available?

Post 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


User avatar
tofro
Font of All Knowledge
Posts: 3148
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: PTR_GEN source code available?

Post 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


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
ppe
Trump Card
Posts: 171
Joined: Tue Dec 14, 2010 10:48 am
Location: Espoo, Finland

Re: PTR_GEN source code available?

Post 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


User avatar
tofro
Font of All Knowledge
Posts: 3148
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: PTR_GEN source code available?

Post 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


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
prime
Trump Card
Posts: 192
Joined: Fri Feb 18, 2011 8:58 pm

Re: PTR_GEN source code available?

Post 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.


prime
Trump Card
Posts: 192
Joined: Fri Feb 18, 2011 8:58 pm

Re: PTR_GEN source code available?

Post 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.


User avatar
tofro
Font of All Knowledge
Posts: 3148
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: PTR_GEN source code available?

Post by tofro »

"outptr_bin" in 'extras_exe_src'

doc in extras_help_howto_txt ;)


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
prime
Trump Card
Posts: 192
Joined: Fri Feb 18, 2011 8:58 pm

Re: PTR_GEN source code available?

Post 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.


User avatar
tofro
Font of All Knowledge
Posts: 3148
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: PTR_GEN source code available?

Post by tofro »

QLiberator runtime not loaded
Pick from here:
http://www.dilwyn.me.uk/tk/qlibrun336mod.zip


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
prime
Trump Card
Posts: 192
Joined: Fri Feb 18, 2011 8:58 pm

Re: PTR_GEN source code available?

Post by prime »

tofro wrote:QLiberator runtime not loaded
Pick from here:
http://www.dilwyn.me.uk/tk/qlibrun336mod.zip
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.


Post Reply