Giter VIP home page Giter VIP logo

Comments (7)

forrestsmithfb avatar forrestsmithfb commented on May 27, 2024

I'm actually having trouble getting symbols to load even for a "basic" project where the PDB lives right next to the exe. Very strange. Would definitely love to debug MTuner and figure out why it's failing to load symbols! But building MTuner is prohibitively difficult. :(

from mtuner.

milostosic avatar milostosic commented on May 27, 2024

Can you issue a release that includes PDBs for MTuner so it can be easily debugged without having to make a full source build?

Sorry but that's unlikely to happen as it requires my time for an edge case (you needing to debug MTuner). Most of the pain you experience is likely related to Qt - I'm not having fun with that either.

Assuming you tried to build MTuner locally, how far did you get?

from mtuner.

forrestsmithfb avatar forrestsmithfb commented on May 27, 2024

Assuming you tried to build MTuner locally, how far did you get?

Here's where I currently am.

  1. Cloned main MTuner repo plus all sibling repos
  2. Installed QT via vcpkg install qt5-base:x64-windows
  3. Installed lua 5.4.2 to c:\stuff\path\lua
  4. Manually ran set QTDIR_VS2022_x64=C:\temp\github\vcpkg\packages\qt5-base_x64-windows (and x86)
  5. Ran genie vs2022
  6. VS2022 debug build fails

The error output shows a lua.exe failure but I just noticed the Output window has useful information. So I think I'm missing "Lua lfs module". I'm not sure how to install that. The internet tells me to use the luarocks package manager? So I downloaded and an installed that. But the LFS package doesn't appear to exist. So I'm not sure what "lua lfs module" is or how to get it. =\

from mtuner.

milostosic avatar milostosic commented on May 27, 2024

You'll need Lua for Windows in your path too, you can use this: https://github.com/milostosic/luaforwindows

I don't know how Qt is installed via vcpkg, normally I use Qt online installer - may differ.

from mtuner.

forrestsmithfb avatar forrestsmithfb commented on May 27, 2024

I had Lua installed, but it apparently didn't have all the right modules. Your version of course has what MTuner needs.

I'm now failing to compile because the particular version of QT I have installed doesn't have all the right files. What version of QT do you have installed?

from mtuner.

forrestsmithfb avatar forrestsmithfb commented on May 27, 2024

Ok phew I finally got it compiling. I had to make a couple of code changes to support 5.15.14 which is what gets installed when you download their current open source installer. I didn't take notes, but off the top of my head.

  • change include path from <QtGui/QActionGroup> to <QtWidgets/QActionGroup>
  • change TreeMapView m_treeLines from QList<QlineF> to QVector<QLineF> to fix compile error in getTreeLines(). (unable to convert List -> Vector)
  • change stacktrace.cpp to use mouseEvent->globalPos() instead of mouseEvent->globalPosition().toPoint()
  • change QT6 libs to QT5. Maybe I could have installed QT6? The readme says MTuner was built with Qt 5.13.0 but the latest release actually has QT6 libs.

In any case I think I'm unblocked.

May I request that future releases of MTuner include pdbs? :) They really aren't that large and they compress 10:1. Including MTuner.pdb would have saved me 4+ hours of build system debugging. Hopefully it's something your deployment process can include with a tiny amount of work the next time you release an update?

from mtuner.

milostosic avatar milostosic commented on May 27, 2024

Glad to hear you're unblocked! MTuner releases are based on 'retail' build that has no debug info so there are no PDBs to include.

from mtuner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.