Re: [Dclib-devel] dlib c++ on mac os x
Brought to you by:
davisking
From: Davis K. <dav...@us...> - 2008-07-22 18:20:58
|
Huh, that is a bizarre warning. Does it happen whenever something mentions long double? Do you have any extra compiler flags set or anything other than the defaults? -Davis On Tue, Jul 22, 2008 at 9:06 AM, Mark de Jong <mar...@ma...> wrote: > P.P.S. (Sorry) There are lots of "warning" like the following: > Compiling array2d.cpp > In file included from ../../dlib/array2d/array2d_kernel_1.h:7, > from ../../dlib/array2d.h:7, > from array2d.cpp:10: > ../../dlib/algs.h:467: warning: use of `long double' type; its size may > change > in a future release > ../../dlib/algs.h:467: warning: (Long double usage is reported only once > for > each file. > ../../dlib/algs.h:467: warning: To disable this warning, use > -Wno-long-double.) > > On Jul 22, 2008, at 5:28 AM, Davis King wrote: > > All those errors in the dlib/test/makefile are dependency lines added in by > the makedepend program. So you can type make dep and it will remake them on > OS X assuming you have makedep installed and it is in your path. But it > has been my experience with OS X that a lot of the unix utilities like > makedepend either aren't installed by default or aren't in your path. So > you might have to address that. But you can just remove all the lines below > the # DO NOT DELETE and it will build fine. > > You can also use cmake (www.cmake.org) to build the test program and in > fact that is probably the easiest solution. > > > As for the example programs you have to compile with some command line > statement like g++ example.cpp /source/dlib/all/source.cpp -I /source -l X11 > > (That is a capitol -i and then a lower case -l) > > You might also have to tell it where to find the X11 development libraries > if the compiler can't find them automatically. They are usually somewhere > like > > /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/ > > > Or if you aren't doing any X11 GUI stuff then you can #define > DLIB_NO_GUI_SUPPORT and then you won't have to worry about linking to X11. > > > Hope that helps, > Davis > > On Tue, Jul 22, 2008 at 1:19 AM, Mark de Jong <mar...@ma...> wrote: > >> Hi, again, >> >> I was able to compile two of your samples, "GUI" and "HTTP Server", and >> they execute as expected. >> >> However, I'm still not sure what to do with the "test" samples, mentioned >> in my previous email, below. >> >> Any suggestions would be appreciated. >> >> Thanks, >> >> -- Mark >> >> On Jul 21, 2008, at 9:14 PM, Mark de Jong wrote: >> >> Hi! >>> >>> I just downloaded your library to use on Mac OS X 10.5.4. I have Xcode >>> 3.1 (and all its associated components) installed and can build other C and >>> Obj-C programs. I'm running this on a PowerBook G4 (a PowerPC laptop). >>> >>> When I try to compile the "test" using the "makefile", I get the >>> following error: >>> >>> djembe:dlib/dlib-17.6/dlib/test mdj$ make >>> make: *** No rule to make target `/usr/include/features.h', needed >>> by `main.o'. Stop. >>> >>> So, I created a dummy "features.h" file and placed it in /usr/include, >>> after which I get the following error: >>> >>> djembe:dlib/dlib-17.6/dlib/test mdj$ make >>> make: *** No rule to make target `/usr/include/bits/wordsize.h', >>> needed by `main.o'. Stop. >>> >>> So, I'm thinking I missed something in your documentation. I did look >>> through a lot of it, but could not find something obvious to help me get >>> started. >>> >>> The examples don't compile easily from the command line, either. However, >>> there I think I'm probably not linking in some important library (like, >>> possibly, libcpp ... or something like that.) Regular C programs compile >>> just fine. >>> >>> I'll admit that my C++ is a bit rusty, so I'm guessing I'm missing >>> something simple and obvious. >>> >>> Do you have any suggestions that might be of help here? >>> >>> Thanks! >>> >>> -- Mark >>> >>> P.S. I did look in the "help" section of your sourceforge forum, but >>> nothing Mac OS X related jumped out. >>> >> >> > > |