You are on page 1of 15

Build WxWidgets 3.1.5 Untuk Code Blocks Di Windows 8.

1 x64
https://www3.ntu.edu.sg/home/ehchua/programming/howto/CodeBlocks_HowTo.html

https://wiki.wxwidgets.org/CodeBlocks_Setup_Guide

https://wiki.codeblocks.org/index.php/WxWindowsQuickRef#Build_wxWidgets

Tools :

 C++ Kompiler & Debugger : GNU GCC MinGW versi 8.1


 Framework : wxWidgets versi 3.1.5
 IDE : Code Blocks versi 20.03

Persiapan : Setting Environment Variable GCC MinGW

Setting environment variable untuk GCC MinGW supaya bisa diakses dari folder mana pun
1. Kompilasi WxWidgets 3.1.5

mingw32-make.exe –f makefile.gcc SHARED=1 MONOLITHIC=1 UNICODE=1 BUILD=release

Keterangan :

SHARED : SHARED=1 proses kompilasi akan menghasilkan modul dinamis (file2 DLL)

 SHARED=0 proses kompilasi akan menghasilkan modul statis (static library)

MONOLITHIC : MONOLITHIC=1 proses kompilasi akan menghasilkan 1 file library

 MONOLITHIC=0 proses kompilasi akan menghasilkan banyak file library

BUILD : BUILD=release proses kompilasi akan menghasilkan WxWidget dengan mode release

 BUILD=debug proses kompilasi akan menghasilkan WxWidget dengan mode debug

UNICODE : UNICODE=1 proses kompilasi akan menghasilkan library yang mendukung karakter Unicode
(karakter2 non huruf latin)

 UNICODE=0 proses kompilasi akan menghasilkan library yang hanya mendukung karakter ASCII
(karakter2 huruf latin)

Proses kompilasi
Kompilasi selesai

Hasil kompilasi
2. Membuat Proyek

Klik File  New  Project


Pilih 3 opsi itu

Pilih Yes
Kompilasi setiap file cpp : Build  Compile current file. Build program : Build  Build

Run Program : Build  Run

Contoh program untuk ngetes WxWidgets 3.1.5 library


Lampiran

Setting compiler : Settings  Compiler  Toolchain executables


Mengatur C++ Debugger : Settings  Debugger  Default  Executable path

Selesai. Created By : C/C++ Coder Di Jakarta

You might also like