Need help to compile TPT with VS Code

  • goblin01
    3rd May 2019 Member 0 Permalink

    One day ago I wanted to write my own TPT mod. Today I started it, but first I wanted to test if the compilation will ever success. But I couldn't compile it, because I don't know how to run it nor the entry point. I tried VS2019 with the source too, but same, don't know the entry point. What is the entry point, and how do I exactly compile it with Visual Studio Code?

  • jacob2
    3rd May 2019 Member 0 Permalink
    Entry point? main() is in PowderToySDL.cpp if that's what you mean
  • goblin01
    3rd May 2019 Member 0 Permalink

    ok, but entering that file gives me a bunch of errors with dependencies. I also mean how to exactly compile it e.g. how to get the packages required?

  • jacob2
    3rd May 2019 Member 0 Permalink
    I've never used vs code. You'll have to figure out a lot of the configuration yourself.

    This wiki guide may help, it has downloads for some of the required libraries: https://powdertoy.co.uk/Wiki/W/Compiling_for_Windows_with_scons.html

    What compiler does vs code use? Mingw or msvc? I linked the mingw guide but there's also an msvc guide on the wiki.
  • goblin01
    4th May 2019 Member 0 Permalink

    I've moved over from VS Code to Scons. But the Scons script can't find the libcurl file