User forums > Using Code::Blocks

Compiling on Mac OS X

<< < (6/13) > >>

TheWizzard:
Ok,

with the updated make and latest CVS I get:


--- Quote ---Compiling sdk/wxscintilla/src/PlatWX.cpp...
sdk/wxscintilla/src/PlatWX.cpp: In constructor `Font::Font()':
sdk/wxscintilla/src/PlatWX.cpp:93: error: `ascent' undeclared (first use this function)

--- End quote ---

I'm confused. Guess I'll just have to wait for a new codeblocks, as I have little to no knowledge of wx.

grv575:
I'm compiling right now.  As soon as everything tests OK I'll post needed changes to the CVS Makefile (based on the Makefile byo posted), but try this:

remove all -fno-pcc-struct-return
(i.e. change PROJECT CFLAGS to
*_PROJECT_CFLAGS= -Wall -g -pipe -fmessage-length=0 `wx-config --cflags`
)

scintilla is missing #defines.  change the scintilla target CFLAGS (which fixes your error):
scintilla_CFLAGS= $(scintilla_PROJECT_CFLAGS) -DGTK -DSCI_LEXER -DLINK_LEXERS -DWXMAKINGDLL_SCI $(scintilla_GLOBAL_CFLAGS)

add -Ldevel for sdk :
sdk_PROJECT_LIBDIRS= -Lsdk/tinyxml -Ldevel

also make sure you compiled wxwidgets 2.6 as nonunicode.  wxdockit 2.01 needs some unicode patches (2.1 is unicode compatible and wxIFM is also being looked at).

TheWizzard:
Okay,

Thx, your tips worked. I (of course) got an error when compiling wxDockit. I tried to just make it use GTK for the mac platform, which actually compiled, but won't link.

I get many of those:


--- Quote ---ld: src/wxDockit/lib/libwxDockit.a(dockhost.o) illegal reference for -dynamic code (section difference reference from section (__TEXT,__eh_frame) relocation entry (138) to symbol: __ZN12wxWindowListD0Ev defined in dylib: /usr/local/lib/libwx_mac_core-2.6.dylib)

--- End quote ---

Is it really incompatible or just something that can be fixed with some minor tweaks? As aforementioned I know little to nothing about wx, so I can't really port it. All the stuff wxDockit calls seems to be there in wxMac (it compiles), but I can't figure out what the linker message means.

grv575:
`wx-config --cflags` gives you which flags?
is -fPIC defined (think mac needs PIC libs)

TheWizzard:

--- Quote ----I/usr/local/lib/wx/include/mac-ansi-release-2.6 -I/usr/local/include/wx-2.6 -D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA
--- End quote ---

That's wx-config --cflags

I just added -fPIC to ???_PROJECT_CFLAGS

It's now compiling.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version