undefined reference
am 17.01.2006 21:06:09 von Andrew
Good evening,
Trying to compile gqcam-0.8 or 0.9 on a Slackware-10.1 I get a lot of
'undefined reference' messages about libpng.so. I have version 1.2.8 of
libpng (the latest).
Does anyone know what is wrong?
TIA
Andrew
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: undefined reference
am 17.01.2006 21:23:00 von Szonyi Sebastian Calin
On Tue, 17 Jan 2006, Andrew wrote:
> Good evening,
>
> Trying to compile gqcam-0.8 or 0.9 on a Slackware-10.1 I get a lot of
> 'undefined reference' messages about libpng.so. I have version 1.2.8 of
> libpng (the latest).
>
> Does anyone know what is wrong?
>
you forgot (or the configure script forgot) to add libz when lining with
libpng ?
try to run
LDFLAGS=-lz ./configure
--
"frate, trezeste-te, aici nu-i razboiul stelelor"
Radu R. pe offtopic at lug.ro
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: undefined reference
am 17.01.2006 21:30:57 von Andrew
caszonyi@rdslink.ro wrote:
> On Tue, 17 Jan 2006, Andrew wrote:
>
>> Good evening,
>>
>> Trying to compile gqcam-0.8 or 0.9 on a Slackware-10.1 I get a lot of
>> 'undefined reference' messages about libpng.so. I have version 1.2.8
>> of libpng (the latest).
>>
>> Does anyone know what is wrong?
>>
>
> you forgot (or the configure script forgot) to add libz when lining
> with libpng ?
The source doesn't use config, only make.
I found and installed a .tgz, but the app won't start as it doesn't find
libpng.so.2. Is my libpng too recent? Can I install an older one
alongside? Or can I try a symlink? (Without my computer exploding).
Andrew
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: undefined reference
am 17.01.2006 21:58:05 von Szonyi Sebastian Calin
On Tue, 17 Jan 2006, Andrew wrote:
> caszonyi@rdslink.ro wrote:
>
>> On Tue, 17 Jan 2006, Andrew wrote:
>>
>>> Good evening,
>>>
>>> Trying to compile gqcam-0.8 or 0.9 on a Slackware-10.1 I get a lot of
>>> 'undefined reference' messages about libpng.so. I have version 1.2.8 of
>>> libpng (the latest).
>>>
>>> Does anyone know what is wrong?
>>>
>>
>> you forgot (or the configure script forgot) to add libz when lining with
>> libpng ?
>
> The source doesn't use config, only make.
>
ok. I downloaded the program
on the following line in the Makefile
LDFLAGS = `gtk-config --libs gthread` -ljpeg -lpthread -lpng
you should add -lz like this
LDFLAGS = `gtk-config --libs gthread` -ljpeg -lpthread -lpng -lz
--
"frate, trezeste-te, aici nu-i razboiul stelelor"
Radu R. pe offtopic at lug.ro
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: undefined reference
am 17.01.2006 21:59:47 von Andrew
caszonyi@rdslink.ro wrote:
> On Tue, 17 Jan 2006, Andrew wrote:
>
>> caszonyi@rdslink.ro wrote:
>>
>>> On Tue, 17 Jan 2006, Andrew wrote:
>>>
>>>> Good evening,
>>>>
>>>> Trying to compile gqcam-0.8 or 0.9 on a Slackware-10.1 I get a lot
>>>> of 'undefined reference' messages about libpng.so. I have version
>>>> 1.2.8 of libpng (the latest).
>>>>
>>>> Does anyone know what is wrong?
>>>>
>>>
>>> you forgot (or the configure script forgot) to add libz when lining
>>> with libpng ?
>>
>>
>> The source doesn't use config, only make.
>>
>
> ok. I downloaded the program
> on the following line in the Makefile
> LDFLAGS = `gtk-config --libs gthread` -ljpeg -lpthread -lpng
> you should add -lz like this
> LDFLAGS = `gtk-config --libs gthread` -ljpeg -lpthread -lpng -lz
Wow! (Lost for words)
Thanks
Andrew
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs