Date: Thu, 2 Oct 2008 10:19:47 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Desmond Chapman <que_deseja@hotmail.com> Cc: vbox-dev@virtualbox.org, freebsd-questions@freebsd.org Subject: Re: More vbox and build troubles. Message-ID: <20081002151947.GL86326@dan.emsphone.com> In-Reply-To: <BLU126-W48A10167A066B5601F1ABEED3D0@phx.gbl> References: <BLU126-W48A10167A066B5601F1ABEED3D0@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Oct 02), Desmond Chapman said: > > ***** Checking libpng ***** > compiling the following source file: > #include <cstdio> > #include <png.h> > extern "C" int main(void) > { > printf("found version %s", PNG_LIBPNG_VER_STRING); > #if PNG_LIBPNG_VER >= 10205 > printf(", OK.\n"); > return 0; > #else > printf(", expected version 1.2.5 or higher\n"); > return 1; > #endif > } > using the following command line: > g++ -O -Wall -o .tmp_out .tmp_src.cc "-lpng " > .tmp_src.cc:2:17: error: png.h: No such file or directory > .tmp_src.cc: In function 'int main()': > .tmp_src.cc:5: error: 'PNG_LIBPNG_VER_STRING' was not declared in this scope > > > I need the headers for this library- libpng-1.2.32. Are they in ports > as part of another package or do I need to build them? If so, how? Assuming you have the png port installed, add -I/usr/local/include -L/usr/local/lib to your compile line. -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081002151947.GL86326>