How to compile windows x64 program?
Posted: Fri Nov 22, 2013 5:38 am
I have installed tdm32-gcc and tdm64-gcc,
I compile wxwidgets3.0 use batch file:
my codelite environment is this:
I compile wxwidgets3.0 use batch file:
I could use codelite compile x64 program , but it couldn't run, the x86 program could run.@echo off
set MINGW_DIR_x64=C:\Go\MinGW64-4.8.1\
set MINGW_DIR_x86=C:\Go\MinGW32-4.8.1\
echo Buiding x64 platform
set VENDOR_NAME=x64
call "%MINGW_DIR_x64%\mingwvars.bat"
mingw32-make -f makefile.gcc CFG=_x64 CPP="gcc -E -D_M_AMD64" BUILD=debug SHARED=0 RUNTIME_LIBS=static DEBUG_INFO=1 VENDOR=%VENDOR_NAME% USE_OPENGL=1
mingw32-make -f makefile.gcc CFG=_x64 CPP="gcc -E -D_M_AMD64" BUILD=release SHARED=0 RUNTIME_LIBS=static DEBUG_INFO=0 VENDOR=%VENDOR_NAME% USE_OPENGL=1
mingw32-make -f makefile.gcc CFG=_x64 CPP="gcc -E -D_M_AMD64" BUILD=debug SHARED=1 RUNTIME_LIBS=dynamic DEBUG_INFO=1 VENDOR=%VENDOR_NAME% USE_OPENGL=1
mingw32-make -f makefile.gcc CFG=_x64 CPP="gcc -E -D_M_AMD64" BUILD=release SHARED=1 RUNTIME_LIBS=dynamic DEBUG_INFO=0 VENDOR=%VENDOR_NAME% USE_OPENGL=1
echo Buiding x86 platform
set VENDOR_NAME=x86
call "%MINGW_DIR_x86%\mingwvars.bat"
mingw32-make -f makefile.gcc CFG=_x86 BUILD=debug SHARED=0 RUNTIME_LIBS=static DEBUG_INFO=1 VENDOR=%VENDOR_NAME% USE_OPENGL=1
mingw32-make -f makefile.gcc CFG=_x86 BUILD=release SHARED=0 RUNTIME_LIBS=static DEBUG_INFO=0 VENDOR=%VENDOR_NAME% USE_OPENGL=1
mingw32-make -f makefile.gcc CFG=_x86 BUILD=debug SHARED=1 RUNTIME_LIBS=dynamic DEBUG_INFO=1 VENDOR=%VENDOR_NAME% USE_OPENGL=1
mingw32-make -f makefile.gcc CFG=_x86 BUILD=release SHARED=1 RUNTIME_LIBS=dynamic DEBUG_INFO=0 VENDOR=%VENDOR_NAME% USE_OPENGL=1
my codelite environment is this:
andCodeLiteDir=C:\Program Files (x86)\CodeLite
UNIT_TEST_PP_SRC_DIR=C:\Program Files (x86)\CodeLite\UnitTest++-1.3
PATH=.;C:\Go\wxWidgets-3.0.0\lib\gcc_dll_x86;C:\Go\MinGW32-4.8.1\bin;%PATH%
WXCFG=gcc_dll_x86\mswu
WXWIN=C:\Go\wxWidgets-3.0.0
CodeLiteDir=C:\Program Files (x86)\CodeLite
UNIT_TEST_PP_SRC_DIR=C:\Program Files (x86)\CodeLite\UnitTest++-1.3
PATH=.;C:\Go\wxWidgets-3.0.0\lib\gcc_dll_x64;C:\Go\MinGW64-4.8.1\bin;%PATH%
WXCFG=gcc_dll_x64\mswu
WXWIN=C:\Go\wxWidgets-3.0.0