Author Topic: wxsmith plugin, where is it?  (Read 16969 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: wxsmith plugin, where is it?
« Reply #15 on: February 11, 2019, 10:52:30 pm »
Is there a real reason you do not wish to try the pre-build Ubuntu binaries?

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline jjenson

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: wxsmith plugin, where is it?
« Reply #16 on: February 11, 2019, 10:56:13 pm »
You need to uninstall the manually installed libraries this build method complains about.

This is what I had to do when I tried this method about 2 to 4 years, ago.

Tim S.

I would if I knew how.

Offline jjenson

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: wxsmith plugin, where is it?
« Reply #17 on: February 11, 2019, 11:03:06 pm »
Is there a real reason you do not wish to try the pre-build Ubuntu binaries?

Tim S.

They never work for me.

Offline jjenson

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: wxsmith plugin, where is it?
« Reply #18 on: February 11, 2019, 11:19:19 pm »
To recap, I'm now able to do

sudo ./configure --with-contrib-plugins=all

everything configures fine.

then I do a:

sudo make

and it completes without any errors.

then I do a:

sudo make install

runs until I get the following:

libtool: install: error: cannot install `libAstyle.la' to a directory not ending in /usr/lib/codeblocks/plugins

What does that even mean? I looked in that directory and didn't see a libAstyle.la. I looked in the directory I'm building from and it exists. I even tried copying into that directory and tried again and still get that same error. WTF?

Offline sodev

  • Regular
  • ***
  • Posts: 497
Re: wxsmith plugin, where is it?
« Reply #19 on: February 11, 2019, 11:36:03 pm »
Not sure if this is the cause of the error, but do not run configure and make as root! Only the final make install must be run as root.

Offline jjenson

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: wxsmith plugin, where is it?
« Reply #20 on: February 11, 2019, 11:50:03 pm »
if I run configure without sudo I get:

./configure: line 2442: config.log: Permission denied
./configure: line 2452: config.log: Permission denied



Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: wxsmith plugin, where is it?
« Reply #21 on: February 11, 2019, 11:53:13 pm »
if I run configure without sudo I get:

./configure: line 2442: config.log: Permission denied
./configure: line 2452: config.log: Permission denied

That is because you ran it as root in the past; you should run make uninstall as root to try to undo some of the damage.
Then, delete the folder and start over.

Edit: If using SVN you can just delete all the files except for the svn folder and then as a normal user run svn update to restore the files.

Tim S.
« Last Edit: February 11, 2019, 11:55:44 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline jjenson

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: wxsmith plugin, where is it?
« Reply #22 on: February 12, 2019, 12:00:17 am »
if I run configure without sudo I get:

./configure: line 2442: config.log: Permission denied
./configure: line 2452: config.log: Permission denied

That is because you ran it as root in the past; you should run make uninstall as root to try to undo some of the damage.
Then, delete the folder and start over.

Edit: If using SVN you can just delete all the files except for the svn folder and then as a normal user run svn update to restore the files.

Tim S.

Okay, I did sudo make uninstall, deleted the folder and started again. Seems to be running so far.

I was able to do the config without sudo and I am in the middle of compiling.

I have a decades of experience in programming ASM. C and C++, but I have less than a years experience using linux; so bear with me. I just dumped Windows about six months back and have been running Peppermint 9 ever since.
« Last Edit: February 12, 2019, 12:13:51 am by jjenson »

Offline jjenson

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: wxsmith plugin, where is it?
« Reply #23 on: February 12, 2019, 12:57:15 am »
Okay, I was able to completely compile and install with no errors. Apparently, me using sudo had caused much of the problems.

However, when I started codeblocks, I got a message that popped up with the following:

One or more plugins were not loaded

This usually happens when a plugin is built for a different version of code::blocks SDK

Check the application log for more info.

List of failed plugins:

libwsmithcontribitems.so
libwxsmith.so
libwxSmithAui.so


Of course they don't tell you where this application log is stored, so I couldn't get more info.

I tried to start a project using wxsmith and like before I got the same message "wxsmith not loaded, cannot continue."

What do I do now?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: wxsmith plugin, where is it?
« Reply #24 on: February 12, 2019, 01:02:14 am »
@jjenson
Can you show all the log message or code/command in the code tag?
like below:
Code
code/command/log message put in code tag
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline jjenson

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: wxsmith plugin, where is it?
« Reply #25 on: February 12, 2019, 01:09:32 am »
@jjenson
Can you show all the log message or code/command in the code tag?
like below:
Code
code/command/log message put in code tag

Pardon my ignorance as I'm not exactly sure what you mean. If I start codeblocks from the commandline, I get the following:

~/Downloads $ codeblocks
Starting Code::Blocks Release 17.12  rev 11256 Feb 11 2019, 18:14:39 - wx3.1.2 (Linux, unicode) - 64 bit
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
Valgrind: loaded
cbDragScroll: loaded
lib_finder: loaded
EditorTweaks: loaded
FilesExtensionHandler: loaded
Abbreviations: loaded
EditorConfig: loaded
RegExTestbed: loaded
Profiler: loaded
AutoVersioning: loaded
OpenFilesList: loaded
EnvVars: loaded
Autosave: loaded
HexEditor: loaded
IncrementalSearch: loaded
OccurrencesHighlighting: loaded
BrowseTracker: loaded
Cscope: loaded
BYOGames: loaded
ToolsPlus: loaded
CodeCompletion: loaded
SpellChecker: loaded
ToDoList: loaded
Cccc: loaded
MouseSap: loaded
CppCheck: loaded
ReopenEditor: loaded
ProjectsImporter: loaded
ScriptedWizard: loaded
SmartIndentHDL: loaded
DoxyBlocks: loaded
ClassWizard: loaded
CodeStat: loaded
FileManager: loaded
HelpPlugin: loaded
SmartIndentPython: loaded
HeaderFixup: loaded
ThreadSearch: loaded
SmartIndentCpp: loaded
SmartIndentLua: loaded
ProjectOptionsManipulator: loaded
SmartIndentXML: loaded
SmartIndentFortran: loaded
CB_Koders: loaded
Debugger: loaded
NassiShneidermanPlugin: loaded
AStylePlugin: loaded
CodeSnippets: loaded
copystrings: loaded
SmartIndentPascal: loaded
Compiler: loaded
Exporter: loaded
SymTab: loaded
cbKeyBinder: loaded
Valgrind plugin activated
DragScroll plugin activated
Library finder plugin activated
Editor Tweaks plugin: Building menu
Editor Tweaks plugin: making the menu 15
Editor Tweaks plugin: Folding menu
EditorTweaks plugin activated
Files extension handler plugin activated
Abbreviations plugin activated
EditorConfig plugin for Code::Blocks plugin activated
Regular expressions testbed plugin activated
Code profiler plugin activated
AutoVersioning plugin activated
Open files list plugin activated
Environment variables plugin activated
Autosave plugin activated
HexEditor plugin activated
IncrementalSearch plugin activated
OccurrencesHighlighting plugin activated
BrowseTracker plugin activated
Cscope plugin activated
BYO Games plugin activated
ToolsPlus plugin activated
Detected dict path: /usr/share/hunspell
Detected thes path: /usr/share/myspell/dicts
Found dictionary: es_ES
Found dictionary: es_PY
Found dictionary: en_AU
Found dictionary: de_DE
Found dictionary: en_GB
Found dictionary: es_EC
Found dictionary: it_IT
Found dictionary: en_ZA
Found dictionary: es_CU
Found dictionary: es_PE
Found dictionary: fr_CA
Found dictionary: es_CL
Found dictionary: es_CO
Found dictionary: es_GT
Found dictionary: it_CH
Found dictionary: es_CR
Found dictionary: de_DE_frami
Found dictionary: es_SV
Found dictionary: es_HN
Found dictionary: es_US
Found dictionary: de_AT_frami
Found dictionary: ru_RU
Found dictionary: es_PR
Selected dictionary: en_US
Found dictionary: en_US
Found dictionary: fr_CH
Found dictionary: de_CH_frami
Found dictionary: fr_BE
Found dictionary: es_NI
Found dictionary: pt_PT
Found dictionary: es_VE
Found dictionary: de_CH
Found dictionary: fr_FR
Found dictionary: es_BO
Found dictionary: es_AR
Found dictionary: de_AT
Found dictionary: es_PA
Found dictionary: es_DO
Found dictionary: fr_LU
Found dictionary: es_UY
Found dictionary: pt_BR
Found dictionary: fr
Found dictionary: es_MX
Found dictionary: fr_MC
Found dictionary: en_CA
Detected bitmap path: /usr/local/share/codeblocks/SpellChecker
Detected bitmap path: /usr/local/share/codeblocks/SpellChecker
SpellChecker plugin activated
Todo List plugin activated
Cccc plugin activated
MouseSap plugin activated
CppCheck plugin activated
ReopenEditor plugin activated
Foreign projects importer plugin activated
Project wizard added for 'Empty project'
Project wizard added for 'Fortran application'
Project wizard added for 'Fortran library'
Project wizard added for 'Fortran DLL'
Project wizard added for 'Console application'
Project wizard added for 'D application'
Project wizard added for 'FLTK project'
Project wizard added for 'GLFW project'
Project wizard added for 'GLUT project'
Project wizard added for 'GTK+ project'
Project wizard added for 'Irrlicht project'
Project wizard added for 'Java application'
Project wizard added for 'Lightfeather project'
Project wizard added for 'Matlab project'
Project wizard added for 'OpenCV project'
Project wizard added for 'OpenGL project'
Project wizard added for 'Ogre project'
Project wizard added for 'Code::Blocks plugin'
Project wizard added for 'QT4 project'
Project wizard added for 'QT4 (shared) project'
Project wizard added for 'QT5 project'
Project wizard added for 'SDL project'
Project wizard added for 'SDL2 project'
Project wizard added for 'SFML project'
Project wizard added for 'Static library'
Project wizard added for 'Shared library'
Project wizard added for 'wxWidgets project'
Build-target wizard added for 'Console'
Build-target wizard added for 'Static library'
Build-target wizard added for 'wxWidgets'
Project wizard added for 'Arduino Project'
Project wizard added for 'ARM Project'
Project wizard added for 'AVR Project'
Project wizard added for 'MSP430 Project'
Project wizard added for 'TriCore Project'
Project wizard added for 'PowerPC Project'
Project wizard added for 'MCS51 Project'
File(s) wizard added for 'Empty file'
File(s) wizard added for 'C/C++ source'
File(s) wizard added for 'D source'
File(s) wizard added for 'C/C++ header'
File(s) wizard added for 'Fortran source'
File(s) wizard added for 'Java source'
Scripted wizard plugin activated
SmartIndentHDL plugin activated
DoxyBlocks plugin activated
Class wizard plugin activated
Code statistics plugin activated
FileManager plugin activated
Help plugin plugin activated
SmartIndentPython plugin activated
Header Fixup plugin activated
ThreadSearch plugin activated
SmartIndentCpp plugin activated
SmartIndentLua plugin activated
Project options manipulator plugin activated
SmartIndentXML plugin activated
SmartIndentFortran plugin activated
Koders query plugin activated
Debugger plugin activated
NassiShneidermanPlugin plugin activated
Code snippets plugin activated
Copy Strings to clipboard plugin activated
SmartIndentPascal plugin activated
Added compiler "GNU GCC Compiler"
Added compiler "Intel C/C++ Compiler"
Added compiler "GDC D Compiler"
Added compiler "GNU Fortran Compiler"
Added compiler "G95 Fortran Compiler"
Added compiler "GNU GCC Compiler for ARM"
Added compiler "GNU GCC Compiler for TriCore (HighTec)"
Added compiler "*No Compiler*"
Added compiler "Tiny C Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "GNU GCC Compiler for MSP430 (HighTec)"
Added compiler "GNU GCC Compiler for Blackfin"
Added compiler "GNU GCC Compiler for LM32"
Added compiler "GNU GCC Compiler for PowerPC EABI"
Added compiler "GNU GCC Compiler for AVR"
Added compiler "LLVM Clang Compiler"
Added compiler "GNU GCC Compiler for Android"
Added compiler "GNU GCC Compiler for PowerPC (HighTec)"
Added compiler "GNU GCC Compiler for LM8"
Added compiler "GNU GCC Compiler for ZPU"
Added compiler "LLVM D Compiler"
Added compiler "Small Device C Compiler"
Added compiler "PGI Fortran Compiler"
Compiler plugin activated
Source Exporter plugin activated
Symbol Table Plugin plugin activated
Keyboard shortcuts plugin activated
Loading toolbar...
Initializing plugins...
KeyBinder failed UpdateById on[919][Backup_failsafe]
KeyBinder failed UpdateById on[920][backup_latest_beta]

(codeblocks:29248): Gtk-CRITICAL **: 19:06:06.068: IA__gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed

Offline jjenson

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: wxsmith plugin, where is it?
« Reply #26 on: February 12, 2019, 03:25:48 pm »


Here is a screenshot of what I was getting every time I started codeblocks. That little yellow warning box would pop up for a few seconds and then disappear. Codeblocks would then function fine, but I still couldn't use the wxsmith plugin.

The message states that this is usually caused when a plugin is built for a different version of codeblocks; but all the plugins and the main program itself was built from the same archive. So I figured the only thing it could be is that some parts of another version of codeblocks that was installed using apt-get was still installed; so I did a 'sudo apt-get purge codeblocks'. Not much happened, but I followed that with 'sudo apt-get autoremove' to remove libraries that weren't needed. I then tried starting codeblocks and it wouldn't start; so I figured, I would start fresh. I did a 'sudo make uninstall' to completely remove what was there and followed that with 'sudo make clean'. I then deleted the folder and extracted a new folder and went through the ./configure, make, make install routine. Now every time I start codeblocks, I get the following:


I click continue as two more appear with each click exactly the same and then codeblocks starts and this time wxsmith works correctly. That assertion I get has something to do with wrong size images being loaded into imagelists. Can someone please tell me how to fix this problem?
« Last Edit: February 12, 2019, 03:48:35 pm by jjenson »

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: wxsmith plugin, where is it?
« Reply #27 on: February 12, 2019, 04:07:18 pm »
Can you expand the Backtrace in the error message window and post it here? I was thinking that obfuscated fixed this error some time ago...

Offline jjenson

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: wxsmith plugin, where is it?
« Reply #28 on: February 12, 2019, 05:04:39 pm »
Can you expand the Backtrace in the error message window and post it here? I was thinking that obfuscated fixed this error some time ago...

ASSERT INFO:
./src/generic/imaglist.cpp(85): assert "bitmapSize == m_size" failed in Add(): All bitmaps in wxImageList must have the same size

BACKTRACE:
[1] wxGenericImageList::Add(wxBitmap const&)
[2] wxsResourceTree::LoadImage(wxString const&)
[3] wxsAutoResourceTreeImage::wxsAutoResourceTreeImage(wxString const&, bool)
[4] wxsRegisterItem<wxsStaticBitmap>::wxsRegisterItem(wxString, wxsItemType, wxString, long, bool)
[5] _dl_catch_exception
[6] _dl_catch_exception
[7] _dl_catch_error
[8] dlopen
[9] wxDynamicLibrary::RawLoad(wxString const&, int)
[10] wxDynamicLibrary::Load(wxString const&, int)
[11] PluginManager::LoadPlugin(wxString const&)
[12] PluginManager::ScanForPlugins(wxString const&)
[13] wxEntry(int&, wchar_t**)
[14] __libc_start_main

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: wxsmith plugin, where is it?
« Reply #29 on: February 12, 2019, 06:49:52 pm »
sadly this does not tell us what plugin causes the error...
Do you start codeblocks through the command line?
If you stop codeblocks with this error message, what plugin is the last that was loaded?


I do not get this error...
Can it be that there are some old resources still left from the old codeblocks installation?
Have you deleted the ~/.config/codeblocks folder?