2013年1月29日星期二

Windows Phone 8 emulater in VMWare

Add these three lines to the vmx file of the virtual machine:

hypervisor.cpuid.v0 = FALSE
vhv.enable = TRUE

mce.enable = TRUE

Settings -> CPU and memory -> Advanced: checked "Enable hypervisor applications in this  virtual machine"

Settings -> CPU and memory: make sure 2 Cores (or more?) are assigned to the Virutla machine
Settings -> Advanced: Preferred virtualizationn engine: Intel VT-x with EPT


VMWare Documentation
Reference

2013年1月3日星期四

Lua on C++

I am adding Lua script support in my C++ project targeted on iOS. There are errors when building on simulator.

Undefined symbols for architecture i386:
    "lua_gettop(lua_State*)", referenced from:
    "lua_resume(lua_State*, lua_State*, int)", referenced from:
...
..
.
To solve it, add "extern "C" " symbol to the include keywords to lua headers.

#ifdef __cplusplus
extern "C" {
#include "lua.h"
}
#endif


Reference: StackOverFlow