Compiling TPT with VS2015 and Win10/64

  • wowogiengen
    2nd Jan 2021 Member 0 Permalink

    Hello,


    after downloading python and installing meson etc. I tried to compile TPT.


    But it gives me an error


    The full log is like this


    So there I am stuck...


    Greetings Wolfgang

    Edited 2 times by LBPHacker. Last: 2nd Jan 2021
  • LBPHacker
    2nd Jan 2021 Developer 1 Permalink
    You're using the x86 dev prompt. Use the x64 one, as the guide says. Please use pastebin or equivalent next time.
    Edited once by LBPHacker. Last: 2nd Jan 2021
  • wowogiengen
    2nd Jan 2021 Member 0 Permalink

    I think i found the right prompt now:

    x64 Native Tools-Eingabeaufforderung.lnk.

    but this gives the following output

     

    https://pastebin.com/gKEgaU9S

     

    (there is no actual log file for this?)

     

    I get a whole bunch of type conversion warnings, and at last an error when trying to convert

    some fields of a struct in file particle.cpp (line 21 i guess?)

     

    Greetings Wolfgang

     
    <!-- Used for easily cloning the properly namespaced rect -->
  • LBPHacker
    2nd Jan 2021 Developer 0 Permalink
    Try this patch. I don't see why MSVC wouldn't be able to figure those initializers out, but we can try giving it some help.

    I'm blind and it doesn't help that the entire thing is in German, hold on. You can try the patch while I'm trying to reproduce your issue (of course I seem to be unable to), but expect it to fail.
    Edited 4 times by LBPHacker. Last: 2nd Jan 2021
  • wowogiengen
    2nd Jan 2021 Member 0 Permalink

    Hello,

    i tried your changes, but it did not help.

    with the following structure declaration it compiles completely:

     

    https://pastebin.com/RTCZe54Z

     

    I am not familair with git, so i had to edit the code manually...

     

    Greetings Wolfgang

    and thank you for your time on saturday and holiday

  • LBPHacker
    2nd Jan 2021 Developer 0 Permalink
    Nice catch, thank your for sharing it with us. I can't quite see right away why it should be impossible to implicitly cast an std::size_t to an intptr_t, but oh well.

    EDIT: Your fix is now live on master.
    Edited once by LBPHacker. Last: 2nd Jan 2021
  • wowogiengen
    2nd Jan 2021 Member 0 Permalink

    Oh,

    what a honour, to contribute to the game without even been known :-)

  • jacob1
    3rd Jan 2021 Developer 0 Permalink
    I think it may have been an msvc bug, I would also recommend updating visual studio to the latest version.

    But either way, we support even the older version of the visual studio compiler now.
  • wowogiengen
    3rd Jan 2021 Member 0 Permalink

    IDK,

    why I have both VS2015 and VS2017 command line prompts on my computer. IIRC, I only installed VS2017 on my own...

    today i will dig a bit deeper into the source code.

    Greetings

    Wolfgang