Results 1 to 8 of 8

Thread: need help with NGplant install

  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

  7. #7
    Join Date
    Jun 2007
    Location
    Finland
    Beans
    9
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: need help with NGplant install

    I added the patch info to the compile page. Sorry for misguiding tutorial

    http://opendimension.org/blender_en/...rom_source.php

  8. #8
    Join Date
    Mar 2008
    Beans
    3
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: need help with NGplant install

    I followed the tutorial and applied the patch, but upon executing scons got this error:

    Code:
    scons: warning: The BoolOption() function is deprecated; use the BoolVariable() function instead.
    File "/home/donno/Downloads/ngplant-0.9.7/SConstruct", line 19, in <module>
    Checking for c++ compiler presence... (cached) yes
    Checking for __attribute__((unused)) support presence in g++... yes
    Checking for C++ header file stdint.h... yes
    Checking for C header file Python.h... no
    Python.h not found... _ngp (Python bindings) will not be built
    Checking unsigned int type sizeof ... 
    Checking unsigned int* type sizeof ... 
    Checking endianess ... 
    Checking for C function sincosf()... no
    Checking for C++ function sincosf()... yes
    Checking for C function roundf()... no
    Checking for C++ function roundf()... yes
    Checking for C++ header file GL/glut.h... no
    glut library not found - ngpview application will not be built
    Checking GLEW presence and usability ... no
    No installed glew library found - using internal GLEW sources...
    Checking for xsltproc command... (cached) yes
    Checking for lua-config command... (cached) no
    No installed Lua libraries found. Using internal Lua sources...
    
    scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
    File "/home/donno/Downloads/ngplant-0.9.7/ngpcore/SConscript", line 27, in <module>
    scons: done reading SConscript files.
    scons: Building targets ...
    g++ -o ngpcore/p3dmath.o -c -W -Wall -O3 --fast-math -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H -DUINTSIZE= -DUINTPTRSIZE= -DHAVE_SINCOSF -DHAVE_ROUNDF -DGLEW_STATIC=1 -I. ngpcore/p3dmath.cpp
    g++ -o ngpcore/p3dmathrng.o -c -W -Wall -O3 --fast-math -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H -DUINTSIZE= -DUINTPTRSIZE= -DHAVE_SINCOSF -DHAVE_ROUNDF -DGLEW_STATIC=1 -I. ngpcore/p3dmathrng.cpp
    g++ -o ngpcore/p3dmathspline.o -c -W -Wall -O3 --fast-math -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H -DUINTSIZE= -DUINTPTRSIZE= -DHAVE_SINCOSF -DHAVE_ROUNDF -DGLEW_STATIC=1 -I. ngpcore/p3dmathspline.cpp
    g++ -o ngpcore/p3dplant.o -c -W -Wall -O3 --fast-math -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H -DUINTSIZE= -DUINTPTRSIZE= -DHAVE_SINCOSF -DHAVE_ROUNDF -DGLEW_STATIC=1 -I. ngpcore/p3dplant.cpp
    In file included from ngpcore/p3dplant.cpp:32:
    /usr/include/stdlib.h:33:20: error: stddef.h: No such file or directory
    In file included from ngpcore/p3dplant.cpp:32:
    /usr/include/stdlib.h:140: error: ‘size_t’ does not name a type
    In file included from ngpcore/p3dplant.cpp:32:
    /usr/include/stdlib.h: In function ‘double atof(const char*)’:
    /usr/include/stdlib.h:281: error: ‘NULL’ was not declared in this scope
    /usr/include/stdlib.h: In function ‘int atoi(const char*)’:
    /usr/include/stdlib.h:286: error: ‘NULL’ was not declared in this scope
    /usr/include/stdlib.h: In function ‘long int atol(const char*)’:
    /usr/include/stdlib.h:291: error: ‘NULL’ was not declared in this scope
    /usr/include/stdlib.h: In function ‘long long int atoll(const char*)’:
    /usr/include/stdlib.h:300: error: ‘NULL’ was not declared in this scope
    In file included from ngpcore/p3dplant.cpp:32:
    /usr/include/stdlib.h: At global scope:
    /usr/include/stdlib.h:337: error: ‘size_t’ has not been declared
    /usr/include/stdlib.h:367: error: ‘size_t’ has not been declared
    /usr/include/stdlib.h:471: error: ‘size_t’ was not declared in this scope
    /usr/include/stdlib.h:471: error: expected ‘,’ or ‘;’ before ‘throw’
    /usr/include/stdlib.h:473: error: ‘size_t’ was not declared in this scope
    /usr/include/stdlib.h:473: error: ‘size_t’ was not declared in this scope
    /usr/include/stdlib.h:473: error: initializer expression list treated as compound expression
    /usr/include/stdlib.h:474: error: expected ‘,’ or ‘;’ before ‘throw’
    /usr/include/stdlib.h:485: error: ‘size_t’ has not been declared
    In file included from /usr/include/stdlib.h:497,
                     from ngpcore/p3dplant.cpp:32:
    /usr/include/alloca.h:33: error: ‘size_t’ was not declared in this scope
    /usr/include/alloca.h:33: error: expected ‘,’ or ‘;’ before ‘throw’
    In file included from ngpcore/p3dplant.cpp:32:
    /usr/include/stdlib.h:502: error: ‘size_t’ was not declared in this scope
    /usr/include/stdlib.h:502: error: expected ‘,’ or ‘;’ before ‘throw’
    /usr/include/stdlib.h:507: error: ‘size_t’ has not been declared
    /usr/include/stdlib.h:507: error: ‘size_t’ has not been declared
    /usr/include/stdlib.h:705: error: ‘size_t’ has not been declared
    /usr/include/stdlib.h:705: error: ‘size_t’ has not been declared
    /usr/include/stdlib.h:710: error: ‘size_t’ has not been declared
    /usr/include/stdlib.h:710: error: ‘size_t’ has not been declared
    /usr/include/stdlib.h:713: error: ‘size_t’ has not been declared
    /usr/include/stdlib.h:713: error: ‘size_t’ has not been declared
    /usr/include/stdlib.h:788: error: ‘size_t’ has not been declared
    /usr/include/stdlib.h:791: error: ‘size_t’ has not been declared
    /usr/include/stdlib.h:795: error: ‘size_t’ has not been declared
    /usr/include/stdlib.h:799: error: ‘size_t’ has not been declared
    /usr/include/stdlib.h:808: error: ‘size_t’ has not been declared
    /usr/include/stdlib.h:812: error: ‘size_t’ has not been declared
    /usr/include/stdlib.h:819: error: ‘size_t’ does not name a type
    /usr/include/stdlib.h:822: error: ‘size_t’ does not name a type
    /usr/include/stdlib.h:885: error: ‘size_t’ has not been declared
    In file included from /usr/include/stdlib.h:903,
                     from ngpcore/p3dplant.cpp:32:
    /usr/include/bits/stdlib.h:26: error: ‘size_t’ has not been declared
    /usr/include/bits/stdlib.h:30: error: ‘size_t’ has not been declared
    /usr/include/bits/stdlib.h: In function ‘char* realpath(const char*, char*)’:
    /usr/include/bits/stdlib.h:40: error: ‘size_t’ was not declared in this scope
    /usr/include/bits/stdlib.h: At global scope:
    /usr/include/bits/stdlib.h:53: error: ‘size_t’ has not been declared
    /usr/include/bits/stdlib.h:54: error: ‘size_t’ has not been declared
    /usr/include/bits/stdlib.h:55: error: ‘size_t’ has not been declared
    /usr/include/bits/stdlib.h:58: error: ‘size_t’ has not been declared
    /usr/include/bits/stdlib.h:58: error: ‘size_t’ has not been declared
    /usr/include/bits/stdlib.h:65: error: ‘size_t’ has not been declared
    /usr/include/bits/stdlib.h: In function ‘int ptsname_r(int, char*, int)’:
    /usr/include/bits/stdlib.h:67: error: ‘size_t’ was not declared in this scope
    /usr/include/bits/stdlib.h: At global scope:
    /usr/include/bits/stdlib.h:78: error: ‘size_t’ has not been declared
    /usr/include/bits/stdlib.h: In function ‘int wctomb(char*, wchar_t)’:
    /usr/include/bits/stdlib.h:93: error: ‘size_t’ was not declared in this scope
    /usr/include/bits/stdlib.h: At global scope:
    /usr/include/bits/stdlib.h:99: error: ‘size_t’ does not name a type
    /usr/include/bits/stdlib.h:102: error: ‘size_t’ does not name a type
    /usr/include/bits/stdlib.h:106: error: ‘size_t’ does not name a type
    /usr/include/bits/stdlib.h:113: error: ‘size_t’ does not name a type
    /usr/include/bits/stdlib.h:131: error: ‘size_t’ does not name a type
    /usr/include/bits/stdlib.h:134: error: ‘size_t’ does not name a type
    /usr/include/bits/stdlib.h:138: error: ‘size_t’ does not name a type
    /usr/include/bits/stdlib.h:144: error: ‘size_t’ does not name a type
    scons: *** [ngpcore/p3dplant.o] Error 1
    scons: building terminated because of errors.
    zsh: exit 2     scons
    Ubuntu 9.10
    Last edited by onnod; December 19th, 2009 at 07:04 PM.

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
  •