Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: scorched3d linux installation #45592

    normuser
    Participant

    ../GLEXT/GLImage.cpp:70: error: ‘memcpy’ was not declared in this scope

    Try adding string.h to the includes in GLImage.cpp

    in reply to: scorched3d linux installation #45589

    normuser
    Participant

    OK,

    I put the extern “C” around the jpeglib include and finally got scorched to compile, but then it segfaulted with:
    #2 0x00002b8719b5cdd4 in vsnprintf () from /lib64/tls/libc.so.6
    #3 0x00000000004259e5 in formatStringList (
    format=0x6c26ff “GL_EXTENSIONS:%s”, ap=0x7fffffb8e750)
    at ../common/DefinesString.cpp:49
    because there was no va_copy call before vsnprintf.
    after adding va_copy it now runs, but there is something wrong with the graphics. the landscape seems to be floating above the water and if I try to move the camera closer or zoom in the image changes to just a square gray field. everything else works.

    The source files I had to modify are attached if enyone wants to try it. (these source files will only work with a 64bit OS and an version of wxwidgets from after wxnotebooksizer was deprecated (2.5.x I think?))

    in reply to: scorched3d linux installation #45587

    normuser
    Participant

    Thanks for the help with that parasti and gcamp.

    I’ve gotten much closer to getting scorched3d to compile.
    I had to replace some old school wxwidgets code that was calling wxNotebookSizer which doesnt exist any more.
    I also had to change a few int’s to long because they were being cast from a void (on a 64 bit system void is 64 bit and int is 32 bit).
    but now I’m stuck on the following error:

    ../GLEXT/GLJpg.cpp:162: undefined reference to `jpeg_std_error(jpeg_error_mgr*)’
    ../GLEXT/GLJpg.cpp:163: undefined reference to `jpeg_CreateDecompress(jpeg_decompress_struct*, int, unsigned long)’
    ../GLEXT/GLJpg.cpp:178: undefined reference to `jpeg_resync_to_restart(jpeg_decompress_struct*, int)’
    ../GLEXT/GLJpg.cpp:185: undefined reference to `jpeg_read_header(jpeg_decompress_struct*, int)’
    ../GLEXT/GLJpg.cpp:186: undefined reference to `jpeg_start_decompress(jpeg_decompress_struct*)’
    ../GLEXT/GLJpg.cpp:227: undefined reference to `jpeg_finish_decompress(jpeg_decompress_struct*)’
    ../GLEXT/GLJpg.cpp:228: undefined reference to `jpeg_destroy_decompress(jpeg_decompress_struct*)’
    ../GLEXT/GLJpg.cpp:204: undefined reference to `jpeg_read_scanlines(jpeg_decompress_struct*, unsigned char**, unsigned int)’
    collect2: ld returned 1 exit status
    make[2]: *** [scorched3dc] Error 1
    make[2]: Leaving directory `/home/normuser/app-installers/scorched2/scorched/src/scorchedc’
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/normuser/app-installers/scorched2/scorched/src’
    make: *** [all-recursive] Error 1

    But libjpeg.so is there. any ideas?

Viewing 3 posts - 1 through 3 (of 3 total)