Author Topic: Non-bundle of CB on Mac OS X can't load any plugins!  (Read 3360 times)

Offline Easior Lars

  • Multiple posting newcomer
  • *
  • Posts: 44
Non-bundle of CB on Mac OS X can't load any plugins!
« 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:
  • 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.
« Last Edit: August 29, 2015, 02:15:23 pm by Easior Lars »
Development Environments:GCC+CodeBlocks+wxWidgets
Developing Languages:Bash+Python+C/CPP+LaTeX
Developer Utils:Emacs+GIT+OpenSSH+GPG
OS:Mac OS X, Gentoo/Kali Linux/Fedora/CentOS, MS Windows
Blog:http://easior.i11r.com

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Non-bundle of CB on Mac OS X can't load any plugins!
« Reply #1 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Non-bundle of CB on Mac OS X can't load any plugins!
« Reply #2 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