Author Topic: Can't install codeblocks-contrib on ubuntu 12.04  (Read 29014 times)

Offline HeReSY

  • Single posting newcomer
  • *
  • Posts: 8
Can't install codeblocks-contrib on ubuntu 12.04
« on: May 19, 2012, 09:57:39 am »
Hi,

i use codeblocks for my projects for a long time.
Now i upgraded my pc with the newest ubuntu version 12.04.

After that i installed codeblocks from jens repository.
My projects uses the autoversioning plugin which is located in the codeblocks-contrib package.

But i can't install that package because of its dependencies with libhunspell.
it requiers version 1.2 but i have version 1.3 installed.
How can i install the contrib package anyway?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12005
    • Travis build status
Re: Can't install codeblocks-contrib on ubuntu 12.04
« Reply #1 on: May 19, 2012, 10:07:40 am »
I guess you can build your own packages in this case...
(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 MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: Can't install codeblocks-contrib on ubuntu 12.04
« Reply #2 on: May 19, 2012, 02:48:37 pm »
But i can't install that package because of its dependencies with libhunspell.
it requiers version 1.2 but i have version 1.3 installed.
How can i install the contrib package anyway?
Huh? Shouldn't it be the opposite, so you have 1.2 but need 1.3? In any case, you can edit this setting, as on Windows we work with 1.3 already, so the code is compatible to 1.3.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Can't install codeblocks-contrib on ubuntu 12.04
« Reply #3 on: May 19, 2012, 04:00:48 pm »
It's automatically turned in dependency, because the packages are build on debian stable.
So not easy to fix.

Offline HeReSY

  • Single posting newcomer
  • *
  • Posts: 8
Re: Can't install codeblocks-contrib on ubuntu 12.04
« Reply #4 on: May 20, 2012, 09:05:07 am »
HI,

thanks for the answer.
I will try to build the plugins by myself, or is there a way to force the installation.
I don't need the plugin based on libhunspell. So i can delete or disable it later manually.

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Can't install codeblocks-contrib on ubuntu 12.04
« Reply #5 on: May 20, 2012, 09:28:35 am »
You can force installation on the commandline, if the packages are already downloaded (you can download them manually from my server: http://apt.jenslody.de/pool/main/c/codeblocks/.
And install the contrib-plugin packages (codeblocks-contrib, codeblocks-contrib-common and codeblocks-libwxcontrib0) with dpkg -i --force-depends [package names sepearted by space.

This will most likely break updates with package-manager, because they will detect the codeblocks-contrib package as defect and will (in most cases) not do anything, before this is repaired.

Self-building is quite straight forward, but you need a lot of development packages.

Offline HeReSY

  • Single posting newcomer
  • *
  • Posts: 8
Re: Can't install codeblocks-contrib on ubuntu 12.04
« Reply #6 on: May 20, 2012, 10:37:35 am »
Thanks for that to.

I will try it.

But befor compiling the whole stuff, i tried to extract the plugin i need and copy it to there destination folder.
This would be the easiest way, if it works.

Offline pasgui

  • Almost regular
  • **
  • Posts: 165
    • LGP
Re: Can't install codeblocks-contrib on ubuntu 12.04
« Reply #7 on: May 20, 2012, 11:18:25 am »
Hi,

You can try also to install the packages build for ubuntu; have a look here: http://lgp203.free.fr/

Regards,

pasgui

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Can't install codeblocks-contrib on ubuntu 12.04
« Reply #8 on: May 20, 2012, 11:35:20 am »
Hi,

You can try also to install the packages build for ubuntu; have a look here: http://lgp203.free.fr/

Regards,

pasgui
That's surely the best way to do it.
Nevertheless I have to deal with libhunspell, because it's different in stable and testing/unstable and there is no backport for it and I do not have the time to mainatin the builds for all flavours.

So I will probably freeze support for stable with actual trunk and start building nightlies on testing.

Offline Freem

  • Almost regular
  • **
  • Posts: 219
Re: Can't install codeblocks-contrib on ubuntu 12.04
« Reply #9 on: May 21, 2012, 02:35:28 pm »
Another solutions are:
_ mixing sources in /etc/apt/preferences and /etc/apt/sources.list (but I do no think it is a good idea for Ubuntu)
_ download libhunspell from debian's website: http://packages.debian.org/search?keywords=libhunspell and install it with dpkg -i

Both those solutions have their problems:
The first is not so simple to configure and you could have strange behavior when trying to do updates. Especially with an Ubuntu distribution mixed with a Debian one... But it works well on Debian.
The second will not allow you to have updates of libhunspell, because it will not be referenced in your sources.list.

Here, I am using the first one and it works perfectly, but I am running Debian.

I just write that for Debian users, because I do not think mixing distribution is a very good thing. And mixing versions might be tricky sometimes.

Offline neo1691

  • Multiple posting newcomer
  • *
  • Posts: 68
Re: Can't install codeblocks-contrib on ubuntu 12.04
« Reply #10 on: June 05, 2012, 07:09:20 pm »
Even i came across the same thing on my ubuntu12.04 now. Pretty new to building everything from source. :(

EDIT: If i download all the packages from here http://lgp203.free.fr/ubuntu/?showdetail=codeblocks10#codeblocks10-row and i install them using sudo dkpg -i will codeblocks work properly? Also will the nightly be able to update itself from the repo?
« Last Edit: June 05, 2012, 07:13:20 pm by neo1691 »

Offline Freem

  • Almost regular
  • **
  • Posts: 219
Re: Can't install codeblocks-contrib on ubuntu 12.04
« Reply #11 on: June 05, 2012, 10:59:56 pm »
All Ubuntu users will have the same problem.
Debian testing (and more recent debians ) users too. (At least, they will need to use one package from debian stable... not so hard to do. Maybe it is as simple as that for Ubuntu too?)

If you download the package from a non official package, people here will not be able to give you a hint on "will it works correctly?".
But it seems it works fine, at least for Pasgui.

Offline neo1691

  • Multiple posting newcomer
  • *
  • Posts: 68
Re: Can't install codeblocks-contrib on ubuntu 12.04
« Reply #12 on: June 07, 2012, 08:50:53 am »
Okay i downloaded all the packages and tried to install them, here is the only error that i got

Code: [Select]
Errors were encountered while processing:
 codeblocks-wxcontrib-headers_10.05svn8024-0ubuntu1~precise_all.deb
 codeblocks-contrib
]

When i ran codeblocks from terminal here is what failed to load

Code: [Select]
neo1691@Innovator:~/Downloads/Codeblocks packages$ codeblocks
Initialize EditColourSet .....
Initialize EditColourSet: done.
ToDoList: loaded
AutoVersioning: loaded
HelpPlugin: loaded
ProjectsImporter: loaded
OpenFilesList: loaded
CodeStat: loaded
CodeCompletion: loaded
AStylePlugin: loaded
cbKeyBinder: loaded
ClassWizard: loaded
Valgrind: loaded
RegExTestbed: loaded
BYOGames: loaded
ToolsPlus: loaded
lib_finder: loaded
cbDragScroll: loaded
SpellChecker: loaded
wxSmithAui: loaded
Profiler: loaded
wxSmithContribItems: loaded
FilesExtensionHandler: loaded
copystrings: loaded
BrowseTracker: loaded
IncrementalSearch: loaded
MouseSap: loaded
ReopenEditor: loaded
Debugger: loaded
wxSmith: loaded
wxSmithMime: loaded
CppCheck: loaded
DoxyBlocks: loaded
Compiler: loaded
EnvVars: loaded
CB_Koders: loaded
NassiShneidermanPlugin: loaded
ThreadSearch: loaded
Autosave: loaded
SymTab: loaded
Abbreviations: loaded
Cccc: loaded
EditorTweaks: loaded
ScriptedWizard: loaded
Cscope: loaded
HeaderFixup: loaded
CodeSnippets: loaded
HexEditor: loaded
Exporter: loaded
Todo List plugin activated
AutoVersioning plugin activated
Help plugin plugin activated
Foreign projects importer plugin activated
Open files list plugin activated
Code statistics plugin activated
Code completion plugin activated
Source code formatter (AStyle) plugin activated
Keyboard shortcuts plugin activated
Class wizard plugin activated
Valgrind plugin activated
Regular expressions testbed plugin activated
BYO Games plugin activated
ToolsPlus plugin activated
Updating class browser...
Class browser updated.
Library finder plugin activated
DragScroll plugin activated
SpellChecker plugin activated
wxSmith - Aui plugin activated
Code profiler plugin activated
wxSmith - Contrib Items plugin activated
Files extension handler plugin activated
Copy Strings to clipboard plugin activated
BrowseTracker plugin activated
IncrementalSearch plugin activated
MouseSap plugin activated
ReopenEditor plugin activated
Debugger plugin activated
wxSmith plugin activated
wxSmith - MIME plugin plugin activated
CppCheck plugin activated
DoxyBlocks plugin activated
Added compiler "GNU GCC Compiler"

(codeblocks:8854): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width 18 and height -17
Added compiler "Intel C/C++ Compiler"
Added compiler "SDCC Compiler"
Added compiler "Tiny C Compiler"
Added compiler "GDC D Compiler"
Added compiler "LLVM D Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "GNU Fortran Compiler"
Added compiler "G95 Fortran Compiler"
Added compiler "GNU ARM GCC Compiler"
Added compiler "GNU AVR GCC Compiler"
Added compiler "GNU GCC Compiler for PowerPC"
Added compiler "GNU GCC Compiler for TriCore"
Compiler plugin activated
Environment variables plugin activated
Koders query plugin activated
NassiShneidermanPlugin plugin activated
ThreadSearch plugin activated
Autosave plugin activated
Symbol Table Plugin plugin activated
Abbreviations plugin activated
Cccc plugin activated
Editor Tweaks plugin: Building menu
Editor Tweaks plugin: making the menu 14
EditorTweaks 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 'Lightfeather project'
Project wizard added for 'Matlab 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 'SDL 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 'ARM Project'
Project wizard added for 'AVR 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 'C/C++ header'
File(s) wizard added for 'Fortran source'
Scripted wizard plugin activated
Cscope plugin activated
Header Fixup plugin activated
Code snippets plugin activated
HexEditor plugin activated
Source Exporter plugin activated

(codeblocks:8854): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'

(codeblocks:8854): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed

(codeblocks:8854): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'

(codeblocks:8854): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed
Loading toolbar...
Initializing plugins...
      

EDIT: Here is the codeblocks log

Code: [Select]
Scanning for lexers in /usr/share/codeblocks/lexers/...
Found 43 lexers
Loading lexer_pascal
Loading lexer_ruby
Loading lexer_prg
Loading lexer_nsis
Loading lexer_postscript
Loading lexer_sql
Loading lexer_rc
Loading lexer_masm
Loading lexer_bibtex
Loading lexer_properties
Loading lexer_OgreMaterial
Loading lexer_haskell
Loading lexer_smalltalk
Loading lexer_gm
Loading lexer_bash
Loading lexer_make
Loading lexer_cg
Loading lexer_ada
Loading lexer_caml
Loading lexer_lua
Loading lexer_f77
Loading lexer_hitasm
Loading lexer_lisp
Loading lexer_vhdl
Loading lexer_OgreCompositor
Loading lexer_css
Loading lexer_A68k
Loading lexer_html
Loading lexer_perl
Loading lexer_matlab
Loading lexer_vbscript
Loading lexer_verilog
Loading lexer_angelscript
Loading lexer_xml
Loading lexer_cpp
Loading lexer_batch
Loading lexer_squirrel
Loading lexer_latex
Loading lexer_python
Loading lexer_diff
Loading lexer_glsl
Loading lexer_d
Loading lexer_fortran
Configured 0 tools
Scanning for plugins in /home/neo1691/.codeblocks/share/codeblocks/plugins
Loaded 0 plugins
Scanning for plugins in /usr/lib/codeblocks/plugins
Tools Plus Plugin: Registering shell type Piped Process Control
/usr/lib/codeblocks/plugins/libFileManager.so: not loaded (missing symbols?)
Loaded 46 plugins
Loading:
ToDoList
AutoVersioning
HelpPlugin
ProjectsImporter
OpenFilesList
CodeStat
CodeCompletion
AStylePlugin
cbKeyBinder
ClassWizard
Valgrind
RegExTestbed
BYOGames
ToolsPlus
lib_finder
cbDragScroll
SpellChecker
SpellChecker: Thesaurus files '/usr/share/codeblocks/SpellChecker/th_de_CH.idx' not found!
wxSmithAui
Profiler
wxSmithContribItems
FilesExtensionHandler
copystrings
BrowseTracker
IncrementalSearch
MouseSap
ReopenEditor
Debugger
wxSmith
wxSmithMime
CppCheck
DoxyBlocks
Compiler
EnvVars
CB_Koders
NassiShneidermanPlugin
ThreadSearch
Autosave
SymTab
Abbreviations
Cccc
EditorTweaks
ScriptedWizard
Cscope
HeaderFixup
CodeSnippets
HexEditor
Exporter
Running startup script
Script plugin registered: Find Broken Files plugin
Script/function 'edit_startup_script.script' registered under menu '&Settings/-Edit startup script'


EDIT2: I had to remove codeblocks completely remove codeblocks from synaptic as the package manager was broken
« Last Edit: June 07, 2012, 09:03:07 am by neo1691 »

Offline neo1691

  • Multiple posting newcomer
  • *
  • Posts: 68
Re: Can't install codeblocks-contrib on ubuntu 12.04
« Reply #13 on: June 07, 2012, 11:36:12 am »
I removed yet there is code blocks installed in ubuntu. (Dont know why)

Now i ran a simple Hello world program to test it, and got an error.

CODE:

Code: [Select]
#include <stdio.h>

main ()
{
    printf("Hello CB");
    return 0;
}

ERROR:
Code: [Select]
gcc    -c "/home/neo1691/Programming/IDE's Tests/hello.c" -o "/home/neo1691/Programming/IDE's Tests/hello.o"
s: 1: s: Syntax error: Unterminated quoted string
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings (0 minutes, 0 seconds)
 

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12005
    • Travis build status
Re: Can't install codeblocks-contrib on ubuntu 12.04
« Reply #14 on: June 07, 2012, 11:48:56 am »
Does it build from the command line?
(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!]