Author Topic: Errors after executing Code::Blocks  (Read 14525 times)

Offline ordak

  • Multiple posting newcomer
  • *
  • Posts: 105
    • My Site
Errors after executing Code::Blocks
« on: November 07, 2018, 12:13:16 pm »
Hi,

OS is Ubuntu 18.04.1 LTS
This happens in Code::Blocks rev version 11509:

Code
Scanning for lexers in /usr/local/share/codeblocks/lexers/...
Found 60 lexers
Loading lexer_autotools
Loading lexer_fortran
Loading lexer_yaml
Loading lexer_cg
Loading lexer_gm
Loading lexer_latex
Loading lexer_cpp
Loading lexer_OgreCompositor
Loading lexer_python
Loading lexer_tehex
Loading lexer_nsis
Loading lexer_ruby
Loading lexer_lua
Loading lexer_css
Loading lexer_batch
Loading lexer_cmake
Loading lexer_masm
Loading lexer_coffee
Loading lexer_java
Loading lexer_srec
Loading lexer_cu
Loading lexer_A68k
Loading lexer_vhdl
Loading lexer_properties
Loading lexer_powershell
Loading lexer_inno
Loading lexer_angelscript
Loading lexer_sql
Loading lexer_xml
Loading lexer_f77
Loading lexer_make
Loading lexer_haskell
Loading lexer_proto
Loading lexer_rc
Loading lexer_objc
Loading lexer_smalltalk
Loading lexer_bibtex
Loading lexer_caml
Loading lexer_perl
Loading lexer_verilog
Loading lexer_prg
Loading lexer_plain
Loading lexer_squirrel
Loading lexer_html
Loading lexer_glsl
Loading lexer_diff
Loading lexer_vbscript
Loading lexer_postscript
Loading lexer_hitasm
Loading lexer_bash
Loading lexer_ihex
Loading lexer_lisp
Loading lexer_registry
Loading lexer_markdown
Loading lexer_matlab
Loading lexer_ada
Loading lexer_OgreMaterial
Loading lexer_pascal
Loading lexer_javascript
Loading lexer_d
Configured 0 tools
Scanning for plugins in /home/mehdi/.local/share/codeblocks/plugins
Loaded 0 plugins
Scanning for plugins in /usr/local/lib/codeblocks/plugins
Manager failed to load XRC resource '/usr/local/share/codeblocks/Cccc.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/EditorConfig.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/headerfixup.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/Cscope.zip'.
Tools Plus Plugin: Registering shell type Piped Process Control
Manager failed to load XRC resource '/usr/local/share/codeblocks/ToolsPlus.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/wxSmithAui.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/DoxyBlocks.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/Valgrind.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/ThreadSearch.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/CppCheck.zip'.
Loaded 58 plugins
Loading:
AStylePlugin
wxSmith
wxSmithMime
Compiler
EnvVars
EditorTweaks
ClassWizard
Autosave
Debugger
SmartIndentLua
Cccc
SmartIndentPython
ReopenEditor
BrowseTracker
EditorConfig
cbDragScroll
MouseSap
HeaderFixup
Cscope
OpenFilesList
SmartIndentFortran
SmartIndentPascal
SmartIndentCpp
FileManager
FilesExtensionHandler
CodeSnippets
ToolsPlus
HelpPlugin
CodeCompletion
ScriptedWizard
rndgen
wxSmithAui
IncrementalSearch
SmartIndentXML
ToDoList
OccurrencesHighlighting
CodeStat
Abbreviations
SmartIndentHDL
RegExTestbed
Exporter
lib_finder
ProjectsImporter
ThreadSearch
NassiShneidermanPlugin
AutoVersioning
cbKeyBinder
HexEditor
wxSmithContribItems
CppCheck
copystrings
CB_Koders
Running startup script
Script plugin registered: Find Broken Files plugin
Script/function 'edit_startup_script.script' registered under menu '&Settings/-Edit startup script'

Code::Blocks SVN
OS : Ubuntu LTS

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Errors after executing Code::Blocks
« Reply #1 on: November 07, 2018, 12:29:02 pm »
How have you installed this? Is something visually broken?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ordak

  • Multiple posting newcomer
  • *
  • Posts: 105
    • My Site
