Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 12

Discussione: blender da sorgenti

  1. #1
    Utente di HTML.it
    Registrato dal
    Nov 2003
    Messaggi
    1,157

    blender da sorgenti

    Ho un problema con i sorgenti di blender.
    Nel file INSTALL vengono descritti due modi per installare il pacchetto, tramite uno script auto-installante che utilizza scons http://www.scons.org/ (che per altro non ho e dovrei quindi installarmelo) o tramite la maniera classica ricompilando attraverso make (manca il configure) ma se cerco di utilizzare il secondo metodo ricevo questo errore:

    bash-2.05b# make
    ====> make all in blender/extern
    ====> make all in extern/qhull/src
    mkdir: cannot create directory `/home/enrico/Documenti/PKG/tmp/blender-2.34/obj/linux-glibc2.3.2-i386/extern/qhull': No such file or directory
    make[2]: *** [makedir] Error 1
    make[1]: *** [all] Error 1
    make: *** [all] Error 1
    bash-2.05b#

    ho provato anche da root

    mi date una mano per favore?

  2. #2
    Utente di HTML.it
    Registrato dal
    Nov 2003
    Messaggi
    1,157
    Questa è bella
    Ho creato le direcotory descritte dall'errore ed è partita la compilazione ma si è rifermata qui:

    SND_OpenALDevice.cpp: In member function `virtual void
    SND_OpenALDevice::SetObjectReferenceDistance(int, double) const':
    SND_OpenALDevice.cpp:673: error: `AL_REFERENCE_DISTANCE' undeclared (first use
    this function)
    SND_OpenALDevice.cpp:673: error: `alSourcef' undeclared (first use this
    function)
    SND_OpenALDevice.cpp: In member function `virtual void
    SND_OpenALDevice::ObjectIs2D(int) const':
    SND_OpenALDevice.cpp:684: error: `alSourcefv' undeclared (first use this
    function)
    SND_OpenALDevice.cpp: In member function `virtual void
    SND_OpenALDevice::SetObjectTransform(int, const MT_Vector3&, const
    MT_Vector3&, const MT_Matrix3x3&, const MT_Vector3&, const MT_Scalar&) const
    ':
    SND_OpenALDevice.cpp:704: error: `alSourcefv' undeclared (first use this
    function)
    {standard input}: Assembler messages:
    {standard input}:61: Error: symbol `freq' is already defined
    {standard input}:67: Error: symbol `data' is already defined
    {standard input}:79: Error: symbol `loop' is already defined
    make[3]: *** [/home/enrico/Documenti/PKG/tmp/blender-2.34/obj/linux-glibc2.3.2-i386/intern/OpenALSoundSystem/SND_OpenALDevice.o] Error 1
    make[2]: *** [all] Error 1
    make[1]: *** [all] Error 1
    make: *** [all] Error 1
    bash-2.05b$


    è normale?

  3. #3
    Utente di HTML.it
    Registrato dal
    Feb 2002
    Messaggi
    1,798
    [edit]
    post rivisto e corretto...

    Questi pacchetti sono installati?
    codice:
    Here are some links to external packages you may or may not need:
                                                                                                                                 
    python:      http://www.python.org
    libjpeg:     http://www.ijg.org/
    libpng:      http://www.libpng.org/pub/png/
    zlib:        http://www.gzip.org/zlib/
    ode:         http://opende.sourceforge.net/
    openal:      http://www.openal.org/home/                (for linux/windows)
        sdl:     http://www.libsdl.org/index.php (for openal)
        smpeg:   http://www.lokigames.com/development/smpeg.php3 (for openal)
    fmod: http://www.fmod.org/
                                                                                                                                 
    mozilla: http://www.mozilla.org/
    nspr:  ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases
            (side note: on debian linux you will need mozilla-dev and libnspr-dev)
                                                                                                                                 
    glut:    http://www.opengl.org/developers/doc...tion/glut.html
                                                                                                                                 
    If you do not have OpenGL you will also need mesa:
    mesa:    http://www.mesa3d.org
                                                                                                                                 
    If you want to compile with QuickTime enabled, download the SDK for your OS:
    quicktime:   http://developer.apple.com/quicktime/
    Slack? Smack!

  4. #4
    Utente di HTML.it
    Registrato dal
    Nov 2003
    Messaggi
    1,157

    Ora sono ripartito ma:

    ====> make all in source/gameengine/SceneGraph
    ====> make all in source/gameengine/Network
    ====> make all in source/gameengine/Network/LoopBackNetwork
    ====> make all in source/gameengine/Physics
    ====> make all in source/gameengine/Physics/common
    ====> make all in source/gameengine/Physics/Sumo
    ====> make all in /Fuzzics
    ====> make all in source/sumo/Fuzzics/src
    ====> make all in source/gameengine/Physics/Dummy
    ====> make all in source/gameengine/Physics/BlOde
    g++ -c -DUSE_SUMO_SOLID -pipe -fPIC -DNDEBUG -O2 -Wall -Wno-reorder -DMOZ_NOT_NET -I../Physics/common -I../Physics/Dummy -I/usr/X11R6/include -I/home/enrico/Document i/PKG/tmp/Blender/blender-2.34/lib/linux-glibc2.3.2-i386/string/include -I/usr/include/python2.3 -I/home/enrico/Documenti/PKG/tmp/Blender/blender-2.34/source/gam eengine/Physics/Sumo/Fuzzics/include -I/home/enrico/Documenti/PKG/tmp/Blender/blender-2.34/source/gameengine/Physics/Sumo/include -I/home/enrico/Documenti/PKG/tmp/Bl ender/blender-2.34/lib/linux-glibc2.3.2-i386/moto/include -I/home/enrico/Documenti/PKG/Blender/ode-0.5/include -I/home/enrico/Documenti/PKG/tmp/Blender/blender-2.34/ lib/linux-glibc2.3.2-i386/guardedalloc/include -I../../Physics/common -I../../Physics/Dummy OdePhysicsController.cpp -o /home/enrico/Documenti/PKG/tmp/Blender/blende r-2.34/obj/linux-glibc2.3.2-i386/gameengine/blphys/blode/OdePhysicsController.o
    OdePhysicsController.cpp: In member function `virtual bool
    ODEPhysicsController::SynchronizeMotionStates(floa t)':
    OdePhysicsController.cpp:310: warning: unused variable `float length'
    OdePhysicsController.cpp:310: warning: unused variable `float width'
    OdePhysicsController.cpp:310: warning: unused variable `float height'
    g++ -c -DUSE_SUMO_SOLID -pipe -fPIC -DNDEBUG -O2 -Wall -Wno-reorder -DMOZ_NOT_NET -I../Physics/common -I../Physics/Dummy -I/usr/X11R6/include -I/home/enrico/Document i/PKG/tmp/Blender/blender-2.34/lib/linux-glibc2.3.2-i386/string/include -I/usr/include/python2.3 -I/home/enrico/Documenti/PKG/tmp/Blender/blender-2.34/source/gam eengine/Physics/Sumo/Fuzzics/include -I/home/enrico/Documenti/PKG/tmp/Blender/blender-2.34/source/gameengine/Physics/Sumo/include -I/home/enrico/Documenti/PKG/tmp/Bl ender/blender-2.34/lib/linux-glibc2.3.2-i386/moto/include -I/home/enrico/Documenti/PKG/Blender/ode-0.5/include -I/home/enrico/Documenti/PKG/tmp/Blender/blender-2.34/ lib/linux-glibc2.3.2-i386/guardedalloc/include -I../../Physics/common -I../../Physics/Dummy OdePhysicsEnvironment.cpp -o /home/enrico/Documenti/PKG/tmp/Blender/blend er-2.34/obj/linux-glibc2.3.2-i386/gameengine/blphys/blode/OdePhysicsEnvironment.o
    /home/enrico/Documenti/PKG/Blender/ode-0.5/include/ode/collision_space.h: In
    constructor `ODEPhysicsEnvironment::ODEPhysicsEnvironment()':
    /home/enrico/Documenti/PKG/Blender/ode-0.5/include/ode/collision_space.h:38: error: too
    few arguments to function `dxSpace* dHashSpaceCreate(dxSpace*)'
    OdePhysicsEnvironment.cpp:39: error: at this point in file
    OdePhysicsEnvironment.cpp: In member function `virtual void
    ODEPhysicsEnvironment:roceed(double)':
    OdePhysicsEnvironment.cpp:63: warning: unused variable `int m_odeContacts'
    make[4]: *** [/home/enrico/Documenti/PKG/tmp/Blender/blender-2.34/obj/linux-glibc2.3.2-i386/gameengine/blphys/blode/OdePhysicsEnvironment.o] Error 1
    make[3]: *** [all] Error 1
    make[2]: *** [all] Error 1
    make[1]: *** [all] Error 1
    make: *** [all] Error 1
    bash-2.05b#
    Il problema sembra il "gameengine", come viene descritto nel file INSTALL:

    --------------Basic Makefile TIPS---------------------------------------

    Edit source/nan_definitions.mk to fit your environment, be sure to edit the
    block matching your OS. You will want to change variables like
    NAN_JPEG, NAN_PNG etc. to point to where you have those installed.

    If you want to integrate the game-engine in Blender, you might want
    to uncomment the following line in nan_compile.mk:
    #CFLAGS += -DGAMEBLENDER=1
    The define is disabled by default because there are still some
    problems with this at the moment.

    After adjusting things for your environment run 'make' (or use the nice hmake
    script at blender/source/tools/hmake/hmake)
    Ma io nel file "source/nan_definitions.mk" non trovo la riga incriminata



    bash-2.05b# cat source/nan_definitions.mk | less

    .........

    #

    ifndef CONFIG_GUESS
    ifeq (debug, $(findstring debug, $(MAKECMDGOALS)))
    ifeq (all, $(findstring all, $(MAKECMDGOALS)))
    all debug::
    ERRTXT = "ERROR: all and debug targets cannot be used together anymore"
    ERRTXT += "Use something like ..make all && make debug.. instead"
    $(error $(ERRTXT))
    endif
    endif

    # First generic defaults for all platforms which should be constant.
    # Note: ?= lets these defaults be overruled by environment variables,

    export SRCHOME ?= $(NANBLENDERHOME)/source
    export CONFIG_GUESS := $(shell ${SRCHOME}/tools/guess/guessconfig)
    export OS := $(shell echo ${CONFIG_GUESS} | sed -e 's/-.*//')
    export OS_VERSION := $(shell echo ${CONFIG_GUESS} | sed -e 's/^[^-]*-//' -e 's/-[^-]*//')
    export CPU := $(shell echo ${CONFIG_GUESS} | sed -e 's/^[^-]*-[^-]*-//')
    export MAKE_START := $(shell date "+%H:%M:%S %d-%b-%Y")
    export NAN_LIBDIR ?= $(NANBLENDERHOME)/lib
    export NAN_OBJDIR ?= $(NANBLENDERHOME)/obj
    # Library Config_Guess DIRectory
    export LCGDIR = $(NAN_LIBDIR)/$(CONFIG_GUESS)
    # Object Config_Guess DIRectory
    export OCGDIR = $(NAN_OBJDIR)/$(CONFIG_GUESS)
    export NAN_MOTO ?= $(LCGDIR)/moto
    ifeq ($(FREE_WINDOWS), true)
    export NAN_SOLID ?= $(LCGDIR)/gcc/solid
    export NAN_QHULL ?= $(LCGDIR)/gcc/qhull
    else
    export NAN_SOLID ?= $(LCGDIR)/solid
    export NAN_QHULL ?= $(LCGDIR)/qhull
    endif
    export NAN_SUMO ?= $(SRCHOME)/gameengine/Physics/Sumo
    export NAN_FUZZICS ?= $(SRCHOME)/gameengine/Physics/Sumo/Fuzzics
    export NAN_BLENKEY ?= $(LCGDIR)/blenkey
    export NAN_DECIMATION ?= $(LCGDIR)/decimation
    export NAN_GUARDEDALLOC ?= $(LCGDIR)/guardedalloc
    export NAN_IKSOLVER ?= $(LCGDIR)/iksolver
    export NAN_BSP ?= $(LCGDIR)/bsp
    export NAN_SOUNDSYSTEM ?= $(LCGDIR)/SoundSystem
    export NAN_STRING ?= $(LCGDIR)/string
    export NAN_MEMUTIL ?= $(LCGDIR)/memutil
    export NAN_CONTAINER ?= $(LCGDIR)/container
    export NAN_ACTION ?= $(LCGDIR)/action
    export NAN_IMG ?= $(LCGDIR)/img
    export NAN_GHOST ?= $(LCGDIR)/ghost
    export NAN_TEST_VERBOSITY ?= 1
    export NAN_BMFONT ?= $(LCGDIR)/bmfont
    export NAN_OPENNL ?= $(LCGDIR)/opennl
    export NAN_SUPERLU ?= $(LCGDIR)/superlu
    ifeq ($(FREE_WINDOWS), true)
    export NAN_FTGL ?= $(LCGDIR)/gcc/ftgl
    else
    export NAN_FTGL ?= $(LCGDIR)/ftgl
    endif

    # Platform Dependent settings go below:
    .........

    else
    ifeq ($(OS),linux)

    export ID = $(shell whoami)
    export HOST = $(shell hostname -s)
    export NAN_PYTHON ?= /usr
    export NAN_PYTHON_VERSION ?= 2.3
    export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
    export NAN_OPENAL ?= /usr
    export NAN_FMOD ?= /home/enrico/Documenti/PKG/Blender/fmodapi373linux
    export NAN_JPEG ?= /usr
    export NAN_PNG ?= /usr
    export NAN_ODE ?= /home/enrico/Documenti/PKG/Blender/ode-0.5
    export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
    export NAN_MESA ?= /usr
    export NAN_ZLIB ?= /usr
    export NAN_NSPR ?= $(LCGDIR)/nspr
    export NAN_FREETYPE ?= /usr
    export NAN_GETTEXT ?= /usr
    export NAN_SDL ?= $(shell sdl-config --prefix)
    export NAN_SDLLIBS ?= $(shell sdl-config --libs)
    export NAN_SDLCFLAGS ?= $(shell sdl-config --cflags)

    # Uncomment the following line to use Mozilla inplace of netscape
    export CPPFLAGS += -DMOZ_NOT_NET
    # Location of MOZILLA/Netscape header files...
    export NAN_MOZILLA_INC ?= /usr/include/mozilla
    export NAN_MOZILLA_LIB ?= $(LCGDIR)/mozilla/lib/
    # Will fall back to look in NAN_MOZILLA_INC/nspr and NAN_MOZILLA_LIB
    # if this is not set.

    export NAN_BUILDINFO ?= true
    # Be paranoid regarding library creation (do not update archives)
    export NAN_PARANOID ?= true

    # l10n
    #export INTERNATIONAL ?= true

    # enable freetype2 support for text objects
    #export WITH_FREETYPE2 ?= true
    .........

    # Don't want to build the gameengine?
    ifeq ($(NAN_NO_KETSJI), true)
    export NAN_JUST_BLENDERDYNAMIC=true
    export NAN_NO_OPENAL=true
    endif

    Ho riportato il file "source/nan_definitions.mk", la prima sezione generale e la parte relativa a linux.
    L'unica parte in cui compare il "nome incriminato" è nelle ultime righe però ...


    Help

  5. #5
    Utente di HTML.it
    Registrato dal
    Nov 2003
    Messaggi
    1,157

  6. #6
    Utente di HTML.it
    Registrato dal
    Feb 2002
    Messaggi
    1,798
    Aggiungila te nella sezione per linux:

    ...
    ifeq ($(OS), linux)
    ...
    CFLAGS += -DGAMEBLENDER=1
    ...

    prova a ricompilare con make (o hmake)
    Slack? Smack!

  7. #7
    Utente di HTML.it
    Registrato dal
    Nov 2003
    Messaggi
    1,157
    Originariamente inviato da Sergio Pedone
    Aggiungila te nella sezione per linux:

    ...
    ifeq ($(OS), linux)
    ...
    CFLAGS += -DGAMEBLENDER=1
    ...

    prova a ricompilare con make (o hmake)
    .........

    else
    ifeq ($(OS),linux)

    export ID = $(shell whoami)
    export HOST = $(shell hostname -s)
    export NAN_PYTHON ?= /usr
    export NAN_PYTHON_VERSION ?= 2.3
    export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
    export NAN_OPENAL ?= /usr
    export NAN_FMOD ?= /home/enrico/Documenti/PKG/Blender/fmodapi373linux
    export NAN_JPEG ?= /usr
    export NAN_PNG ?= /usr
    export NAN_ODE ?= /home/enrico/Documenti/PKG/Blender/ode-0.5
    export NAN_TERRAPLAY ?= $(LCGDIR)/terraplay
    export NAN_MESA ?= /usr
    export NAN_ZLIB ?= /usr
    export NAN_NSPR ?= $(LCGDIR)/nspr
    export NAN_FREETYPE ?= /usr
    export NAN_GETTEXT ?= /usr
    export NAN_SDL ?= $(shell sdl-config --prefix)
    export NAN_SDLLIBS ?= $(shell sdl-config --libs)
    export NAN_SDLCFLAGS ?= $(shell sdl-config --cflags)
    CFLAGS += -DGAMEBLENDER=1


    ........


    Niente da fare

  8. #8
    Utente di HTML.it
    Registrato dal
    Feb 2002
    Messaggi
    1,798
    Slack? Smack!

  9. #9
    Utente di HTML.it
    Registrato dal
    Nov 2003
    Messaggi
    1,157
    Curiosità:

    Perchè quando ricompilo utilizzando:

    "CFLAGS="-02 -march=i486 -mcpu=i686" ./configure --prefix=/usr"

    durante il processo vedo la riga:

    gcc: unrecognized option `-02'



    Non sempre però
    E' normale?

  10. #10
    Utente di HTML.it
    Registrato dal
    Nov 2003
    Messaggi
    1,157
    Riuppo per l'ultima volta, sperando di trovare qualcuno che si sia ricompilato i sorgenti di blender

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.