Compiling with scons?

  • china-richway2
    19th Oct 2013 Member 0 Permalink

    It was OK but I recently found it don't work anymore.

    When I type scons.py in gitbash it says 

    sh.exe": scons.py: command not found

    (I checked PATH and C:\Python27\Scripts is in the list; I tried C:\Python27\Scripts\scons.py in gitbash and it don't work, but it works in CMD)

     

    Also, I wanted to debug so I decided to use VC++ 2010 to compile but pthread.h, lua.h and several other files are missing. How to fix it?


    HELP PLEASE

    Edited 3 times by china-richway2. Last: 19th Oct 2013
  • nucular
    19th Oct 2013 Member 0 Permalink
    Have you tried
    python scons.py
  • mniip
    19th Oct 2013 Developer 0 Permalink
    scons, not scons.py
  • china-richway2
    19th Oct 2013 Member 0 Permalink

    python scons.py

    sh.exe": python: command not found

    scons

    sh.exe": scons: command not found

    Edit: I've got to enter C:/Python27/python C:/Python27/Scripts/scons.py to get it work

    Edited once by china-richway2. Last: 19th Oct 2013
  • mniip
    19th Oct 2013 Developer 0 Permalink
    did you add them to PATH
    (a rhetoric question. you did not)
    Edited once by mniip. Last: 19th Oct 2013
  • china-richway2
    19th Oct 2013 Member 0 Permalink

    @mniip (View Post)

    I did add them to PATH. The last characters of PATH is

    ;C:\Python27;C:\Python27\Scripts\

     


    Also, a new problem occurs.

    When I build TPT and try to run it it says 'Cannot find zlib1.dll'

    After I added zlib1.dll to system32 directory it says 'Cannot find libbz2-2.dll'

    I don't think TPT needs those things, it should be included inside itself.

    Edited 2 times by china-richway2. Last: 19th Oct 2013
  • MiningMarsh
    19th Oct 2013 Member 0 Permalink

    @china-richway2 (View Post)

    It does need those things, and those things are usually used inside linux progams, so they are not included by default in windows. Regardless you need to download all of them, and it might be easier to add them to the working directory instead of system32, just so you don't bloat your system32 and not remember which ones you added custom.

  • china-richway2
    19th Oct 2013 Member 0 Permalink

    @MiningMarsh (View Post)

    I added to the working directory now. But, it didn't need those before... I have no idea why it changes a lot.

     

    Finally I added all the required DLLs, but I couldn't find any valid libstdc++-6.dll. All libstdc++-6.dll I can find are all invalid. Maybe tell me where can I find a valid one?

    Edited once by china-richway2. Last: 19th Oct 2013
  • MiningMarsh
    19th Oct 2013 Member 0 Permalink

    @china-richway2 (View Post)

    What compiler setup are you using?

  • china-richway2
    19th Oct 2013 Member 0 Permalink

    @MiningMarsh (View Post)

    What is 'compiler setup'?

    Edit: I don't think it matters much, usually --win -j4, but it still don't work when I changed it to --win

    Edited once by china-richway2. Last: 19th Oct 2013