Linux compile help.

  • Xenocide
    3rd Sep 2010 Former Staff 0 Permalink
    --Before anyone points me at the wiki page, I wrote it.--

    Since the splitting of the code I get this set of errors every time I run $ make powder

    http://pastebin.com/A0tH9uaB

    commenting out the highlighted errors adds this to the end of my output

    /tmp/ccJMaftj.o: In function `ui_edit_draw':
    interface.c:(.text+0x4426): undefined reference to `drawpixel'
    interface.c:(.text+0x4460): undefined reference to `drawpixel'
    interface.c:(.text+0x4498): undefined reference to `drawpixel'
    interface.c:(.text+0x44cf): undefined reference to `drawpixel'
    interface.c:(.text+0x4507): undefined reference to `drawpixel'
    /tmp/ccJMaftj.o:interface.c:(.text+0x4541): more undefined references to `drawpixel' follow
    collect2: ld returned 1 exit status


    any ideas?
  • bchandark
    3rd Sep 2010 Member 0 Permalink
    pastebin.com
  • Xenocide
    3rd Sep 2010 Former Staff 0 Permalink
    *facepalm* forgot about that
  • bchandark
    3rd Sep 2010 Member 0 Permalink
    I just tried compiling (made a new project and everything).
    I got this error message

    1> unzcrash.c
    1>c1 : fatal error C1083: Cannot open source file: 'bzlib\unzcrash.c': No such file or directory
    1> spewG.c
    1>c1 : fatal error C1083: Cannot open source file: 'bzlib\spewG.c': No such file or directory
    1> randtable.c
    1>c1 : fatal error C1083: Cannot open source file: 'bzlib\randtable.c': No such file or directory
    1> mk251.c
    1>c1 : fatal error C1083: Cannot open source file: 'bzlib\mk251.c': No such file or directory
    1> huffman.c
    1>c1 : fatal error C1083: Cannot open source file: 'bzlib\huffman.c': No such file or directory
    1> dlltest.c
    1>c1 : fatal error C1083: Cannot open source file: 'bzlib\dlltest.c': No such file or directory
    1> decompress.c
    1>c1 : fatal error C1083: Cannot open source file: 'bzlib\decompress.c': No such file or directory
    1> crctable.c
    1>c1 : fatal error C1083: Cannot open source file: 'bzlib\crctable.c': No such file or directory
    1> compress.c
    1>c1 : fatal error C1083: Cannot open source file: 'bzlib\compress.c': No such file or directory
    1> bzlib.c
    1>c1 : fatal error C1083: Cannot open source file: 'bzlib\bzlib.c': No such file or directory
    1> bzip2recover.c
    1>c1 : fatal error C1083: Cannot open source file: 'bzlib\bzip2recover.c': No such file or directory
    1> bzip2.c
    1>c1 : fatal error C1083: Cannot open source file: 'bzlib\bzip2.c': No such file or directory
    1> blocksort.c
    1>c1 : fatal error C1083: Cannot open source file: 'bzlib\blocksort.c': No such file or directory
    1> air.c
    1> Generating Code...
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Check the Win32 code wiki, Simon updated the linkers for this version of the code (you can change your guide to match it)
    I also had to include <source>\Includes\SDL for some of the errors to go away.

    It looks like mine is due to some missing files, I never downloaded any of these files (I checked with search in Explorer). I did download object files of the same name, but not any of the .c files.
  • Pilihp64
    3rd Sep 2010 Developer 0 Permalink
    i had this problem too, random .c files showed up in the project.
    just delete the ones that arent real, it worked for me
  • zc00gii
    3rd Sep 2010 Banned 0 Permalink
    This post is hidden because the user is banned
  • Xenocide
    3rd Sep 2010 Former Staff 0 Permalink
    Libraries are different in Linux, you just have to have the right package installed (think its /usr/lib and /lib), I've got all the relevent dev packages installed.

    Will try your method when I get back zc00gii
  • Simon
    3rd Sep 2010 Administrator 0 Permalink
    The package containing all the necessary dependencies is Windows only.
    It may be that the current source does not compile for Linux.

    Edit: I've found a fix and will be updating the code shortly
  • Xenocide
    3rd Sep 2010 Former Staff 0 Permalink
    Didn't think to look through that and find the relevant Linux packages ^^' I shall be watching GitHub for the update anyway ^^
  • Felix
    3rd Sep 2010 Member 0 Permalink
    antb:
    Didn't think to look through that and find the relevant Linux packages ^^' I shall be watching GitHub for the update anyway ^^

    Try the latest github source. It works for me(you can also try the opengl testing code by doing make powder-64-sse3-opengl).