[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

Re: [XaraXtreme-dev] Build problems on Mac


This rather cryptic error normally means gcc is whinging about problems
with precompiled headers. Try a "make clean", and then try again.
If that doesn't fix it, I'd guess it's still a precompiled headers problem,
but I don't know quite what.

The problem /might/ be to do with where you've include the wx file. Try
including from the header from which all the others are included (I forget
which right now).


--On 02 September 2007 21:48 +0200 Thomas Keller <me@xxxxxxxxxxxxxxxx> wrote:

Hi all!

I'm trying to create a MacPort of XaraLX and stumbled across a few
problems. I managed to patch around some of them (for some reason
<wx/listctrl.h> had to be included explicitely for wxOil/fileinfolist.h,
patch attached), but for others I have no clue. F.e. there are some
warnings spit out by wxOil, but since I don't know nothing about
wxWidgets I don't know whats wrong there.

Finally, the following error pops up repeatedly:

-Wno-unknown-pragmas -g -fexceptions -O3 -fno-strict-aliasing
-Wstrict-aliasing=2  -O2
-I/opt/local/include/wx-2.6 -D__WXMAC__ -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -DNO_GCC_PRAGMA    -I/opt/local/include/libxml2
-I/opt/local/include  -I../PreComp -I../wxOil -I.././Kernel -I.././wxOil
-I.././wxOil/Res -I.././tools -I.././GDraw -I.././PreComp -I.././wxXtra
-MP -MF ".deps/libKernel_a-hotkeys.Tpo" -c -o libKernel_a-hotkeys.o
`test -f 'hotkeys.cpp' || echo './'`hotkeys.cpp; \
then mv -f ".deps/libKernel_a-hotkeys.Tpo"
".deps/libKernel_a-hotkeys.Po"; else rm -f
".deps/libKernel_a-hotkeys.Tpo"; exit 1; fi
In file included from hotkeys.cpp:117:
../wxOil/wxkeymap.h:5:22: error: calling fdopen: Bad file descriptor

while wxOil/wxkeymap.h is perfectly readable:

$ ll wxOil/wxkeymap.h
-rw-r--r--   1 root  admin  702B Aug 31 11:24 wxOil/wxkeymap.h

Any hints?

Thanks in advance,

only dead fish swim with the stream: http://thomaskeller.biz/blog
Am Anfang war das Wort: http://www.schäuble-muss-weg.de