Re: Autotools, libraries and man pages: oh my!
On Thu, 01 Nov 2012 22:01:16 -0700, James Colannino wrote: On 11/01/12 21:44, James Colannino wrote: [...]I'm able to use autotools on FreeBSD to generate configure and Makefile.in, and can use gmake to compile and install it. Unfortunately, the man pages are installed to /usr/local/share/man instead of to /usr/local/man, which I thought the tools would've taken care of. Also, even though I see my library was successfully compiled and installed to /usr/local/lib, when I try to compile a program with gcc source.c -ldstring, I get: /usr/bin/ld: cannot find -ldstring Update: I can compile against my dstring library by using the following line: gcc source.c -L/usr/local/lib -ldstring. I guess it didn't know to search /usr/local/lib. Still having trouble figuring out how to install the man pages properly, though :( The easiest way to do it is to have a look at the porter's handbook (part of the FreeBSD documentation) and use the predefined target locations for the generated components. http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ However, I always thought /usr/local/lib would be one of the default search paths for ld, so -llibrary for any library residing there should be fine - except of course you override default options of cc... For your project, you could create a Makefile containing the required CFLAGS and LDFLAGS, define a rule for building the target and then just use make. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Autotools, libraries and man pages: oh my!
From owner-freebsd-questi...@freebsd.org Fri Nov 2 00:03:38 2012 Date: Thu, 01 Nov 2012 22:01:16 -0700 From: James Colannino crankycycl...@gmail.com To: freebsd-questions@freebsd.org Subject: Re: Autotools, libraries and man pages: oh my! On 11/01/12 21:44, James Colannino wrote: [...]I'm able to use autotools on FreeBSD to generate configure and Makefile.in, and can use gmake to compile and install it. Unfortunately, the man pages are installed to /usr/local/share/man instead of to /usr/local/man, which I thought the tools would've taken care of. Also, even though I see my library was successfully compiled and installed to /usr/local/lib, when I try to compile a program with gcc source.c -ldstring, I get: /usr/bin/ld: cannot find -ldstring Update: I can compile against my dstring library by using the following line: gcc source.c -L/usr/local/lib -ldstring. I guess it didn't know to search /usr/local/lib. man ldconfig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Autotools, libraries and man pages: oh my!
Hey everyone, So, I have a question. I have Makefile.am, configure.in and a file called dstring.pc.in (for a library of mine called dstring) for a project. It always built fine on Linux. My home is now FreeBSD. This is the first time I've tried to compile/install this library since moving away from Linux. I'm able to use autotools on FreeBSD to generate configure and Makefile.in, and can use gmake to compile and install it. Unfortunately, the man pages are installed to /usr/local/share/man instead of to /usr/local/man, which I thought the tools would've taken care of. Also, even though I see my library was successfully compiled and installed to /usr/local/lib, when I try to compile a program with gcc source.c -ldstring, I get: /usr/bin/ld: cannot find -ldstring Other open source projects I've seen have installed fine on FreeBSD just with the simple configure --prefix=/usr/local make make install. I'm not sure what's wrong with my own setup. Disclaimer: I have no idea what I'm doing :) Does anyone have a stab in the dark that might help me fix these things? I can send any of the three files above if you need to see them. Thanks so much everyone! James ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Autotools, libraries and man pages: oh my!
On 11/01/12 21:44, James Colannino wrote: [...]I'm able to use autotools on FreeBSD to generate configure and Makefile.in, and can use gmake to compile and install it. Unfortunately, the man pages are installed to /usr/local/share/man instead of to /usr/local/man, which I thought the tools would've taken care of. Also, even though I see my library was successfully compiled and installed to /usr/local/lib, when I try to compile a program with gcc source.c -ldstring, I get: /usr/bin/ld: cannot find -ldstring Update: I can compile against my dstring library by using the following line: gcc source.c -L/usr/local/lib -ldstring. I guess it didn't know to search /usr/local/lib. Still having trouble figuring out how to install the man pages properly, though :( James ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org