MacOSX linking problem......

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Paddon
Posts: 43
Joined: Thu Jul 06, 2006 4:09 pm

MacOSX linking problem......

Post by Paddon »

Hey all,

I followed the MacOSX X-Code tutorial to a tee, but when I attempt to build I get the following error.

Code: Select all

libMacOSX.a(png.o) has local relocation entries in non-writable section (__TEXT,__text)
Command /usr/bin/gcc-4.0 failed with exit code 1
The only difference in what I did and what the tutorial did was when I attempted to set my active configuration, there was nothing in the sub menu. I have attatched a screenshot. I used the source code from tutorial 1, with the neccessary adjustments alluded in the Mac tutorial on this msg board, hence it should not be a source issue. I have included in the picture the build results and also what I mean when I say I cannot set my active build configuration.

Image
- Jeff Paddon
Undergraduate Research Assistant
Physics Department
St. Francis Xavier University
tbaptista
Posts: 6
Joined: Wed Apr 04, 2007 10:53 pm

Post by tbaptista »

Hi,

I had the same problem. The problem only appears on the Debug build. If you try the Release build, it works fine.

I tried to create a XCode project from scratch and the problem disappeared from the Debug build also. I couldn't figure out what the problem was in the first place. One thing I did differently on this project was to include all the external dependencies (libpng, libjpeg, zlib) in the static library form, rather than building from source together with Irrlicht. I don't think that this did the trick because I have tried that on the original XCode project and it didn't work.

Tiago Baptista
Post Reply