Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Easior Lars on August 29, 2015, 02:12:40 pm

Title: Non-bundle of CB on Mac OS X can't load any plugins!
Post by: Easior Lars on August 29, 2015, 02:12:40 pm
I try to build CB of version SVN rev 10415 and wxWidgets 3.1 likewise in Linux, as follows:
Code: bash
$ mkdir cocoabuild && cd cocoabuild
$ ../configure --prefix="${HOME}/Developer/CodeBlocks" \
     --with-contrib-plugins="yes,-FileManager,-NassiShneiderman,-spellchecker" \
              CXXFLAGS='-stdlib=libstdc++' --with-wxdir=${HOME}/Developer/wxWidgets/cocoabuild
$ nice make && make install
$ cd ${HOME}/Developer/CodeBlocks/bin
$ ./codeblocks
CB is started up as usually. However, All CB plugins, including core plugins are losts for searching wrong plugin path:
Quote
Scanning for plugins in /Users/someone/Library/Application Support/codeblocks/share/codeblocks/plugins
Loaded 0 plugins
Scanning for plugins in /Users/someone/Developer/CodeBlocks/bin/../share/codeblocks
Loaded 0 plugins
In fact, all CB plugins is installed in /Users/someone/Developer/CodeBlocks/lib/codebloks/plugins:
Code: bash
$ ls /Users/someone/Developer/CodeBlocks/lib/codeblocks/plugins/
libAutoVersioning.la            libProfiler.la                  libSymTab.la                    libcodesnippets.la              libkeybinder.la
libAutoVersioning.so            libProfiler.so                  libSymTab.so                    libcodesnippets.so              libkeybinder.so
libBrowseTracker.la             libProjectOptionsManipulator.la libThreadSearch.la              libcodestat.la                  liblib_finder.la
libBrowseTracker.so             libProjectOptionsManipulator.so libThreadSearch.so              libcodestat.so                  liblib_finder.so
libCccc.la                      libRegExTestbed.la              libToolsPlus.la                 libcompiler.la                  liboccurrenceshighlighting.la
libCccc.so                      libRegExTestbed.so              libToolsPlus.so                 libcompiler.so                  liboccurrenceshighlighting.so
libCppCheck.la                  libReopenEditor.la              libValgrind.la                  libcopystrings.la               libopenfileslist.la
libCppCheck.so                  libReopenEditor.so              libValgrind.so                  libcopystrings.so               libopenfileslist.so
libCscope.la                    libSmartIndentCpp.la            libabbreviations.la             libdebugger.la                  libprojectsimporter.la
libCscope.so                    libSmartIndentCpp.so            libabbreviations.so             libdebugger.so                  libprojectsimporter.so
libDoxyBlocks.la                libSmartIndentFortran.la        libastyle.la                    libdefaultmimehandler.la        libscriptedwizard.la
libDoxyBlocks.so                libSmartIndentFortran.so        libastyle.so                    libdefaultmimehandler.so        libscriptedwizard.so
libEditorConfig.la              libSmartIndentHDL.la            libautosave.la                  libdragscroll.la                libtodo.la
libEditorConfig.so              libSmartIndentHDL.so            libautosave.so                  libdragscroll.so                libtodo.so
libEditorTweaks.la              libSmartIndentLua.la            libbyogames.la                  libenvvars.la                   libwxSmithAui.la
libEditorTweaks.so              libSmartIndentLua.so            libbyogames.so                  libenvvars.so                   libwxSmithAui.so
libHexEditor.la                 libSmartIndentPascal.la         libcb_koders.la                 libexporter.la                  libwxsmith.la
libHexEditor.so                 libSmartIndentPascal.so         libcb_koders.so                 libexporter.so                  libwxsmith.so
libIncrementalSearch.la         libSmartIndentPython.la         libclasswizard.la               libheaderfixup.la               libwxsmithcontribitems.la
libIncrementalSearch.so         libSmartIndentPython.so         libclasswizard.so               libheaderfixup.so               libwxsmithcontribitems.so
libMouseSap.la                  libSmartIndentXML.la            libcodecompletion.la            libhelp_plugin.la
libMouseSap.so                  libSmartIndentXML.so            libcodecompletion.so            libhelp_plugin.so
There are two problem boring me:
It remind me of Macports' patch for Codeblocks, but I can't figure it out. Any hint is welcome.
Title: Re: Non-bundle of CB on Mac OS X can't load any plugins!
Post by: BlueHazzard on September 01, 2015, 12:28:50 am
There are two problem boring me:
  • Why are all shared libraries of CB plugins appended .so on Mac OS X?
  • Why does non-bundle CB locate plugins in ../share/codeblocks?
It remind me of Macports' patch for Codeblocks, but I can't figure it out. Any hint is welcome.
i think you have already found out, that there are no active mac developer ( or deep mac user) on c::b so i think any patch who fixes bugs are welcome  ;)

greetings
Title: Re: Non-bundle of CB on Mac OS X can't load any plugins!
Post by: MortenMacFly on September 01, 2015, 08:23:23 am
The recent Mac builds (done by me) where based on building C::B on the Mac using C::B and not the Autostuff. Then, you simply have to tun the "mac_pack" script which is in the build_tools folder. This should still work and all resources are in proper places.