On Thu, Mar 31, 2016 at 11:51 PM, Paul K <paulclin...@yahoo.com> wrote:

> Hi John,
>
> I've added "gl" component to my wxwidgets library and am getting an
> error on Linux (Windows and OSX compiled without issues using the same
> configure call):
>
> [ 97%] Building CXX object
> modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxlua/wxlstate.cpp.o
> make[2]: *** No rule to make target `lib/libwx_gtk2u_gl-3.1.a', needed
> by `lib/MinSizeRel/libwx.so'.  Stop.
> make[2]: *** Waiting for unfinished jobs....
> [100%] Building CXX object
> modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxlua/wxlua_bind.cpp.o
> make[1]: *** [modules/luamodule/CMakeFiles/wxLuaModule.dir/all] Error 2
> make: *** [all] Error 2
> Error: failed to build wxLua
>
> Here is my configure call:
>
>   cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$INSTALL_DIR"
> -DCMAKE_BUILD_TYPE=$WXLUABUILD -DBUILD_SHARED_LIBS=FALSE \
>     -DwxWidgets_CONFIG_EXECUTABLE="$INSTALL_DIR/bin/wx-config" \
>     -DwxWidgets_COMPONENTS="stc;gl;html;aui;adv;core;net;base" \
>     -DwxLuaBind_COMPONENTS="stc;gl;html;aui;adv;core;net;base"
> -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE \
>     -DwxLua_LUA_INCLUDE_DIR="$INSTALL_DIR/include"
> -DwxLua_LUA_LIBRARY="$INSTALL_DIR/lib/liblua.a" .
>
> (I don't get any failures if I remove "gl" from the list of components).
>
> Does anyone have a suggestion on how to fix this? Thank you.
>
>
What is the name of the 'gl' library that you do have in the wxWidgets
build directory? It is looking for 'lib/libwx_gtk2u_gl-3.1.a' which should
be in the same dir as the wx libs 'libwx_gtk2u_core-3.1.so.0.0.0' for
example.

You can check the wxWidgets config.log and search for opengl and you should
see some messages about detection of gl and whether it was usable. For
example, mine says "wx_cv_use_opengl=wxUSE_OPENGL=yes" and I configured
wxWidgets with --with-opengl.

Regards,
    John
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to