From: Milind G. <mil...@gm...> - 2013-10-02 00:09:36
|
Hi, I am trying to build wxLua on windows using tdm gcc. If I try building wxwidgets monolithic it does not work, so without monolithic I have the CMAKE output after I do configure a couple of times is: * --------------------------------------------------------------------------- * CMake command line options and tips specific to this project * * In the CMake GUI you can set values and press configure a few times * and until there are no more red items, then press generate. * * Usage: cmake -D[OPTION_NAME]=[OPTION_VALUE] /path/to/CMakeLists.txt/ * --------------------------------------------------------------------------- * -DHELP=TRUE * Show this help message and exit, no files will be generated. * -DCMAKE_BUILD_TYPE=[Debug, Release, RelWithDebInfo, MinSizeRel] : (Default Debug) * Makefiles : You must set the build type to Debug, Release... * MSVC GUI : No need to set this since you can choose it in the GUI. * -DBUILD_SHARED_LIBS=[TRUE, FALSE] : (Default static in MSW, shared in Linux) * Build shared (.DLL or .so) or static (.lib or .a) libraries. * --------------------------------------------------------------------------- ***************************************************************************** * BUILD TYPE: Debug * BUILD_SHARED_LIBS: OFF ***************************************************************************** * System is 32-bit TRUE, is 64-bit FALSE ***************************************************************************** * CMAKE_SOURCE_DIR = C:/Users/milindgupta/Downloads/wxLua-2.8.12.3-src * CMAKE_BINARY_DIR = C:/Users/milindgupta/Downloads/wxLua-build ***************************************************************************** * --------------------------------------------------------------------------- * wxWidgets library settings : * * Note that ONLY an all shared (DLL) or all static build is supported. * I.E. If you choose shared you must link to shared wxWidgets libs. * Set -DBUILD_SHARED_LIBS=[TRUE, FALSE] to control shared/static lib. * * Finding wxWidgets for MSW and MSVC * -DwxWidgets_ROOT_DIR=[path] : (e.g. /path/to/wxWidgets/) * Path to the root of the wxWidgets build, must at least set this. * -DwxWidgets_LIB_DIR=[path] : (e.g. /path/to/wxWidgets/lib/vc_lib/) * Path to the wxWidgets lib dir also set this if libs can't be found. * -DwxWidgets_CONFIGURATION=[configuration] : * Set wxWidgets configuration; e.g. msw, mswu, mswunivu... * Where 'u' = unicode and 'd' = debug. * MSVC GUI : You need only choose msw, mswu, mswuniv, mswunivu since * release or debug mode is chosen in the GUI. * -DwxWidgets_COMPONENTS=[...stc;html;adv;core;base or mono] : * For non-monolithic builds choose the wxWidgets libs to link to. * xrc;xml;gl;net;media;propgrid;richtext;aui;stc;html;adv;core;base * For monolithic builds choose mono and the contribs libs. * stc;mono * The extra decorations, e.g. wxmsw28ud_adv.lib, will be searched for. * Libs that cannot be found will be printed below, please fix/remove * them to be able to build this project. * You will get compilation/linker errors if wxWidgets is not found. * * Finding wxWidgets for GCC and Unix type systems * -DwxWidgets_CONFIG_EXECUTABLE=[path/to/wx-config] : * Specify path to wx-config script for GCC and Unix type builds * --------------------------------------------------------------------------- * Using these wxWidgets components: gl;xrc;xml;net;media;richtext;aui;stc;html;adv;core;base Could NOT find wxWidgets (missing: wxWidgets_FOUND) * CMake Warning at build/CMakewxAppLib.cmake:313 (message): * WARNING: Could not find wxWidgets! Please see help above. Call Stack (most recent call first): CMakeLists.txt:54 (FIND_WXWIDGETS) * - wxWidgets_VERSION = 2.8.12 = 2.8.12 * - wxWidgets_COMPONENTS = gl;xrc;xml;net;media;richtext;aui;stc;html;adv;core;base * - wxWidgets_INCLUDE_DIRS = C:/wxWidgets-2.8.12/lib/gcc_dll/mswu;C:/wxWidgets-2.8.12/include * - wxWidgets_LIBRARY_DIRS = C:/wxWidgets-2.8.12/lib/gcc_dll * - wxWidgets_LIBRARIES = C:/wxWidgets-2.8.12/lib/gcc_dll/libwxmsw28u_xrc.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxbase28u_xml.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxbase28u_net.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxmsw28u_media.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxmsw28u_richtext.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxmsw28u_aui.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxmsw28u_stc.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxmsw28u_html.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxmsw28u_adv.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxmsw28u_core.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxbase28u.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxpng.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxtiff.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxjpeg.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxzlib.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxregexu.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxexpat.a;opengl32;glu32;winmm;comctl32;rpcrt4;wsock32 * - wxWidgets_CXX_FLAGS = * - wxWidgets_DEFINITIONS = UNICODE;_UNICODE * - wxWidgets_DEFINITIONS_DEBUG = _DEBUG;__WXDEBUG__ * - wxWidgets_PORTNAME = * - wxWidgets_UNIVNAME = * - wxWidgets_UNICODEFLAG = * - wxWidgets_DEBUGFLAG = WARNING: Unable to find requested wxWidgets component : gl * wxWidgets requested but not found. * WARNING: Specified wxLuaBinding lib 'propgrid' in variable wxLuaBind_COMPONENTS is missing from wxWidgets_COMPONENTS so it will not be compiled. * wxLua using built-in Lua 5.1 library Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) * WARNING: Doxygen NOT found, wxLua_doxygen target will not be generated. wxWidgets requested but not found. Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) * WARNING: Doxygen NOT found, wxStEdit_doxygen target will not be generated. Configuring done ------------------------------------------------------------------------------------------------------------------- But if I continue to do the make I get this error in the output: Scanning dependencies of target wxStEditLib_precomp [ 0%] Generating include/wxStEditLib_precomp.h.gch C:/Users/milindgupta/Downloads/wxLua-2.8.12.3-src/modules/wxstedit/src/precomp.h :7:23: fatal error: wx/wxprec.h: No such file or directory compilation terminated. mingw32-make[2]: *** [modules/wxstedit/include/wxStEditLib_precomp.h.gch] Error 1 mingw32-make[1]: *** [modules/wxstedit/CMakeFiles/wxStEditLib_precomp.dir/all] E rror 2 mingw32-make: *** [all] Error 2 I compiled both the wxwidgets and the stc library. I don't know why it says wxWidgets not found even though I have the right path in the wxWidgets_ROOT_DIR variable. Milind |