Compiling using Scons on windows.

  • Jack-Punter
    13th May 2018 Member 0 Permalink

    I tried downloading and setting up the project using the "compiling for windows with scons" guide. and I got to the end. it compiles but when I try to run I get this error:

    "

    The procedure entry point
    _ZNKSt7__cxx1112basic_stringlcSt11char_traitslcESalcEE13find_

    first_ofERKS4_i could not be located in the dynamic link library
    D:\Programming\C++\ThePowderToy\build\Poweder.exe

    "

  • jacob1
    13th May 2018 Developer 0 Permalink
    I'm not sure why that would happen, but it appears related to the recent String changes @mniip made. Maybe he would have more insight. I haven't seen an error that looked like this yet, though. And we just fixed MinGW compilation so I find it strange you're getting errors with MinGW when it was just tested.

    Why did you stop using Visual Studio? You had it working in the other thread.
  • Jack-Punter
    13th May 2018 Member 0 Permalink

    My PC crashed and caused the directory to become corrupt. then when I reinstalled (trying to link it to my fork of the repo) I kept getting linker errors that I couldn't figure out. tried the provided project (which i think is old btw and doesn't have some of the stuff in the manual installation like multiprocessor compilation and some of the includes) Basically I am having a horrendous time trying to get this set up so I can actually try and do some code XD I love computers sometimes. and now when i run scons it wont even compile (saying "

    ImportError: No module named SCons.Script" i dont know what I've changed. i think i need to delete system 32 at this point......and get some sleep. Mainly sleep

     

    Edited once by Jack-Punter. Last: 13th May 2018
  • jacob1
    14th May 2018 Developer 0 Permalink
    @Jack-Punter (View Post)
    Well it's unlikely that MinGW bug will get fixed any time soon (it may just be a bad MinGW compiler, though), so can you post the Visual Studio linker errors you were getting? Maybe try deleting the build and Debug folders to ensure anything from any old compiles are gone.

    And yes, the premade project is missing a lot of new files that were recently added. I didn't know it was also missing multiprocessor compilation. All the missing files need to be added to the solution manually before it will work.
    Edited once by jacob1. Last: 13th May 2018
  • Jack-Punter
    14th May 2018 Member 0 Permalink

    Is there an IRC or somewhere where we may be able to chat about this a little easier. i can go through the steps for visual studio again and start from scratch.

  • jacob1
    14th May 2018 Developer 0 Permalink
    Yes, irc.libera.chat #powder and / or #powder-dev
    Edited 2 times by jacob1, Simon. Last: 26th May 2021