2012/6/25 John Labenski <jlaben...@gmail.com>
>
> I've added linking to -ldl, I think that might do it, please update
> and try again.
>
> I try again, but not work yet.
>
> In the CMake gui, what does wxWidgets_VERSION equal? If it is >= 2.9
> then scintilla should be automatically added if wxstc is.
>
> In fact, please post the text in the CMake gui output window
>
> * Found wxWidgets :
> < this text >
>
>
===============================
CMAKE OUTPUT
===============================
The C compiler identification is GNU 4.7.0
The CXX compiler identification is GNU 4.7.0
Check for working C compiler: C:/MinGW/bin/gcc.exe
Check for working C compiler: C:/MinGW/bin/gcc.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: C:/MinGW/bin/g++.exe
Check for working CXX compiler: C:/MinGW/bin/g++.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
*
---------------------------------------------------------------------------
* CMake command line options and tips specific to this project
*
* In the CMake GUI you can set values and press configure a few times since
* sometimes once is not enough, after a few configurations, 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 : Set the build type to Debug, Release...
* MSVC GUI : No need to set this since you choose it in the GUI.
* -DBUILD_SHARED_LIBS=[TRUE, FALSE] : (Default static in MSW, shared in
Linux)
* Build shared (DLL) or static libraries.
* Currently ONLY an all shared (DLL) or all static build is supported.
* I.E. If you choose shared you must link to shared wxWidgets libs.
*
* 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, mswd, mswud, mswunivud...
* 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 strange 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
*
---------------------------------------------------------------------------
* No build type was specified, using default 'Debug'
*****************************************************************************
* BUILD TYPE: Debug
* BUILD_SHARED_LIBS: FALSE
*****************************************************************************
* System is 32-bit TRUE, is 64-bit FALSE
*****************************************************************************
* CMAKE_SOURCE_DIR = D:/_app/wxLua/trunk/wxLua
* CMAKE_BINARY_DIR = D:/_app/wxLua/trunk/wxLua/build/cmake
*****************************************************************************
* WARNING : Unable to find '/include/wx/version.h'
* Please set wxWidgets_ROOT_DIR to point to the root wxWidgets build dir.
* Note: wxWidgets libs; Removing 'propgrid' lib from wxWidgets_COMPONENTS
since it didn't exit in wx < 2.9
* Using these wxWidgets components:
xrc;xml;net;media;richtext;aui;stc;html;adv;core;base
Found wxWidgets: TRUE
*
* Found wxWidgets :
* - wxWidgets_VERSION = = ..
* - wxWidgets_COMPONENTS =
xrc;xml;net;media;richtext;aui;stc;html;adv;core;base
* - wxWidgets_INCLUDE_DIRS =
D:/_app/wxWidgets-2.9.3/lib/gcc_lib/mswd;D:/_app/wxWidgets-2.9.3/include
* - wxWidgets_LIBRARY_DIRS =
* - wxWidgets_LIBRARIES =
D:/_app/wxWidgets-2.9.3/lib/gcc_lib/libwxmsw29d_xrc.a;D:/_app/wxWidgets-2.9.3/lib/gcc_lib/libwxbase29d_xml.a;D:/_app/wxWidgets-2.9.3/lib/gcc_lib/libwxbase29d_net.a;D:/_app/wxWidgets-2.9.3/lib/gcc_lib/libwxmsw29d_media.a;D:/_app/wxWidgets-2.9.3/lib/gcc_lib/libwxmsw29d_richtext.a;D:/_app/wxWidgets-2.9.3/lib/gcc_lib/libwxmsw29d_aui.a;D:/_app/wxWidgets-2.9.3/lib/gcc_lib/libwxmsw29d_stc.a;D:/_app/wxWidgets-2.9.3/lib/gcc_lib/libwxmsw29d_html.a;D:/_app/wxWidgets-2.9.3/lib/gcc_lib/libwxmsw29d_adv.a;D:/_app/wxWidgets-2.9.3/lib/gcc_lib/libwxmsw29d_core.a;D:/_app/wxWidgets-2.9.3/lib/gcc_lib/libwxbase29d.a;D:/_app/wxWidgets-2.9.3/lib/gcc_lib/libwxpngd.a;D:/_app/wxWidgets-2.9.3/lib/gcc_lib/libwxtiffd.a;D:/_app/wxWidgets-2.9.3/lib/gcc_lib/libwxjpegd.a;D:/_app/wxWidgets-2.9.3/lib/gcc_lib/libwxzlibd.a;D:/_app/wxWidgets-2.9.3/lib/gcc_lib/libwxregexd.a;D:/_app/wxWidgets-2.9.3/lib/gcc_lib/libwxexpatd.a;winmm;comctl32;rpcrt4;wsock32
* - wxWidgets_CXX_FLAGS =
* - wxWidgets_DEFINITIONS =
* - wxWidgets_DEFINITIONS_DEBUG = _DEBUG;__WXDEBUG__
* - wxWidgets_PORTNAME = msw
* - wxWidgets_UNIVNAME =
* - wxWidgets_UNICODEFLAG =
* - wxWidgets_DEBUGFLAG = d
*
* WARNING: Specified wxLuaBinding lib 'gl' in variable wxLuaBind_COMPONENTS
is missing from wxWidgets_COMPONENTS so it will not be compiled.
* WARNING: cppcheck NOT found, NOT generating ADD_CPPCHECK_TEST() tests
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
* WARNING: Doxygen NOT found, wxLua_doxygen target will not be generated.
* WARNING: wxLuaEdit application will not be built since wxStEdit was not
found.
* WARNING: wxStEdit_ROOT_DIR directory does not exist: ''
Configuring done
Generating done
===============================
COMPILE OUTPUT
===============================
D:\_app\wxLua\trunk\wxLua\build\cmake>mingw32-make
Scanning dependencies of target LuaLib
[ 0%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/lapi.c.obj
[ 1%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/lcode.c.obj
[ 1%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/ldebug.c.obj
[ 2%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/ldo.c.obj
[ 2%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/ldump.c.obj
[ 3%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/lfunc.c.obj
[ 4%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/lgc.c.obj
[ 4%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/llex.c.obj
[ 5%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/lmem.c.obj
[ 5%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/lobject.c.obj
[ 6%] Building C object
modules/lua/CMakeFiles/LuaLib.dir/src/lopcodes.c.obj
[ 6%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/lparser.c.obj
[ 7%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/lstate.c.obj
[ 8%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/lstring.c.obj
[ 8%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/ltable.c.obj
[ 9%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/ltm.c.obj
[ 9%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/lundump.c.obj
[ 10%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/lvm.c.obj
[ 11%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/lzio.c.obj
[ 11%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/lauxlib.c.obj
[ 12%] Building C object
modules/lua/CMakeFiles/LuaLib.dir/src/lbaselib.c.obj
[ 12%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/ldblib.c.obj
[ 13%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/liolib.c.obj
[ 13%] Building C object
modules/lua/CMakeFiles/LuaLib.dir/src/lmathlib.c.obj
[ 14%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/loslib.c.obj
[ 15%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/ltablib.c.obj
[ 15%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/lstrlib.c.obj
[ 16%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/loadlib.c.obj
[ 16%] Building C object modules/lua/CMakeFiles/LuaLib.dir/src/linit.c.obj
Linking C static library ..\..\lib\libwxlua_lua-wxmswd-2.9.4.a
[ 16%] Built target LuaLib
Scanning dependencies of target LuaLibShared
[ 17%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/lapi.c.obj
[ 18%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/lcode.c.obj
[ 18%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/ldebug.c.obj
[ 19%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/ldo.c.obj
[ 19%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/ldump.c.obj
[ 20%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/lfunc.c.obj
[ 20%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/lgc.c.obj
[ 21%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/llex.c.obj
[ 22%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/lmem.c.obj
[ 22%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/lobject.c.obj
[ 23%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/lopcodes.c.obj
[ 23%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/lparser.c.obj
[ 24%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/lstate.c.obj
[ 25%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/lstring.c.obj
[ 25%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/ltable.c.obj
[ 26%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/ltm.c.obj
[ 26%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/lundump.c.obj
[ 27%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/lvm.c.obj
[ 27%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/lzio.c.obj
[ 28%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/lauxlib.c.obj
[ 29%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/lbaselib.c.obj
[ 29%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/ldblib.c.obj
[ 30%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/liolib.c.obj
[ 30%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/lmathlib.c.obj
[ 31%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/loslib.c.obj
[ 31%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/ltablib.c.obj
[ 32%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/lstrlib.c.obj
[ 33%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/loadlib.c.obj
[ 33%] Building C object
modules/lua/CMakeFiles/LuaLibShared.dir/src/linit.c.obj
Linking C shared library ..\..\bin\libwxlua_lua_shared-wxmswd-2.9.4.dll
c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe:
cannot fin
d -lreadline
c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe:
cannot fin
d -lhistory
c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe:
cannot fin
d -lncurses
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [bin/libwxlua_lua_shared-wxmswd-2.9.4.dll] Error 1
mingw32-make[1]: *** [modules/lua/CMakeFiles/LuaLibShared.dir/all] Error 2
mingw32-make: *** [all] Error 2
>
> Regards,
> John
>
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users