Shop OBEX P1 Docs P2 Docs Learn Events
tokenizer (on linux, and MacOs X) — Parallax Forums

tokenizer (on linux, and MacOs X)

ArchiverArchiver Posts: 46,084
edited 2002-11-16 08:24 in General Discussion
I did about the same on MacOs X. In order to use the dlopen stuff which is not
standard available in OS X I downloaded dlf.c and dlf.h from iodbc.org. But
after succesfuly compiling the software and running the stampapp application I
got:

tokenizer.shlb: not a Mach-O MH_BUNDLE file type.

So here my question to parallax, please provide us also with a Mach-O type
dynamic link library of the tokenizer, suitable for MacOs X.

Gerrit.


--- In basicstamps@y..., "rhootman" <rhootman@p...> wrote:
> I just downloaded the tokenizer tarball. I am running RedHat Linux 8.0
>
> I extracted the files, cd to the linux examples, read the readme.txt
> and copied the tokenizer.so file into the example directory and then
> did a make all which failed. Changed the line in the makefile CC = gcc
> to CC = g++ and everything compiled and I was able to make the
> stampapp application and run it according to the readme.txt file. Now
> I am going through the stampapp.cpp file and the Using the Tokenizer
> pdf file to see what I really need to do. When I get around to it,
> will probably just take one of the open source text editors and extend
> it to run the tokenizer and add send the tokens out a specified serial
> port. That is, if someone already hasn't done so.
>
> Randy Hootman
> rhootman@p...
>
> --- In basicstamps@y..., Gerrit Polder <polder@p...> wrote:
> >
> >
> > I'm just wondering, now the tokenizer is released, if anybody is
> working on
> > a mac or linux basicstamp programming tool.
> >
> > Gerrit.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-11-16 08:24
    Added code to the stampapp that allows user to specify the source
    input file. Added code to give users switches that allow the user to
    specify which portion of the output that the user would want to see at
    that time (ALL, INFO, EEPROM, EEPROMSIZE, COUNTS, PACKETBUFFER). Added
    code to give users a switch that they can specify a file to save the
    packetbuffer output to (in other words, save the tokenization of your
    source code to a file). Added code to pretty up the output (8 bytes
    per line with their address range). Makes the output of stampapp a
    little shorter and cleaner. On linux, the resultant saved tokens of
    your source code can be seen nicely formatted by using the hexdump -C
    filename from the command line. When I tested my revised stampapp, the
    outputted tokens file contents matched the tokens listed by Parallax
    in their Tokeninzer Library paper.

    I guess someone could use this file and a few other command line tools
    (setserial, etc.) and configure the serial ports and then maybe
    something like minicom to transfer the file. Have to follow the
    Parallax Basic Stamp Programming Protocol. Haven't been successful in
    manipulating the serial ports exactly correct yet. Haven't spent alot
    of time on it yet. Looking for docs on serial port programming on
    Linux and the HOWTOs and miniHOWTOs don't seem to have enough
    information in them. Think I'll have to do some kernel diving and
    maybe some kernel module programming ...

    Randy Hootman
    rhootman@p...


    --- In basicstamps@y..., "gpolder" <polder@p...> wrote:
    > I did about the same on MacOs X. In order to use the dlopen stuff
    which is not standard available in OS X I downloaded dlf.c and dlf.h
    from iodbc.org. But after succesfuly compiling the software and
    running the stampapp application I got:
    >
    > tokenizer.shlb: not a Mach-O MH_BUNDLE file type.
    >
    > So here my question to parallax, please provide us also with a
    Mach-O type dynamic link library of the tokenizer, suitable for MacOs X.
    >
    > Gerrit.
    >
    >
    > --- In basicstamps@y..., "rhootman" <rhootman@p...> wrote:
    > > I just downloaded the tokenizer tarball. I am running RedHat Linux 8.0
    > >
    > > I extracted the files, cd to the linux examples, read the readme.txt
    > > and copied the tokenizer.so file into the example directory and then
    > > did a make all which failed. Changed the line in the makefile CC = gcc
    > > to CC = g++ and everything compiled and I was able to make the
    > > stampapp application and run it according to the readme.txt file. Now
    > > I am going through the stampapp.cpp file and the Using the Tokenizer
    > > pdf file to see what I really need to do. When I get around to it,
    > > will probably just take one of the open source text editors and extend
    > > it to run the tokenizer and add send the tokens out a specified serial
    > > port. That is, if someone already hasn't done so.
    > >
    > > Randy Hootman
    > > rhootman@p...
    > >
    > > --- In basicstamps@y..., Gerrit Polder <polder@p...> wrote:
    > > >
    > > >
    > > > I'm just wondering, now the tokenizer is released, if anybody is
    > > working on
    > > > a mac or linux basicstamp programming tool.
    > > >
    > > > Gerrit.
Sign In or Register to comment.