My english is poor, so i'll go with short phrases trying to explain that i'd need and why.
What I have:
- two BeagleBoneBlack boards (BBBs) with different Debian images: one have Gcc 4.9.2 and one with Gcc 6.3.0 and wxWidgets 3.0.3 linux libraries compiled by the BBBs (i mean: i use the BBB to compile)
- A C++ GUI app with wxWidgets that is developed and debugged on Windows 7, then compiled by the BBBs themselves (so, each one uses the Gcc version it have installed)
- Code::Blocks on the Windows7 PC
- two MinGW32 versions in the Windows7 PC, the sames of the BBBs.
- No system/user PATH and other variables set in Windows bout MinGW and wxWidgets: i want to do everything inside Code::Blocks or using BATCH files (which sets them but are not "stored" in the system).
Two different build of the wxWidgets on Win7, one for each MinGW version, so i can make the Code::BLock project compile the app using one of the two version (as different Targets) and debug them.
What i've tried to do
I've made two folders in the wxWidgets 3.0.3 directory, called "Build Win Debug 6.3" and "Build Win Debug 4.9"
Each of them contains a "StartEnv.bat" with this commands:
Code: Select all
@echo off
set PATH=C:\SVILUPPO\Toolchains\MinGW 6.3.0-1\bin;%PATH%
set WXWIN="%~dp0..\"
echo %WXWIN%
cd "%~dp0"
"C:\Windows\system32\cmd.exe"
By clicking on the StartEnv, i obtain a "DOS" windows with this environment settings:
Code: Select all
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Parduz\AppData\Roaming
BORLAND_BIN=C:\PROGRAM FILES (X86)\BORLAND\BDS\4.0\BIN
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=OTTICI-HP
ComSpec=C:\Windows\system32\cmd.exe
C_EM64T_REDIST11=C:\Program Files (x86)\Common Files\Intel\Shared Files\cpp\
FPPUILang=en-US
FP_NO_HOST_CHECK=NO
Grande=C:\Program Files (x86)\EPSON_P2B\Printer Software\Status Monitor
HOMEDRIVE=C:
HOMEPATH=\Users\Parduz
KMP_DUPLICATE_LIB_OK=TRUE
LDRAWDIR=C:\Users\Public\Documents\LDraw
LOCALAPPDATA=C:\Users\Parduz\AppData\Local
LOGONSERVER=\\OTTICI-HP
NUMBER_OF_PROCESSORS=2
OnlineServices=Online Services
OOBEUILang=it-IT
OS=Windows_NT
Path=C:\SVILUPPO\Toolchains\MinGW 6.3.0-1\bin;C:\SVILUPPO\TOOLS\MinGW\bin\;C:\_Parduz_\_APPS_\ImageMagick-6.9.3-Q16;C:\Program Files (x86)\Common Files\Intel\Shared Files\cpp\BIN\INTEL64;C:\WINDOWS\MICROSOFT.NET\FRAMEWORK\V1.1.4322\;C:\PROGRAM FILES\COMMON FILES\MICROSOFT SHARED\WINDOWS LIVE;C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT SHARED\WINDOWS LIVE;C:\Windows\SYSTEM32;C:\Windows;C:\Windows\SYSTEM32\WBEM;C:\Windows\SYSTEM32\WINDOWSPOWERSHELL\V1.0\;C:\PROGRAM FILES (X86)\INTEL\OPENCL SDK\2.0\BIN\X86;C:\PROGRAM FILES (X86)\INTEL\OPENCL SDK\2.0\BIN\X64;C:\PROGRAM FILES (X86)\BORLAND\COMPONENTS\TMS COMPONENT PACK\BPL\;C:\PROGRAM FILES (X86)\BORLAND\CALIBERRM SDK 2005 R2\LIB;C:\PROGRAM FILES (X86)\WINDOWS LIVE\SHARED;C:\Users\Parduz\Documents\Borland Studio Projects\Bpl
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
Platform=BPC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2a07
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\Parduz\AppData\Local\Temp
TMP=C:\Users\Parduz\AppData\Local\Temp
USERDOMAIN=OTTICI-HP
USERNAME=Parduz
USERPROFILE=C:\Users\Parduz
VBOX_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
windir=C:\Windows
windows_tracing_flags=3
WXWIN="C:\SVILUPPO\Toolchains\wxWidgets 3.0.3\Build Win Debug 6.3\..\"
mingw32-make -f ../build/msw/makefile.gcc SHELL=CMD.exe SHARED=0 MONOLITHIC=0 BUILD=debug UNICODE=1
but it can't find the "config.gcc" file... so i'm guessing i don't know how to build in a directory different from /build/msw...
QUESTIONS (finally )
- I know how to build the libraries in different folders using the MSYS shell and "configure", but how can i do this using MinGW-Make?
- How to make sure that all the wx component / libraries are build? (the app is still in early stages, i don't know if i'll need XML or what else)
- (if someone already know it) How should i set then Codeblock options to have it compile using one of the two folders? (i mean: should it search in my "custom" build folders or in the "main" wxWidgets one?