NOTE: If you want another version of wxWidgets (debug or non-Unicode) you still have to make sure you build a MONOLITHIC version (one big DLL) for linking Code::Blocks. Mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-fno-keep-inline-dllexport" >log.txt 2>&1 When everything is clean you can start compiling wxWidgets: This directory is the place where the object files are stored. NOTE: If you still have problems with compiling after cleaning, you could try to manually remove the gcc_dll directory under the build\msw directory. (It will not clean the intended files if these variables are not identical.) The clean target uses these variables and only cleans the specified version of the generated object and library files. NOTE: Make sure you use exactly the same options for this step and for the build step below. Mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-fno-keep-inline-dllexport" clean NOTE: This is normally SET PATH=C:\MingGW\bin To compile wxWidgets, open the command prompt window and change to the wxWidgets directory: Open a command prompt and type:īuilding wxWidgets Changing Directory and Setting Path If you didn't install MinGW yourself you have to ensure you are using a recent enough version of the make utility. You have to change it to your corresponding directory (e.g. NOTE: For the remainder of these instructions we call the MinGW directory. The same problem could arise if Cygwin is in the path. wxWidgets must be compiled from a "regular" command line (like cmd.exe), not from a Unix-like shell. ![]() Thus, if you have MSYS installed, ensure that \bin is not in your path before compiling wxWidgets. Furthermore, you cannot have MSYS in your path, or the wxWidgets compilation will fail. NOTE: For the remainder of these instructions we call the wxWidgets directory. Otherwise the directories won't be created correctly. If you use the plain zip version, make sure to unzip using the full path. ![]() You can just get the zip file because the installer is also a zipped version. (Note that there is also a winhelp file available.) You can choose between an installer and a zip file. The wxWidgets 3.0.0 distribution can be found at the wxWidgets download site. MinGW installation Installing the wxWidgets Source Code
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |