작성자: 전병관
제목: eclipse c++에서 MinGW과 wxWidgets을 이용해서 프로그램 개발
환경:
OS - VISTA home edition
설치:
install MinGW-5.1.4.exe into c:\bin\MinGW
uncompress gdb-6.8-mingw-3.tar.bz2 to c:\bin\MinGW
install MSYS-1.0.10.exe
uncompress wxMSW-2.8.8-Setup.zip to D:\hobby_cpp\wxMSW-2.8.8
uncompress eclipse-cpp-ganymede-win32.zip to d:\hobby_cpp\eclipse
작업단계:
run MSYS in window
$ vi .profile
alias ls="ls --color -F"
alias rm="rm -i"
export PS1='`pwd`> '
$ source .profile
/home/로그인아이디> mkdir wxMSW-2.8.8
/home/로그인아이디> vi /etc/fstab
c:/bin/MinGW /ming
d:/hobby_cpp/wxMSW-2.8.8 /home/로그인아이디/wxMSW-2.8.8
/home/로그인아이디> cd wxMSW-2.8.8
/home/로그인아이디/wxMSW-2.8.8> ls
BuildCVS.txt config.guess* locale/ wx-config-inplace.in*
INSTALL-MSW.txt config.sub* misc/ wx-config.in*
Makefile.in configure* mkinstalldirs* wxBase.spec
README-MSW.txt configure.in regen* wxGTK.spec
acinclude.m4 contrib/ samples/ wxMGL.spec
aclocal.m4 demos/ setup.h.in wxMotif.spec
art/ docs/ src/ wxX11.spec
autoconf_inc.m4 include/ tests/ wxwin.m4
autogen.sh* install-sh* utils/
build/ lib/ version-script.in
/home/로그인아이디/wxMSW-2.8.8> configure
/home/로그인아이디/wxMSW-2.8.8> make all
run eclise c++
make a new project in c++
c/c++ compile configuration in project properties
-D__WXMSW__
-I.
-DWXUSINGDLL
-I./../../samples
-I/home/steki/wxMSW-2.8.8/lib/wx/include/msw-ansi-release-2.8
-I../../include
-DWX_PRECOMP
-mthreads
-Wall
-Wundef
-Wno-ctor-dtor-privacy
-O2
-fno-strict-aliasing
./widgets.cpp
c/c++ link configuration in project properties
-mthreads
-L/home/steki/wxMSW-2.8.8/lib
-mwindows
-lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32
-lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32
-lwx_base_xml-2.8
-lwx_msw_adv-2.8
-lwx_msw_html-2.8
-lwx_msw_core-2.8
-lwx_base-2.8
-lwxtiff-2.8
-lwxjpeg-2.8
-lwxpng-2.8
-lwxzlib-2.8
-lwxregex-2.8
-lwxexpat-2.8
make and build a program
make class to use wxWidgets.
run the program compiled.
set PATH to access libs.
제목: eclipse c++에서 MinGW과 wxWidgets을 이용해서 프로그램 개발
환경:
OS - VISTA home edition
설치:
install MinGW-5.1.4.exe into c:\bin\MinGW
uncompress gdb-6.8-mingw-3.tar.bz2 to c:\bin\MinGW
install MSYS-1.0.10.exe
uncompress wxMSW-2.8.8-Setup.zip to D:\hobby_cpp\wxMSW-2.8.8
uncompress eclipse-cpp-ganymede-win32.zip to d:\hobby_cpp\eclipse
작업단계:
run MSYS in window
$ vi .profile
alias ls="ls --color -F"
alias rm="rm -i"
export PS1='`pwd`> '
$ source .profile
/home/로그인아이디> mkdir wxMSW-2.8.8
/home/로그인아이디> vi /etc/fstab
c:/bin/MinGW /ming
d:/hobby_cpp/wxMSW-2.8.8 /home/로그인아이디/wxMSW-2.8.8
/home/로그인아이디> cd wxMSW-2.8.8
/home/로그인아이디/wxMSW-2.8.8> ls
BuildCVS.txt config.guess* locale/ wx-config-inplace.in*
INSTALL-MSW.txt config.sub* misc/ wx-config.in*
Makefile.in configure* mkinstalldirs* wxBase.spec
README-MSW.txt configure.in regen* wxGTK.spec
acinclude.m4 contrib/ samples/ wxMGL.spec
aclocal.m4 demos/ setup.h.in wxMotif.spec
art/ docs/ src/ wxX11.spec
autoconf_inc.m4 include/ tests/ wxwin.m4
autogen.sh* install-sh* utils/
build/ lib/ version-script.in
/home/로그인아이디/wxMSW-2.8.8> configure
/home/로그인아이디/wxMSW-2.8.8> make all
run eclise c++
make a new project in c++
c/c++ compile configuration in project properties
-D__WXMSW__
-I.
-DWXUSINGDLL
-I./../../samples
-I/home/steki/wxMSW-2.8.8/lib/wx/include/msw-ansi-release-2.8
-I../../include
-DWX_PRECOMP
-mthreads
-Wall
-Wundef
-Wno-ctor-dtor-privacy
-O2
-fno-strict-aliasing
./widgets.cpp
c/c++ link configuration in project properties
-mthreads
-L/home/steki/wxMSW-2.8.8/lib
-mwindows
-lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32
-lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32
-lwx_base_xml-2.8
-lwx_msw_adv-2.8
-lwx_msw_html-2.8
-lwx_msw_core-2.8
-lwx_base-2.8
-lwxtiff-2.8
-lwxjpeg-2.8
-lwxpng-2.8
-lwxzlib-2.8
-lwxregex-2.8
-lwxexpat-2.8
make and build a program
make class to use wxWidgets.
run the program compiled.
set PATH to access libs.