trying to build from source

Discussion and announcements regarding the Mac port… er, original version of Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
harry747
Deadly
Deadly
Posts: 135
Joined: Mon Feb 23, 2009 8:57 pm
Location: England

trying to build from source

Post by harry747 »

yesterday i downloaded the source code and installed the other stuff that is needed. now the problem is that when i compile, i get lots of errors like this:

"_png_handle_as_unknown", referenced from:
_png_read_info in pngread.o
_png_read_end in pngread.o
"_png_set_mem_fn", referenced from:
_png_create_read_struct_2 in pngread.o
"_png_destroy_struct_2", referenced from:
_png_create_read_struct_2 in pngread.o
_png_destroy_read_struct in pngread.o
_png_destroy_read_struct in pngread.o
_png_destroy_read_struct in pngread.o

what do they mean, and what can i do?
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

It looks like you do not have libpng installed in your system or it is installed incorrectly. You will have to build from source or install precompiled development libraries.

I also think that the error messages say more than just this. Does this appear during linking or during compiling? Some additional information could be useful.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

That’s rather odd. Xcode should be building an appropriately-configured version of libpng for you.

Just to be sure, you should be building Oolite.xcodeproj using Xcode, with the Build All target and (for starters) the Debug configuration. Also, try Clean All Targets from the Build menu.

To get the full error messages, click the third button from the left at the bottom of the build window. This should show you the build transcript, with all build messages as plain text which can be copied and pasted. A copy of the whole build transcript from a clean build would be useful. (Also, which version of Xcode and Mac OS X are you using?)
User avatar
harry747
Deadly
Deadly
Posts: 135
Joined: Mon Feb 23, 2009 8:57 pm
Location: England

Post by harry747 »

I solved the problem by downloading everything again. now it works.

OSX 10.5.6, xcode 3.1.2

I recently bought an analogue joystick which i couldn't get to work, so I decided to take a look at the source code.
Post Reply