Depuis des années ou je programme ( ça date pas d’hier ) , marre d’utiliser les “usines a gaz” ( microsoft , embarcadero ( ex borland ), eclipse , ….. ) et envie d’avoir la même interface pour développer des applications windows , linux et aussi pour des microprocesseur ( atmel , microchip , esp8266) .et arduino Apres quelques recherche j’ai découvert code::block un ide assez simple a utiliser et pouvant gérer plusieurs compilateurs . le choix est donc fait
pour installer tous ca on va avoir besoin de:
– code::block
– wxwidget ( pour créer les gui sous windows / linux )
– compilateur C sous windows ( gcc version 32 et 64 bits )
– compilateur C pour processeur atmel ( gcc-avr )
– arduino
– quelques utilitaires
Organisation de tous ça , je stocke toute la partie dev dans c:\dev , de base :
c:\dev
c:\dev\gcc-x86
c:\dev\gcc-x64
c:\dev\wxWidgets
c:\dev\codeblocks
on vas procéder par etapes
1) installation des compilateurs gcc 32 et 64 bits sous windows
2) installation et compilation de wxwidget
3) installation compilateur gcc pour atmel et arduino
4 ) installation et parametrage de code::block
1) gcc windows 32 et 64 bits :
aller sur http://tdm-gcc.tdragon.net/download et récupérer tdm-gcc-5.1.0-3.exe et tdm64-gcc-5.1.0-2.exe
– installation gcc 64 bits , lancer tdm64-gcc-5.1.0-2.exe , choisir create a new tdm-gcc install , choisir MinGW-w64 et c:\dev\gcc-x64\ comme chemin d’installation , décocher “add to path”
– installation de gcc 32 bits lancer tdm-gcc-5.1.0-3.exe et faire les même opérations que pour l’install 64 bits , sauf pour le dossier d’installation , mettre c:\dev\gcc-x86
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
2) wxwidget
aller sur https://www.wxwidgets.org/downloads/ et récupérer le zip windows source code ( actuellement 3.10 ) et décompresser dans c:\dev\wxwidget
aller dans C:\Dev\wxWidgets\build\msw et effacer tous les fichiers , sauf config.gcc et makefile.gcc
toujours dans ce même dossier on vas créer 2 fichiers cmd pour compiler en version 32 et 64 bits les librairies
buildx86.cmd
1 2 3 4 5 6 7 8 9 10 11 12 |
set path=C:\Dev\gcc-x86\bin C:\Dev\wxWidgets\build\msw mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 CFG=_32 mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 CFG=_32 mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=0 MONOLITHIC=1 BUILD=release UNICODE=1 CFG=_32 mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=0 MONOLITHIC=1 BUILD=debug UNICODE=1 CFG=_32 mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=0 BUILD=release UNICODE=1 CFG=_M32 mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=0 BUILD=debug UNICODE=1 CFG=_M32 mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=0 MONOLITHIC=0 BUILD=release UNICODE=1 CFG=_M32 mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=0 MONOLITHIC=0 BUILD=debug UNICODE=1 CFG=_M32 pause |
buildx64.cmd
1 2 3 4 5 6 7 8 9 10 11 12 |
set path=C:\Dev\gcc-x64\bin C:\Dev\wxWidgets\build\msw mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=0 MONOLITHIC=1 BUILD=release UNICODE=1 CFG=_64 mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=0 MONOLITHIC=1 BUILD=debug UNICODE=1 CFG=_64 mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 CFG=_64 mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 CFG=_64 mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=0 MONOLITHIC=0 BUILD=release UNICODE=1 CFG=_M64 mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=0 MONOLITHIC=0 BUILD=debug UNICODE=1 CFG=_M64 mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=0 BUILD=release UNICODE=1 CFG=_M64 mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=0 BUILD=debug UNICODE=1 CFG=_M64 pause |
lancer les 2 fichiers cmd et tant qu’administrateur et selon la vitesse de votre machine revenez quelques heures plus-tard , aller dans c:\dev\wxwidgets\build\msw normalement il doit y avoir des dossiers gcc-mswu_xx gcc-mswud_xx gcc-mswudll_xx avec xx ( 32 64 M32 M64 )
3) gcc avr et arduino
aller sur http://blog.zakkemble.co.uk/avr-gcc-6-1-0/ et récupérer la version 32 ou 64 bits selon votre configuration.
en cours d’écriture …………………
4) code::blocks
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
en cours d’écriture …………………