User forums > Using Code::Blocks

Building Code::Blocks with wxWidgets 2.6.1 on Mac OS X

<< < (2/4) > >>

grv575:
Oh sorry, those are the ips I get for google cache.  Real addresses:

http://trac.xiph.org/cgi-bin/trac.cgi/ticket/244
http://wiki.tcl.tk/2923
http://www.paginar.net/matias/articles/gd_x_howto.html

TheWizzard:
I get "Failed to load: <plugin> (Error 9: Bad File Descriptor)"

grv575:
Well my feeling is that it should work (to test try changing sdk\pluginmanager:ScanForPlugins()

--- Code: ---#ifdef __WXMSW__
#define PLUGINS_MASK _T("*.dll")
#else
#define PLUGINS_MASK _T("*.so")
#endif

--- End code ---
to

--- Code: --- #define PLUGINS_MASK _T("*.dylib")

--- End code ---

then make clean and make.  The relevant code is all under sdk/pluginmanager.cpp

--- Code: ---int PluginManager::ScanForPlugins(const wxString& path)
void PluginManager::LoadAllPlugins()
cbPlugin* PluginManager::LoadPlugin(const wxString& pluginName)

--- End code ---

The library calls:

--- Code: ---    wxDynamicLibrary* lib = new wxDynamicLibrary();
    lib->Load(pluginName);

--- End code ---

and wx ref seems to support .dylib files...
http://www.wxwidgets.org/manuals/2.6.1/wx_wxdynamiclibrary.html

takeshimiya:
Hi! I've noticed that the C::B CVS HEAD version still uses wxDockit 2.01

You'll probably want to compile C::B HEAD rather than VERSION_1 for Mac OS X, as it supports UNICODE, bug fixes, etc.

But wxDockit 2.01 is stopping that because it isn't unicode aware.

So my suggestion is to update to the latest wxDockit (wxDockit 2.1) as it fixes some bugs, supports better wx2.6, and have UNICODE support.

Here are some instructions on how to replace 2.01 with 2.1

Get wxDockit 2.1 from here.

macsmac:
hello,

gives there a good working "how to" compile C::B on Mac OS X for dummies?
I want to use wxWidgets for my next projects but I don't know enought abour make files and editing the C::B source code to make it work on a Mac :(
thnaks for your help.

regards,

MR

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version