Recent

Author Topic: [SOLVED] Import Type Library  (Read 8764 times)

AMarchant

  • New Member
  • *
  • Posts: 15
[SOLVED] Import Type Library
« on: July 09, 2013, 02:53:33 am »
Hello

There was some discussion in this BugTracker thread which seemed to suggest that importing type libraries would be an option from one of the Lazarus menus (probably tools), but in my new 1.0.10 install there is no such menu item.

Can someone tell me where to find it? Thank you in advance
« Last Edit: July 10, 2013, 10:18:27 am by AMarchant »

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Import Type Library
« Reply #1 on: July 09, 2013, 03:19:14 am »
Documentation here:
http://wiki.lazarus.freepascal.org/LazActiveX

Please make sure you installed the component in Lazarus as instructed on that page.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

AMarchant

  • New Member
  • *
  • Posts: 15
Re: Import Type Library
« Reply #2 on: July 09, 2013, 03:27:54 pm »
Excellent, thank you very much indeed.

EDIT: OK, next problem, I don't have a package listed called "LazActiveX", and there is no file under my Lazarus directory called "LazActiveX.lpk" - again this is Lazarus 1.0.10 with FPC 2.6.2, default installation.

http://img580.imageshack.us/img580/1809/zf2c.png

Is this something I need to download separately? Thank you again
« Last Edit: July 09, 2013, 03:38:48 pm by AMarchant »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4694
  • I like bugs.
Re: Import Type Library
« Reply #3 on: July 09, 2013, 04:28:01 pm »
EDIT: OK, next problem, I don't have a package listed called "LazActiveX", and there is no file under my Lazarus directory called "LazActiveX.lpk" - again this is Lazarus 1.0.10 with FPC 2.6.2, default installation.

It is only in Lazarus trunk (= development version). I can recommend it, it is safe and stable most of times. First make sure you have FPC installed and working.
Then get Lazarus trunk with :
 $  svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus
or similar thing with TortoiseSVN. More info here:
  http://wiki.lazarus.freepascal.org/Getting_Lazarus
(but you don't need FPC trunk for using Lazarus trunk).
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

AMarchant

  • New Member
  • *
  • Posts: 15
Re: Import Type Library
« Reply #4 on: July 09, 2013, 05:07:23 pm »
Ah, I see - thank you!

OK, I'm working through the process described on the "Getting Lazarus" and "Getting Lazarus" wiki pages.
I've installed TortoiseSVN.

I've skipped the "To get Lazarus for the first time" since it's already installed, and gone down to the "To update Lazarus sources" section.

It says:

Quote
Open Windows Explorer
Right click on the source directory

So, first problem, there is no "source" directory under my lazarus folder. There's one under FPC, but I'm updating Lazarus, and not FPC, right?

Second problem, the screenshot on that page shows the context menu for TortoiseSVN with an entry that says "SVN Update", but there is no entry in the context menu like that when I right click on a folder, I've only got "SVN Checkout":

http://img32.imageshack.us/img32/3223/2c6.png

Any help? Thanks again

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Import Type Library
« Reply #5 on: July 09, 2013, 05:10:57 pm »
First you need to checkout which gets the initial set of files from the repo, then (and when updating in future) you can update to get any updates.

I'd be surprised if the instructions didn't mention this?!?
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

AMarchant

  • New Member
  • *
  • Posts: 15
Re: Import Type Library
« Reply #6 on: July 09, 2013, 05:16:34 pm »
Ah-huh, thank you for the clarification!

EDIT: OK, I was confused again. Now that I've followed the steps on the wiki page from top-to-bottom, it all seems to be going well. It was the "get lazarus for the first time" that threw me, since Lazarus is already installed - but I see now that it means "get Lazarus source for the first time" rather than the entire install
« Last Edit: July 09, 2013, 05:19:16 pm by AMarchant »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4694
  • I like bugs.
Re: Import Type Library
« Reply #7 on: July 09, 2013, 05:28:55 pm »
... since Lazarus is already installed - but I see now that it means "get Lazarus source for the first time" rather than the entire install

Don't ever never try to mix the installed release version sources with sources got from revision control (SVN)!
To avoid extra confusion please uninstall and remove the release version before proceeding. They can co-exist but it will be an "advanced lesson" after you get trunk running.
1. Uninstall existing Lazarus
2. Install FPC 2.6.2 if not done yet.
3. Checkout Lazarus trunk sources from SVN.
4. "make all"
That's about it.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

AMarchant

  • New Member
  • *
  • Posts: 15
Re: Import Type Library
« Reply #8 on: July 10, 2013, 12:54:28 am »
Thanks for the advisement - somehow I misinterpreted your earlier message where you said:

Quote
First make sure you have FPC installed and working

- to mean I needed to already have FCP *and* Lazarus installed before proceeding. But that was entirely down to my comprehension error. I do have a mix now (of SVN and installer code/units), but it seems to be working OK, and I've already imported the library I needed.

I'll use this to check whether it will be possible to do what I want to do with Lazarus/FPC and then start again if it proves to be viable.

Much appreciated!

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4694
  • I like bugs.
Re: Import Type Library
« Reply #9 on: July 10, 2013, 01:44:47 am »
I do have a mix now (of SVN and installer code/units), but it seems to be working OK, and I've already imported the library I needed.
I'll use this to check whether it will be possible to do what I want to do with Lazarus/FPC and then start again if it proves to be viable.

Great! If it works then no need to start over again.
Yes, different Lazarus sources can easily co-exist in separate directories. I was just over-cautious with my advice because people are having so many problems with installing and running it.
Most problems originate from trunk snapshots. They include FPC compiler. Then people install other compiler version without knowing how to configure them. Then they copy a new snapshot on an old one...
Updating a snapshot from SVN is one common experiment, too, because "the sources are already there". Sometimes it feels unreal how many problems people can create with installing and running Lazarus.

I personally can recommend trunk directly from SVN. There is also a Git mirror available.
A revision control system lets you update quickly and keeps network traffic low. It is the only way to go if you report bugs and want to test their fixes immediately, or you make patches yourself.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

AMarchant

  • New Member
  • *
  • Posts: 15
Re: Import Type Library
« Reply #10 on: July 10, 2013, 10:18:14 am »
Excellent, thank you again :) You've been most helpful

 

TinyPortal © 2005-2018