News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

[wxSmith] wxSmithContribItems not loaded on Mac OS X

Started by afb, April 20, 2007, 05:59:18 PM

Previous topic - Next topic

byo

Quote from: afb on April 26, 2007, 10:27:19 AM
Still need to fix the bug where the .so module ends up
in the wrong directory. Maybe just "mv" it after install ?


/usr/local/lib/libwxsmith.so
/usr/local/share/codeblocks/plugins/libwxsmithcontribitems.so


That won't help much. From what I've read, libtool will store library's path somewhere and won't allow to load from another location :/

I also found out what's the problem with automake. When generating libraries from one Makefile.am, it uses $(libdir) global variable to set output directory for libraries. And despite all those superb functions it has , it won't allow to specify custom dir separately for each library :x.  No problem, only need to mess the source with some another directory, put wxsmithpluginregistrants.cpp into it add another Makefile.am, register it inside main configure.in and maybe it will work.

I'm just annoyed with it, two days lost for searching for such stupid thing...

[UPDATE]: Ok, I've got results: NO WAY, it won't work. Only because libwxsmith is created before libwxsmithlib (what's forced by fact that libwxsmith is in subdirectory and subdirectories are processed first). Enough, 2.30 AM, give up.  I'll waste another day tomorrow by totally reorganizing wxSmith's directory layout just because automake wants so... @#$@#%

mandrav

Quote[UPDATE]: Ok, I've got results: NO WAY, it won't work. Only because libwxsmith is created before libwxsmithlib (what's forced by fact that libwxsmith is in subdirectory and subdirectories are processed first).

That's easy to fix. In Makefile.am, change the SUBDIRS line like from:

SUBDIRS=wxSmithLib

to:

SUBDIRS=. wxSmithLib

Notice the '.' :).
Be patient!
This bug will be fixed soon...

byo

Quote from: mandrav on April 27, 2007, 08:52:22 AM
Quote[UPDATE]: Ok, I've got results: NO WAY, it won't work. Only because libwxsmith is created before libwxsmithlib (what's forced by fact that libwxsmith is in subdirectory and subdirectories are processed first).

That's easy to fix. In Makefile.am, change the SUBDIRS line like from:

SUBDIRS=wxSmithLib

to:

SUBDIRS=. wxSmithLib

Notice the '.' :).

Looks like it works :D Thanks Boss, you saved my day  8)