Skip to contentSkip to conversation

undefined reference

DISCUSSION Andrew 2 participants 5 messages Jan 17, 2006

lore
Share & tools
lore

Andrew

author
#0 lore raw

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw
Quoted 6 lines · 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?

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

author
#2 lore raw
Quoted 10 lines · [email protected] wrote:
Quoted 6 lines · 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?

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#3 lore raw
Quoted 6 lines · Andrew
Quoted 4 lines · [email protected] wrote:
Quoted 2 lines · Andrew

Good evening,

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

author
#4 lore raw
Quoted 16 lines · [email protected] wrote:
Quoted 14 lines · Andrew
Quoted 10 lines · [email protected] wrote:
Quoted 6 lines · 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?

you forgot (or the configure script forgot) to add libz when lining with libpng ?

Quoted 8 lines
Quoted 2 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs