Stupid Compiling Question

  • Taliathion
    21st Sep 2010 Member 0 Permalink
    Ok, So I am a first time poster, long time player, and first time PT Modder.

    I am no newb with coding, and I'm familiar with C, so I understand the source and the mods I did, but this is my first time both;

    1. Coding C in Linux in Gedit (Fancy text-editor for those of you who do not know)

    2. Compiling C both;
    a. In Linux
    b. Without an actual C studio

    So, preferably without downloading an actual studio, (eg, huge monsters like emacs and anjunta,) or doing things with github (Don't want to push my currently worthless crap,) how can I compile my mods on linux?

    Thanks Muchly,
    ~Tali
  • Xenocide
    21st Sep 2010 Former Staff 0 Permalink
    we have a tutorial on the wiki for this, but while your here.

    gedit aint fancy but it has a C syntax highlighter and i use it along side a terminal emulator.

    quite simply cd to the source folder and run make. provided you dont have errors it will exit back to the prompt quite noisily (theres a lot of warnings) and powder should be there ready and waiting for you.
  • Taliathion
    21st Sep 2010 Member 0 Permalink
    Hmm, I perused the coding part of the wiki, but saw nothing about C.

    Well. That failed. I only edited a few things, but am getting obscene numbers of warning and errors. I'm going to re-download source and compile without modding to make sure it is a problem with my test modding. In the meantime, how might I go about compiling to exe from terminal?

    Also, thanks antb, and might I say I'm a huge fan of your mods. :D
  • Taliathion
    21st Sep 2010 Member 0 Permalink
    Update- Well, even with a fresh source, I get ridiculous numbers of errors with;

    $ sudo su
    $ cd Desktop/PTSOURCETEST/
    $ make

    Any ideas?

    Thanks again.
  • devast8a
    21st Sep 2010 Former Staff 0 Permalink
    Taliathion:
    C studio

    I think you mean IDE (Integrated Development Environment)

    Taliathion:
    compiling to exe

    Do you mean cross compiling?
  • Taliathion
    21st Sep 2010 Member 0 Permalink
    @devast

    Yes, I do, and also Yes.
  • Taliathion
    21st Sep 2010 Member 0 Permalink
    *twiddles thumbs*
    Ah, Impatience, such a terrible affliction.
  • Xenocide
    21st Sep 2010 Former Staff 0 Permalink
    double posting, also a terrible affliction, also good mod bait.

    An obscene amount of warnings is normal. The makefile is pre-configured for cross-compiling in theory, however, I don't think its been updated correctly since the source split.

    You can try using $ make powder-sse.exe
  • Taliathion
    21st Sep 2010 Member 0 Permalink
    Lol, and sorry, but still no luck, and cross-compiling with that line is a no-go.

    No matter what I do, it seems that I get the same ridiculous numbers of errors.

    Would you mind If I posted a section of the huge block of the output?
  • bchandark
    21st Sep 2010 Member 0 Permalink
    Taliathion
    pastebin.com