Re: Errors after executing Code::Blocks
« Reply #2 on: November 07, 2018, 12:48:50 pm »
How have you installed this? Is something visually broken?

I checked out this from svn://svn.code.sf.net/p/codeblocks/code/trunk

I see nothing visually broken except some plugins like cccc , cppcheck , ...
Code::Blocks SVN
OS : Ubuntu LTS

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Errors after executing Code::Blocks
« Reply #3 on: November 07, 2018, 01:40:40 pm »
Your description is lacking detail, but I guess you've build manually and you're not using non-default prefix.
Which means that you might have another old installation that isn't removed completely messing up your current installation.

If I'm correct you'll have to clean up everything related to C::B and redo the make install step!
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ordak

  • Multiple posting newcomer
  • *
  • Posts: 105
    • My Site
Re: Errors after executing Code::Blocks
« Reply #4 on: November 07, 2018, 01:49:49 pm »
Your description is lacking detail, but I guess you've build manually and you're not using non-default prefix.
Which means that you might have another old installation that isn't removed completely messing up your current installation.

If I'm correct you'll have to clean up everything related to C::B and redo the make install step!

Yes, I have several installations of previous Code::Blocks. After I checked out the source code, I ran these commands:

Code
./bootstrap

Then :

Code
./configure --with-contrib-plugins=all
make
sudo make install


By the way how can I clean everything related to Code::Blocks ?
Code::Blocks SVN
OS : Ubuntu LTS

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7680
    • My Best Post
Re: Errors after executing Code::Blocks
« Reply #5 on: November 07, 2018, 06:11:52 pm »
I would try this command; but, there might be more info from a Linux guru on other commands to try and details on when "unistall" should be called.
Code
sudo make uninstall

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 stahta01

  • Lives here!
  • ****
  • Posts: 7680
    • My Best Post
Re: Errors after executing Code::Blocks
« Reply #6 on: November 07, 2018, 06:17:35 pm »
I see nothing from your first post that looks wrong to me. But, the messages you get are normal under Windows; while, being rare under Linux. I have no idea if they are now common under Linux builds.

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 blauzahn

  • Almost regular
  • **
  • Posts: 179
Re: Errors after executing Code::Blocks
« Reply #7 on: November 07, 2018, 09:45:33 pm »
on Ubuntu (here 16.04) I install via something like:

Code
sudo checkinstall -y make install 

This creates a deb package and installs it. Then you can uninstall via apt, synaptic etc. Handy, when your latest cb  shows a problem. Then you can uninstall that and reinstall the previous deb if you have kept it.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Errors after executing Code::Blocks
« Reply #8 on: November 07, 2018, 11:30:55 pm »
@blauzahn: Why don't you just make full dep packages?

@ordak: Deleting /usr/local is the only clean way to do it. But then you'll lose other softwares you've installed from source in the default prefix...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline blauzahn

  • Almost regular
  • **
  • Posts: 179
Re: Errors after executing Code::Blocks
« Reply #9 on: November 08, 2018, 07:13:17 am »
Quote
@blauzahn: Why don't you just make full dep packages?

Because I:
  • must have overlooked/forgotten about that and therefore
  • have not tried it yet. I will try to look it up when I have a bit more time. Can not find it immediately,
    neither in the wiki, nor in BUILD/README, nor via make [tab].
  • use checkinstall for several other programs as well (including wxWidgets). This is convenient.

Apart from the latter, I have no special reason to use checkinstall in particular. If there is a canonical
way, it is usually preferable of course. Thank you for remembering me.


Offline ordak

  • Multiple posting newcomer
  • *
  • Posts: 105
    • My Site
Re: Errors after executing Code::Blocks
« Reply #10 on: November 08, 2018, 09:02:10 am »
I uninstalled Code::Blocks and reinstalled it, still got some errors:

Code
sudo make uninstall

sudo checkinstall -y make install

