Compiling error with Scons

  • ThrashPanda
    1st Jan 2017 Member 0 Permalink

    Well hello there, i am new here. I thought i could figure the solution of my problem for myself.... but well. It did not work. I have some good experience with C/C++ programming, and i dont get why Scons wont compile an ELF executable for me. The last two lines of the CLI output are:

     

    scons: done building targets.
    strip: 'build/powder64': No such file

     

    I call scons as following: sudo scons -nolua -j1

    And sorry for some grammar mistakes, english is not my native language. And i am very interested in programming at all. Maybe you can explain some things for me :-)

    Edited 5 times by ThrashPanda. Last: 1st Jan 2017
  • LBPHacker
    1st Jan 2017 Developer 1 Permalink

    --nolua is a parameter to the TPT-specific build script, so it must be prefixed with two hyphens. I have no idea how you managed to get scons to say that it's done; for me when it's prefixed with a single hyphen, scons simply fails. Also, there's no reason to sudo.

     

    EDIT: If you have lots of permission denies when trying to run scons with the correct --nolua parameter and without sudo, that's because you ran scons with sudo the first time and scons created root-owned files in ./generated. scons --clean might clean those up, but I'd just clone the repo again.

    Edited 2 times by LBPHacker. Last: 1st Jan 2017
  • ThrashPanda
    1st Jan 2017 Member 0 Permalink

    well.... ok. Now i feel dumb xD. I did it with sudo, because SuperUser has more rights in some folders... now ive edited the rights of a folder to me, and i dont need sudo anymore. Ive tried it now...  and i want to cuddle you. IT WORKS! Thank you :D