On Sat, Aug 10, 2013 at 1:37 PM, Andreas Falkenhahn
<andr...@falkenhahn.com>wrote:

>
> > Build wxLua using the provided CMakeFiles as described in the
> > install.html in the docs dir.
>
> This unfortunately doesn't work here for me. I don't have Visual Studio
> but just its compiler
> collection that is freely available with the Windows SDK. That's why I use
> the generator named
>
"NMake Makefiles" in the CMake GUI. Here is my CMake configuration:
>
> http://www.falkenhahn.com/tmp/cmake.png
>
>
This is because you did not allow SVN to checkout externals I believe.


> When I try to build wxLua then by typing nmake, it first builds some parts
> of lua 5.1 but
> then it fails completely saying:
>
> NMAKE : fatal error U1073: don't know how to make
> 'modules\lua-5.1\LuaLib.dir\.\lapi.obj'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 9.0\VC\bin\nmake.exe"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 9.0\VC\bin\nmake.exe"' : return code '0x2'
> Stop.
>
>
These are very strange error messages, I'm not sure what they mean.
Googling seems to suggest that your paths and env variables may not be
right. There is no reason why lapi.obj should be built any differently than
every other Lua source file. Some people claim that if you rerun it / clean
the build nmake will succeed.

I just built wxLua using the CMakeFiles for MSVC 2008 using nmake 64-bit
and it builds and runs without error.

You run vcvars32.bat in a DOS prompt right?
"c:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\bin\amd64\vcvars32.bat"

Then you run cmake-gui.exe from that command prompt or do you do something
else?

Have you installed all the service packs for your MSVC? The cl.exe that
comes with MSVC 2008 (what I use) is exactly the same version as what you
use;
Microsoft (R) C/C++ Optimizing Compiler Version 15.00.30729.01 and the
service packs for it had some very important fixes.


> Yes, luamodule.cpp is actually exactly the code I used in my example. The
> app is
> instantiated in luaopen_wx(). Is there anything else that needs to be done?
>
>
No, if you follow the code in the example programs it should work.

Regards,
    John
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to