Code
Scanning for lexers in /usr/local/share/codeblocks/lexers/...
Found 60 lexers
Loading lexer_autotools
Loading lexer_fortran
Loading lexer_yaml
Loading lexer_cg
Loading lexer_gm
Loading lexer_latex
Loading lexer_cpp
Loading lexer_OgreCompositor
Loading lexer_python
Loading lexer_tehex
Loading lexer_nsis
Loading lexer_ruby
Loading lexer_lua
Loading lexer_css
Loading lexer_batch
Loading lexer_cmake
Loading lexer_masm
Loading lexer_coffee
Loading lexer_java
Loading lexer_srec
Loading lexer_cu
Loading lexer_A68k
Loading lexer_vhdl
Loading lexer_properties
Loading lexer_powershell
Loading lexer_inno
Loading lexer_angelscript
Loading lexer_sql
Loading lexer_xml
Loading lexer_f77
Loading lexer_make
Loading lexer_haskell
Loading lexer_proto
Loading lexer_rc
Loading lexer_objc
Loading lexer_smalltalk
Loading lexer_bibtex
Loading lexer_caml
Loading lexer_perl
Loading lexer_verilog
Loading lexer_prg
Loading lexer_plain
Loading lexer_squirrel
Loading lexer_html
Loading lexer_glsl
Loading lexer_diff
Loading lexer_vbscript
Loading lexer_postscript
Loading lexer_hitasm
Loading lexer_bash
Loading lexer_ihex
Loading lexer_lisp
Loading lexer_registry
Loading lexer_markdown
Loading lexer_matlab
Loading lexer_ada
Loading lexer_OgreMaterial
Loading lexer_pascal
Loading lexer_javascript
Loading lexer_d
Configured 0 tools
Scanning for plugins in /home/mehdi/.local/share/codeblocks/plugins
Loaded 0 plugins
Scanning for plugins in /usr/local/lib/codeblocks/plugins
Manager failed to load XRC resource '/usr/local/share/codeblocks/Cccc.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/EditorConfig.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/headerfixup.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/Cscope.zip'.
Tools Plus Plugin: Registering shell type Piped Process Control
Manager failed to load XRC resource '/usr/local/share/codeblocks/ToolsPlus.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/wxSmithAui.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/DoxyBlocks.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/Valgrind.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/ThreadSearch.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/CppCheck.zip'.
Loaded 58 plugins
Loading:
AStylePlugin
wxSmith
wxSmithMime
Compiler
EnvVars
EditorTweaks
ClassWizard
Autosave
Debugger
SmartIndentLua
Cccc
SmartIndentPython
ReopenEditor
BrowseTracker
EditorConfig
cbDragScroll
MouseSap
HeaderFixup
Cscope
OpenFilesList
SmartIndentFortran
SmartIndentPascal
SmartIndentCpp
FileManager
FilesExtensionHandler
CodeSnippets
ToolsPlus
HelpPlugin
CodeCompletion
ScriptedWizard
rndgen
wxSmithAui
IncrementalSearch
SmartIndentXML
ToDoList
OccurrencesHighlighting
CodeStat
Abbreviations
SmartIndentHDL
RegExTestbed
Exporter
lib_finder
ProjectsImporter
ThreadSearch
NassiShneidermanPlugin
AutoVersioning
cbKeyBinder
HexEditor
wxSmithContribItems
CppCheck
copystrings
CB_Koders
Running startup script
Script plugin registered: Find Broken Files plugin
Script/function 'edit_startup_script.script' registered under menu '&Settings/-Edit startup script'

Code::Blocks SVN
OS : Ubuntu LTS

Offline blauzahn

  • Almost regular
  • **
  • Posts: 179
Re: Errors after executing Code::Blocks
« Reply #11 on: November 08, 2018, 09:24:32 am »
You probably still have stale files from a previous (maybe configured differenty) or parallel installation.
This can not be handled by make uninstall automatically.

Offline ordak

  • Multiple posting newcomer
  • *
  • Posts: 105
    • My Site
Re: Errors after executing Code::Blocks
« Reply #12 on: November 08, 2018, 12:03:55 pm »
@blauzahn: Why don't you just make full dep packages?

@ordak: Deleting /usr/local is the only clean way to do it. But then you'll lose other softwares you've installed from source in the default prefix...

Can you be more specific on what files/folders related to Code::Blocks to delete?

/usr/local has +5000 items taking 1.9 GB of space.
Code::Blocks SVN
OS : Ubuntu LTS

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Errors after executing Code::Blocks
« Reply #13 on: November 08, 2018, 01:24:22 pm »
To be safe you have to delete everything in this folder. This is why using the default prefix is a bad idea.

