FR:CodeBlocks
Code::Blocks fonctionne sur le Pi, bien qu'il soit un peu lent. Sur la page d'accueil se trouvent les liens vers leur wiki et leur forum.
Code:Blocks s'installe sur Raspian avec
sudo apt-get install codeblocks
.
Cela installe également codeblocks-common et codeblocks-contrib, qui apportent plusieurs bibliothèques et compilateurs ainsi que certains plugins (voir plus bas). La version n'est pas la toute dernière.
Fonctionnalités
Les caractéristiques et fonctionnalités suivantes sont disponibles dans Code::Blocks s'il est installé comme indiqué ci-dessus.
Compilateurs
Les compilateurs suivants peuvent être choisis :
- Compilateur GNU GCC (utilisez ce compilateur)
- Compilateur Intel C/C++
- Compilateur SDCC
- Compilateur Tiny C
- Compilateur GDC D
- Compilateur Digital Mars D
- Compilateur GNU ARM GCC (ne pas utiliser pour des programmes Raspberry Pi)
- Compilateur GNU AVR GCC
- Compilateur GNU GCC pour PowerPC
- Compilateur GNU GCC pour TriCore
Plugins
Les plugins suivants sont installés grâce aux commandes indiquées plus haut. Ils sont lus depuis /usr/lib/codeblocks/plugins :
- AStylePlugin
- Autosave
- AutoVersioning
- BrowseTracker
- BYOGames
- CB_Koders (Koders query)
- cbDragScroll (DragScroll)
- cbKeyBinder (Keyboard Shortcuts)
- Cccc
- ClassWizard
- CodeCompletion
- CodeSnippets
- CodeStat
- Compiler
- copystrings
- CppCheck
- Debugger
- EnvVars
- Exporter (Source Exporter)
- FilesExtensionHandler
- HeaderFixup
- HelpPlugin
- HexEditor
- IncrementalSearch
- lib_finder
- MouseSap
- OpenFilesList
- Profiler (CodeProfiler)
- ProjectsImporter
- RegExTestbed
- ScriptedWizard
- SymTab
- ThreadSearch
- ToDoList
- Valgrind
- wxSmith
- wxSmithAui
- wxSmithContribItems
- wxSmithMime
Langages
La syntaxe des langages suivants est vérifiée, grâce aux analyseurs lexicaux présents dans /usr/share/codeblocks/lexers/...
- gm
- squirrel
- cg
- ada
- matlab
- pascal
- masm
- make
- css
- sql
- f77
- ruby
- rc
- diff
- xml
- bash
- glsl
- properties
- vhdl
- html
- perl
- batch
- postscript
- nsis
- nassi
- angelscript
- vbscript
- lisp
- python
- verilog
- OgreCompositor
- OgreMaterial
- latex
- fortran
- prg
- haskell
- d
- cpp
- lua
- smalltalk
- caml
- hitasm
Projets GTK+
To use the GTK+ libraries for graphical windowed layouts requires the following settings.
- From the menu, Settings, Compiler and debugger settings, Other Settings, Compiler logging - set to Full command line. In the Build log, this shows the full commpiler and linker commands used, so that they can be verified.
- From the menu, Project, Build options, Compiler settings, Other options - add " `pkg-config --cflags gtk+-3.0` " (using backticks, not apostrophies)
- From the menu, Project, Build options, Linker settings, Other linker options - add " `pkg-config --libs gtk+-3.0` " (using backticks, not apostrophies)
Respectez les conventions standards d'écriture du code.