Results 1 to 8 of 8

Thread: need help with NGplant install

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Beans
    43

    need help with NGplant install

    I am very new to linux, and not at all proficient when it comes to the CLI.

    I am trying to install ngplant, and I have found a website with instructions on how to install in linux. However I have been hitting a snag when it comes to the SCONS command it always returns the following dialog;

    ::LoadImageData(P3DImageData*, const char*, const char*) const’:
    ngput/p3dimage.cpp:371: error: ‘strcmp’ was not declared in this scope
    scons: *** [ngput/p3dimage.o] Error 1
    scons: building terminated because of errors.

    There has been some talk of needing "WXWidgets" for this problem, so I installed the latest version from the synaptic manager.

    My question is this; Am I having this problem because of user error? Or is it something else? Any help would be greatly appriciated.

    Thanks,

  2. #2
    Join Date
    Jun 2008
    Location
    England -> Canada
    Beans
    331

    Lightbulb Re: need help with NGplant install

    I followed the instructions precisely and got the same error... My suggestion is to install as many WxWidget libraries from synaptic as possible and keep trying! it will work eventually... or at least try and convince yourself of that XD

    Hope this helps... Even though it probably won't

    Ben
    Last edited by BenAshton24; October 15th, 2009 at 06:18 AM.
    Dif-tor heh smusma...
    Registered Linux User #476478 Register At www.counter.li.org
    *Slowly munches on a dead frog*

  3. #3
    Join Date
    Jun 2008
    Beans
    53
    Distro
    Ubuntu 10.04 Lucid Lynx

    Red face Re: need help with NGplant install

    Currently, I find it impossible to compile. It needs many headers added. Once you fix the first bug you mentioned there is at least a dozen more, and I still haven't gotten any success.

    You need the following headers added to each file:
    p3dimage.cpp --- add #include <string.h>
    p3dospath.cpp --- add #include <cstring> (or <string.h>)

    Once you get that done you should get this:
    Code:
    LEW_STATIC=1 -Ingpshot -I. -Iextern/glew/include ngpshot/p3dshaders.cpp
    ngpshot/p3dshaders.cpp: In function ‘void DumpInfoLog(GLhandleARB)’:
    ngpshot/p3dshaders.cpp:82: error: ‘malloc’ was not declared in this scope
    ngpshot/p3dshaders.cpp:99: error: ‘stderr’ was not declared in this scope
    ngpshot/p3dshaders.cpp:99: error: ‘fprintf’ was not declared in this scope
    ngpshot/p3dshaders.cpp:102: error: ‘free’ was not declared in this scope
    ngpshot/p3dshaders.cpp:106: error: ‘stderr’ was not declared in this scope
    ngpshot/p3dshaders.cpp:106: error: ‘fprintf’ was not declared in this scope
    ngpshot/p3dshaders.cpp: In function ‘bool CompileShaderObject(GLhandleARB*, GLenum, GLsizei, const GLcharARB**)’:
    ngpshot/p3dshaders.cpp:159: error: ‘stderr’ was not declared in this scope
    ngpshot/p3dshaders.cpp:159: error: ‘fprintf’ was not declared in this scope
    ngpshot/p3dshaders.cpp: In member function ‘GLhandleARB P3DShaderLoader::GetProgramHandle(bool, bool, bool) const’:
    ngpshot/p3dshaders.cpp:322: error: ‘stderr’ was not declared in this scope
    ngpshot/p3dshaders.cpp:322: error: ‘fprintf’ was not declared in this scope
    ngpshot/p3dshaders.cpp:346: error: ‘stderr’ was not declared in this scope
    ngpshot/p3dshaders.cpp:346: error: ‘fprintf’ was not declared in this scope
    scons: *** [ngpshot/p3dshaders.o] Error 1
    scons: building terminated because of errors.
    (03:50:34 PM) james_w: malloc is stdlib.h
    (03:51:15 PM) james_w: stderr is stdio.h

    (sadly it doesnt work by adding those headers... but thanks to james_w for the two fixes).
    Last edited by Gaming4JC; January 21st, 2009 at 10:04 PM.

  4. #4
    Join Date
    Jun 2008
    Beans
    53
    Distro
    Ubuntu 10.04 Lucid Lynx

    Talking Re: need help with NGplant install

    With help from _16aR_ a MOTU, I was able to compile it. Many thanks to him.

    to ngpview.cpp add:
    Code:
    #include <stdio.h>
    #include <stdlib.h>
    and to p3dshader.cpp add:
    Code:
    #include <cstdio>
    #include <malloc.h>
    #include <vector>
    
    #include <ngput/p3dglext.h>
    
    #include <p3dshaders.h>
    using namespace std;
    You should then be able to compile a generic linux binary!

    If I can figure out how I might make a deb

  5. #5
    Join Date
    Jun 2008
    Beans
    53
    Distro
    Ubuntu 10.04 Lucid Lynx

    Lightbulb Re: need help with NGplant install


    If you want to try the generic linux build, here it is:
    http://www.mediafire.com/?vzcngcyib9g

  6. #6
    Join Date
    Dec 2008
    Beans
    15

    Re: need help with NGplant install

    The following patch needs to be applied to the ngPlant source before it can be compiled.

    http://aur.archlinux.org/packages/ng...nt/gcc43.patch

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •