Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Greeting to the community + my problem (PTCPas)

  1. #11

    Greeting to the community + my problem (PTCPas)

    Just done what you suggested. Worked ok, but what's next?
    Meanwhile, I done a lazarus package, manually importing the files.
    I now have pct figuring as a new package but I can't use its units.
    I also wrote the author for support, but I'm waiting for replyes.
    Bye, Berserk.
    <br />.

  2. #12

    Greeting to the community + my problem (PTCPas)

    Well, you will get a directory units/i386-linux or something like that. In your IDE, add this directory to the unit path, for example in the text mode IDE, go to Options->Directories and add the full path to the directory.

  3. #13

    Done!!!

    Hey, thank you so much for your help.
    I mean everybody.
    I finally made to compile and install.

    What I done is (steps made):
    [command line]
    copying rtl folder to /pp/rtl (I had to - this will be clear in a while)
    fpcmake in the ptc folder (otherwise, .as files wont compile - doing fpcmake in the packages folder will overwrite the shipped Makefile.fpc)
    make in the ptcpas folder
    fpcmake in the packages folder (the ptc package was put in /extra/ptc - I also add ptc in the Makefile.fpc in the /extra folder)

    [Lazarus]
    New project -> add ptcpas.pp, hermes/hermes.pp
    set project -> compile options -> units to (ptcpath)/hermes; (ptcpath)/win32/directdr
    set project -> compile options -> include dirs to (ptcpath)/hermes; (ptcpath)/win32/base; (ptcpath)/win32/directdr; (ptcpath)/hermes

    compiled everything (again)

    Created a new package (new -> standard package, manually added a single dummy file, opened the project, add unit to existing package)

    Compiled the package, installed, rebuilt Lazarus.

    [testing]
    project -> new project from file
    opened (ptcpath)/demos/fire.pp
    compiled, everything flawless.
    (exception)-> while debugging, I get an error from the exe saying "can't recycle as the console is already opened".
    Launching the executable from a console works perfectly.

    I hope these info will be useful to whoever wishes to use ptc in Lazarus.
    .
    Bye, Berserk.
    <br />.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •