BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to install TPNGImage?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Stefan Reuschl
Guest





PostPosted: Thu Sep 18, 2003 3:21 pm    Post subject: How to install TPNGImage? Reply with quote



Hi,

I want to save png images and downloaded TPNGImage from
http://pngdelphi.sourceforge.net.
Please could s.o. help me to install it?
I copied the files into the lib directory and tried to install the
component in a new package. Then I wanted to compile and got "[Linker
Fataler Fehler] Fatal: Unable to open file
'p:PROGRA~2BORLAN~1ProjectsLibpngimage.bpi'". Trying to add it to
dclusr.bpk makes the same error with dclusr.bpi.

Thank you very much!
Stefan
Back to top
Stefan Reuschl
Guest





PostPosted: Thu Sep 18, 2003 3:40 pm    Post subject: Re: How to install TPNGImage? Reply with quote



On Thu, 18 Sep 2003 17:21:26 +0200, Stefan Reuschl <stefan.reuschl (AT) gmx (DOT) de>
wrote:

Quote:
Fatal: Unable to open file
'p:PROGRA~2BORLAN~1ProjectsLibpngimage.bpi'

Sorry, the directory didn't exist :(

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Sep 18, 2003 4:26 pm    Post subject: Re: How to install TPNGImage? Reply with quote




"Stefan Reuschl" <stefan.reuschl (AT) gmx (DOT) de> wrote


Quote:
I copied the files into the lib directory

Copies which files exactly? TPNGImage does not come with any library files.
You are supposed to recompile the component first before installing it, in
which cae BCB (at least starting with BCB4) automatically copies the
compiled files to the appropriate folders for you.

Quote:
Then I wanted to compile and got "[Linker Fataler Fehler]
Fatal: Unable to open file
'p:PROGRA~2BORLAN~1ProjectsLibpngimage.bpi'".
Trying to add it to dclusr.bpk makes the same error with dclusr.bpi.

Sounds like your IDE settings may be messed up. Double check your
environment and package settings to make sure the include paths are correct.


Gambit



Back to top
Stefan Reuschl
Guest





PostPosted: Thu Sep 18, 2003 5:50 pm    Post subject: Re: How to install TPNGImage? Reply with quote

On Thu, 18 Sep 2003 09:26:54 -0700, Remy Lebeau (TeamB)
<gambit47 (AT) yahoo (DOT) com> wrote:

Quote:
Copies which files exactly? TPNGImage does not come with any library
files.
You are supposed to recompile the component first before installing it,
in
which cae BCB (at least starting with BCB4) automatically copies the
compiled files to the appropriate folders for you.

Yes, BCB wanted to create files in the folders ProjectsLib and
ProjectsBpl which didn't exist :(

Now it's compiled and installed but there's something wrong:
[Linker Fehler] Unresolved external 'Pngimage::TPNGObject::' referenced
from ...unit1.obj
[Linker Fehler] Unresolved external '__fastcall
Pngimage::TPNGObject::TPNGObject()' ...unit1.obj

I included pngimage.hpp and in the project options pngimage.bpl is active.
Must I do anything more?

Thanks, Stefan




Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Sep 18, 2003 6:30 pm    Post subject: Re: How to install TPNGImage? Reply with quote


"Stefan Reuschl" <stefan.reuschl (AT) gmx (DOT) de> wrote


Quote:
Yes, BCB wanted to create files in the folders ProjectsLib
and ProjectsBpl which didn't exist Sad

They have to exist. They are created upon BCB's installation, and some of
BCB's own packages are already stored there.

Quote:
Now it's compiled and installed but there's something wrong:
[Linker Fehler] Unresolved external 'Pngimage::TPNGObject::'
referenced from ...unit1.obj
[Linker Fehler] Unresolved external '__fastcall
Pngimage::TPNGObject::TPNGObject()' ...unit1.obj

Sounds like you did not actually add the compiled library to your project.
Did you install the package onto the Component Palette and then drop the
component onto your form? Or are you simply including the header file and
doing nothing else?


Gambit



Back to top
Stefan Reuschl
Guest





PostPosted: Thu Sep 18, 2003 6:59 pm    Post subject: Re: How to install TPNGImage? Reply with quote

On Thu, 18 Sep 2003 11:30:16 -0700, Remy Lebeau (TeamB)
<gambit47 (AT) yahoo (DOT) com> wrote:

Quote:
"Stefan Reuschl" <stefan.reuschl (AT) gmx (DOT) de> wrote in message
news:oprvpiiicgqwoxy6 (AT) news (DOT) t-online.de...

Now it's compiled and installed but there's something wrong:
[Linker Fehler] Unresolved external 'Pngimage::TPNGObject::'
referenced from ...unit1.obj
[Linker Fehler] Unresolved external '__fastcall
Pngimage::TPNGObject::TPNGObject()' ...unit1.obj

Sounds like you did not actually add the compiled library to your
project.
Did you install the package onto the Component Palette and then drop the
component onto your form? Or are you simply including the header file
and doing nothing else?

I did Component -> Install Component, there i compiled and installed it. It
made a lib in projectlib, and the package is included in the project
options.
But there's nothing on the Component Palette...

Stefan


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Sep 18, 2003 7:28 pm    Post subject: Re: How to install TPNGImage? Reply with quote

"Stefan Reuschl" <stefan.reuschl (AT) gmx (DOT) de> wrote


Quote:
I did Component -> Install Component, there i compiled and installed
it. It made a lib in projectlib, and the package is included in the
project
options. But there's nothing on the Component Palette...

My mistake, TPNGImage is not an actual component, so there is not supposed
to be anything on the Palette.

I do not know what else to tell you. It works fine when I try it myself.
All I did was create a new package, put the TPNGImage .pas and .obj files
into it, compile and install it, and include the auto-generated pngimage.hpp
header file into a project. I don't do anything else, and it compiles and
links fine for me.


Gambit




Back to top
Stefan Reuschl
Guest





PostPosted: Thu Sep 18, 2003 7:54 pm    Post subject: Re: How to install TPNGImage? Reply with quote

On Thu, 18 Sep 2003 12:28:07 -0700, Remy Lebeau (TeamB)
<gambit47 (AT) yahoo (DOT) com> wrote:

Quote:
All I did was create a new package, put the TPNGImage .pas and .obj files
into it, compile and install it, and include the auto-generated
pngimage.hpp
header file into a project.

Oh, thanks for that hint! I didn't know that I have to add the .obj files
too... Now it works fine!

Stefan

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.