eranif wrote:Are you sure you are using the correct mingw32-make.exe?
Heh. I'm not at all sure. Since I'm trying to compile wxWidgets, using the 64-bit version seemed like the right one to use. But maybe not?
Here is the first occurrence of mingw32-make.exe that occurs in my path, and the directory in which it's located:
Code: Select all
C:\wxWidgets\build\msw>where mingw32-make.exe
C:\TDM-GCC-64\bin\mingw32-make.exe
C:\wxWidgets\build\msw>
I have two versions of mingw32-make.exe. One is in C:\TDM-GCC-32\bin, and the other is in C:\TDM-GCC-64\bin.
Can you print the $PATH% environment variable? (echo %path%)
Certainly! Also, here are my system environment variables WXWIN and WXCFG.
Code: Select all
C:\wxWidgets\build\msw>path
PATH=C:\Windows\;C:\Windows\System32\;C:\Windows\System32\Wbem\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\s
ystem32\config\systemprofile\.dnx\bin\;C:\ProgramData\Oracle\Java\javapath\;C:\Program Files (x86)\Intel\iCLS Client\;C:
\Program Files\Intel\iCLS Client\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C
:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static\;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86\;C:\Prog
ram Files (x86)\Intel\OpenCL SDK\3.0\bin\x64\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL\;C:\Progr
am Files\Intel\Intel(R) Management Engine Components\IPT\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Compon
ents\DAL\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT\;C:\Program Files\Microsoft DNX\Dnvm\;C
:\Program Files (x86)\KEDITW\;C:\Program Files (x86)\KEDITW\User\;C:\Program Files (x86)\KEDITW-DOS\;C:\TDM-GCC-64\bin\;
C:\wxWidgets\;C:\wxWidgets\bin\;C:\wxWidgets\include\;C:\wxWidgets\lib\gcc_dll\;F:\;F:\util\;
C:\wxWidgets\build\msw>set wxwin
WXWIN=C:\wxWidgets
C:\wxWidgets\build\msw>set wxcfg
WXCFG=gcc_lib/mswud
C:\wxWidgets\build\msw>
What is WXCFG supposed to be for a Windows / release, build? I'm not sure if wxWidgets is supposed to be in the form of a DLL or in an EXE...though I guess an EXE doesn't make much sense if I'm going to be using wxWidgets GUI routines to build my pages. So a DLL, then.
Try building the "Release" configuration (you dont really need debug version of wxWidgets, unless you plan on debugging it)
Okay! I deleted all the directories and files under C:\wxWidgets, and then reinstalled wxWidgets 3.1.0.
Here are the commands I use to build the release version of wxWidgets:
Code: Select all
C:
cd %WXWIN%\build\msw
mingw32-make -f makefile.gcc setup_h
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 MONOLITHIC=1 BUILD=release setup_h
mingw32-make -f Makefile.gcc SHARED=1 UNICODE=1 BUILD=release VENDOR=cl CXXFLAGS="-fno-keep-inline-dllexport -std=c++11" MONOLITHIC=1 clean
mingw32-make -f Makefile.gcc SHARED=1 UNICODE=1 BUILD=release VENDOR=cl CXXFLAGS="-fno-keep-inline-dllexport -std=c++11" MONOLITHIC=1
I just ran those commands. Here is how the build ended (after half an hour or so):
Code: Select all
In file included from ..\..\include/wx/msw/private.h:21:0,
from ../../src/msw/glcanvas.cpp:33:
..\..\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
^
../../src/msw/glcanvas.cpp:1371:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated
: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from ..\..\include/wx/msw/private.h:21:0,
from ../../src/msw/glcanvas.cpp:33:
..\..\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
^
g++ -shared -fPIC -o ..\..\lib\gcc_dll\wxmsw310u_gl_gcc_cl.dll gcc_mswudll\gldll_dummy.o gcc_mswudll\gldll_version_rc.o
gcc_mswudll\gldll_glcmn.o gcc_mswudll\gldll_glcanvas.o -mthreads -L..\..\lib\gcc_dll -Wl,--out-implib=..\..\lib\gcc_dl
l\libwxmsw31u_gl.a -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32
-lwinspool -lwinmm -lshell32 -lshlwapi -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lversion -lwsock32 -lw
ininet -lwxmsw31u -lopengl32 -lglu32
C:\wxWidgets\build\msw>
So, was the build successful? How can I tell?
Thanks for your help!