RudjiGames / MTuner

MTuner is a C/C++ memory profiler and memory leak finder for Windows, PlayStation 4 and 3, Android and other platforms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to build

maidamai0 opened this issue · comments

I have some problems #67 using this tool so I want to build myself and do some debugging.
But I got some problems when building according to the doc

What I have done

Problems I got

  • when run genie I got an error:
❯❯❯ genie vs2019
c:/Users/{usr_name}/Documents/MTuner/genie/genie.lua:14: attempt to call a nil value (global 'setPlatforms')
stack traceback:
        c:/Users/{usr_name}/Documents/MTuner/genie/genie.lua:14: in main chunk
        [C]: in upvalue 'builtin_dofile'
        [string "premake = { }..."]:114: in function 'dofile'
        [string "_WORKING_DIR        = os.getcwd()..."]:46: in function '_premake_main'
❯❯❯ genie vs2015
c:/Users/{usr_name}/Documents/MTuner/genie/genie.lua:14: attempt to call a nil value (global 'setPlatforms')
stack traceback:
        c:/Users/{usr_name}/Documents/MTuner/genie/genie.lua:14: in main chunk
        [C]: in upvalue 'builtin_dofile'
        [string "premake = { }..."]:114: in function 'dofile'
        [string "_WORKING_DIR        = os.getcwd()..."]:46: in function '_premake_main'

OS & Compiler

❯❯❯ cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.26.28806 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

I also tried to install Lua but I got many problems when installing luafilesystem.

Do these problems related to Lua?

Clone everything, you'll end up with something like this:
image

Then do this:
image

Keep in mind you need Qt installed and environment variables to point to installation, like this:

QTDIR_VS2017_x64=c:\Qt\5.14.2\msvc2017_64

And yes, lua with luafilesystem is needed, just copy it from somewhere if you can't easily install.