How exactly do you compile TPT?

  • greymatter
    10th Jun 2013 Member 0 Permalink
    @mniip (View Post)
    I don't get it.
    I got an opportunity to use another internet to download things, and i got Visual c++ 2010 express. Now please help me out on one thing i'm stuck at. i did things given in the wiki, until this:

    Under Configuration Properties > General:
    Change Output Directory from
    $(SolutionDir)$(Configuration)\
    to
    $(SolutionDir)Build\
    (notice that there is no backslash between "$(SolutionDir)" and "Build\").

    The problem is that under configuration properties i don't have a general tab...help?
  • jacob1
    10th Jun 2013 Developer 0 Permalink
    @greymatter (View Post)
    sometimes some options don't appear until you open a file? Maybe ... or you can just look for that somewhere, it has to be in some place. Although that option isn't very important anyway.
  • greymatter
    11th Jun 2013 Member 0 Permalink
    @jacob1 (View Post)
    So can i just skip it? What does it do exactly? Also, now that i have vc++ i have no use for scons?

    I just thought about it now and figured that it builds the file into the build folder. Also, now i got general. I dunno what happened before.

    EDIT: I did everything and hit f7, and after waiting for about 5 mins, i got this error:

    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(707,5): error MSB6006: "rc.exe" exited with code -1073741819.

    Help?
  • jacob1
    11th Jun 2013 Developer 0 Permalink
    no, you don't need scons if you use visual studio. But you still need python in order to run generator.py

    If you really can't install python, I can always give you the generated files ...
  • greymatter
    11th Jun 2013 Member 0 Permalink
    @jacob1 (View Post)
    You posted just as i edited my above post.

    I did everything and hit f7, and after waiting for about 5 mins, i got this error:

    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(707,5): error MSB6006: "rc.exe" exited with code -1073741819.

    Help?
  • jacob1
    11th Jun 2013 Developer 0 Permalink
    sounds like visual studio didn't install right ...

    you could also try googling it maybe, I don't know. But that's nothing with tpt

    Edit: actually it might be something with tpt's icon. there always seems to be problems with that. It's located in resources/somefile. Maybe if you try not using / compiling that file it will work? I don't know
  • greymatter
    11th Jun 2013 Member 0 Permalink
    @jacob1 (View Post)
    There is a RC file there. So i just delete it? or should i do something with vc++ to avoid that file?

    HELP....

    EDIT:Problem magically disappeared. Compiled TPT succesfully.
  • InfinityCoder
    23rd Jun 2019 Member 0 Permalink

    hi, Im Dakyvion and i have been trying to compile the source code also, but scons keeps saying i havent installed libSDL2Main. What can i do?

  • Cracker1000
    23rd Jun 2019 Member 0 Permalink

    @InfinityCoder (View Post)

     As far as i know scons guide doesn't  work anymore.I guess you will need some additional libraries which are not included.

    I recommend using VS instead of Scons.

    Edited once by Cracker1000. Last: 23rd Jun 2019
  • LBPHacker
    23rd Jun 2019 Developer 0 Permalink

    @InfinityCoder (View Post)

     

    Are you on Windows? The scons with mingw on Windows guide is indeed out of date, and it's probably not getting fixed anytime soon because there's currently no way to compile with mingw on Windows at all. We'd have to get libcurl to work with mingw for that first.

     

    If you're on Linux though, you shouldn't be running into problems; compiling TPT is easiest on Linux.