My project will not build in Code::Blocks?

  • MassacreLand
    6th Feb 2012 Member 0 Permalink
    So, I added all the files to the project and it doesnt seem to want to build. yet it does not show any error? Confused!!!!

    I will give someone the project if needed. All it is is powder toys source files.
    I am testing them so that I may add build my mod.

    "MassacreToy - Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
    Nothing to be done.



    That is what is said. and I do not know if and where a compiler would be located on my pc considering I thought CB Was  the compiler!
  • jalfor
    6th Feb 2012 Member 0 Permalink
    @MassacreLand (View Post)
    Code::blocks isn't a compiler, it's an IDE. I don't really know that much about this but make sure you have the MinGW compiler (or another one) installed and that code::blocks knows where to find it.
  • MassacreLand
    6th Feb 2012 Member 0 Permalink
    @jalfor (View Post)
    Ahh thanks!
    How long does the MinGW's CMD Load take? :D XD
  • jalfor
    6th Feb 2012 Member 0 Permalink
    @MassacreLand (View Post)
    What do you mean...it uses the default system CMD Prompt
  • MassacreLand
    6th Feb 2012 Member 0 Permalink
    @jalfor (View Post)
    I know lol it took a while but I got it. it works. Thanks!
  • Videogamer555
    6th Feb 2012 Member 0 Permalink
    Download this self extracting 7zip file. It has MinGW and Codeblocks preconfigured well and working together. I found it on another site but it seems to work with TPT just fine.
    http://the-nd.com/develop/nD_SDK_v0.50.exe

    Download this TPT source as it has the codeblocks project file preconfigured, and is the latest release version of TPT too (no beta).
    http://minus.com/mDIQTFGOZ
    Click the big green ZIP button in the middle of the screen on that web page to download the zip file.

    Run the selfextracting 7zip file and then unzip the TPT source zip file into the codeblocks folder which had previously been extracted from the self extracting 7zip.

    Now run codeblocks.exe and load the project file inside the PowderCBProj which is itself inside the codeblocks folder.

    However there seems to be a bit of a problem compiling this (even though the project was supposedly a preconfiged project file by someone who knew how to configure it). You will have to slightly alter the configuration yourself to get it to work. Here's how:
    Go to the "project" menu in codeblocks and go down to the "build options" menu item. Click that. At the new dialog box you see in the left hand side of the box where it says "Powder" and then "Release", click "Release". Now under the "compiler tab" you'll see a second set of sub-tabs. Go to the one that says "other options" and click that tab. Now in the below text box, scroll through the line of text until you find the text "-DGRAVFFT", and remove that text.

    Now get off of the "compiler settings" tab, and go to the "linker settings" tab. In the "other linker options" text box scroll through that line of text until you find the text "-lfftw3f", and remove that text. Now press the "ok" button. Now it's configured.

    At this point go to the "file" menu and select "save project" and it will save these new settings to the current project file.

    Now you are ready to compile it to test it, or edit the various source code files and compile it to make your mod.
  • MassacreLand
    6th Feb 2012 Member 0 Permalink
    @Videogamer555 (View Post)
    Wow.  I could have avoided my 3 weeks of figuring out how to compile because of errors when I could have just read this in the very beginning and    never even had any errors xD
     
  • BlueAmulet
    6th Feb 2012 Member 0 Permalink

    Deleted

    Edited once by BlueAmulet. Last: 13th Apr 2024
  • MassacreLand
    6th Feb 2012 Member 0 Permalink
    @gamax92 (View Post)
    I had to lol VS Would not allow my cpu to use it.
  • BlueAmulet
    6th Feb 2012 Member 0 Permalink

    Deleted

    Edited once by BlueAmulet. Last: 13th Apr 2024