You could probably grep for codeblocks and hope if you've deleted everything, but I'm not sure you would succeed.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ordak

  • Multiple posting newcomer
  • *
  • Posts: 105
    • My Site
Re: Errors after executing Code::Blocks
« Reply #14 on: November 08, 2018, 03:34:02 pm »
To be safe you have to delete everything in this folder. This is why using the default prefix is a bad idea.

You could probably grep for codeblocks and hope if you've deleted everything, but I'm not sure you would succeed.

I deleted /usr/local folder and did this :

Code
sudo checkinstall -y make install

I still get this after running Code::Blocks :

Code
Scanning for lexers in /usr/local/share/codeblocks/lexers/...
Found 60 lexers
Loading lexer_autotools
Loading lexer_fortran
Loading lexer_yaml
Loading lexer_cg
Loading lexer_gm
Loading lexer_latex
Loading lexer_cpp
Loading lexer_OgreCompositor
Loading lexer_python
Loading lexer_tehex
Loading lexer_nsis
Loading lexer_ruby
Loading lexer_lua
Loading lexer_css
Loading lexer_batch
Loading lexer_cmake
Loading lexer_masm
Loading lexer_coffee
Loading lexer_java
Loading lexer_srec
Loading lexer_cu
Loading lexer_A68k
Loading lexer_vhdl
Loading lexer_properties
Loading lexer_powershell
Loading lexer_inno
Loading lexer_angelscript
Loading lexer_sql
Loading lexer_xml
Loading lexer_f77
Loading lexer_make
Loading lexer_haskell
Loading lexer_proto
Loading lexer_rc
Loading lexer_objc
Loading lexer_smalltalk
Loading lexer_bibtex
Loading lexer_caml
Loading lexer_perl
Loading lexer_verilog
Loading lexer_prg
Loading lexer_plain
Loading lexer_squirrel
Loading lexer_html
Loading lexer_glsl
Loading lexer_diff
Loading lexer_vbscript
Loading lexer_postscript
Loading lexer_hitasm
Loading lexer_bash
Loading lexer_ihex
Loading lexer_lisp
Loading lexer_registry
Loading lexer_markdown
Loading lexer_matlab
Loading lexer_ada
Loading lexer_OgreMaterial
Loading lexer_pascal
Loading lexer_javascript
Loading lexer_d
Configured 0 tools
Scanning for plugins in /home/mehdi/.local/share/codeblocks/plugins
Loaded 0 plugins
Scanning for plugins in /usr/local/lib/codeblocks/plugins
Manager failed to load XRC resource '/usr/local/share/codeblocks/Cccc.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/EditorConfig.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/headerfixup.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/Cscope.zip'.
Tools Plus Plugin: Registering shell type Piped Process Control
Manager failed to load XRC resource '/usr/local/share/codeblocks/ToolsPlus.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/wxSmithAui.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/DoxyBlocks.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/Valgrind.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/ThreadSearch.zip'.
Manager failed to load XRC resource '/usr/local/share/codeblocks/CppCheck.zip'.
Loaded 58 plugins
Loading:
AStylePlugin
wxSmith
wxSmithMime
Compiler
EnvVars
EditorTweaks
ClassWizard
Autosave
Debugger
SmartIndentLua
Cccc
SmartIndentPython
ReopenEditor
BrowseTracker
EditorConfig
cbDragScroll
MouseSap
HeaderFixup
Cscope
OpenFilesList
SmartIndentFortran
SmartIndentPascal
SmartIndentCpp
FileManager
FilesExtensionHandler
CodeSnippets
ToolsPlus
HelpPlugin
CodeCompletion
ScriptedWizard
rndgen
wxSmithAui
IncrementalSearch
SmartIndentXML
ToDoList
OccurrencesHighlighting
CodeStat
Abbreviations
SmartIndentHDL
RegExTestbed
Exporter
lib_finder
ProjectsImporter
ThreadSearch
NassiShneidermanPlugin
AutoVersioning
cbKeyBinder
HexEditor
wxSmithContribItems
CppCheck
copystrings
CB_Koders
Running startup script
Script plugin registered: Find Broken Files plugin
Script/function 'edit_startup_script.script' registered under menu '&Settings/-Edit startup script'

Code::Blocks SVN
OS : Ubuntu LTS