Compiling makehuman on linux

Tech support and suggestions forum. If you only have a basic question on how to get started, please use the "newbies" forum in the community section.

Moderator: joepal

Compiling makehuman on linux

Postby Setlec » Mon Aug 17, 2009 1:17 pm

Hello there i've been trying to compile makehuman on linux (mandriva) but i'm having issues.
Code: Select all
./compile_src.sh
./src/glmodule.c: In function ‘OnInit’:
./src/glmodule.c:926: error: ‘glActiveTexture’ undeclared (first use in this function)
./src/glmodule.c:926: error: (Each undeclared identifier is reported only once
./src/glmodule.c:926: error: for each function it appears in.)
./src/glmodule.c: In function ‘mhDrawMeshes’:
./src/glmodule.c:1186: warning: implicit declaration of function ‘glActiveTexture’

here is the Scons compile process
Code: Select all
scons build=release
scons: Reading SConscript files ...
Checking for C library python2.6... yes
Checking for C library X11... yes
Checking for C library SDL... yes
scons: done reading SConscript files.
scons: Building targets ...
gcc -o src/core.o -c -O2 -Iinclude -I/usr/include/python2.6 -I/usr/include/GL -I/usr/include/SDL src/core.c
gcc -o src/glmodule.o -c -O2 -Iinclude -I/usr/include/python2.6 -I/usr/include/GL -I/usr/include/SDL src/glmodule.c
src/glmodule.c: In function 'OnInit':
src/glmodule.c:926: error: 'glActiveTexture' undeclared (first use in this function)
src/glmodule.c:926: error: (Each undeclared identifier is reported only once
src/glmodule.c:926: error: for each function it appears in.)
scons: *** [src/glmodule.o] Error 1
scons: building terminated because of errors.


are you guys haing the same problem?
Setlec
 
Posts: 4
Joined: Mon Aug 17, 2009 12:55 pm

Re: Compiling makehuman on linux

Postby joepal » Mon Aug 17, 2009 1:26 pm

The nightly build completed without errors tonight, so unless someone messed up the subversion repository after 06:00 GMT something else must be wrong.

Can't figure out what from the output though.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 3900
Joined: Wed Jun 04, 2008 11:20 am

Re: Compiling makehuman on linux

Postby mflerackers » Mon Aug 17, 2009 1:34 pm

On Ubuntu linux 9.04 it compiled, but it declares glActiveTexture in gl.h. Maybe Mandriva has another version of mesa? In that case we need a better test instead of

#ifdef __WIN32__
glActiveTexture = (PFNGLACTIVETEXTUREPROC)SDL_GL_GetProcAddress("glActiveTexture");
#endif

on lines 82 and 914 in glmodule.c.
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: Compiling makehuman on linux

Postby Setlec » Mon Aug 17, 2009 2:34 pm

mesa? well i've got nvidia driver installed version 180.60. Maybe updating the driver could fix it? in any case i'll install mesa package.

Edit: i've checked mesa and i've got all *mesa* devel installed nothing changed...
Setlec
 
Posts: 4
Joined: Mon Aug 17, 2009 12:55 pm

Re: Compiling makehuman on linux

Postby mflerackers » Mon Aug 17, 2009 2:52 pm

did you try removing the two #ifdef's I mentioned?
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: Compiling makehuman on linux

Postby Setlec » Mon Aug 17, 2009 3:04 pm

just did! got a successful build, thanks [EDIT] but that's my console log while running the software

Code: Select all
setlec@localhost:~/workspace/makehuman-read-only/makehuman$ ./makehuman
POV-Ray Export Parameter File
Version 1.0.0
loading wavefront data/3dobjs/splash.obj in 0.000121 sec
time to build mesh:  9.79900360107e-05
WARNING: Unable to open color file data/3dobjs/splash.obj.colors
loading data/themes/default/images/splash.png
Could not load data/themes/default/images/splash.png, SDL_image not found
'NoneType' object has no attribute 'cameraMode'
'NoneType' object has no attribute 'visibility'
'NoneType' object has no attribute 'shadeless'
loading wavefront data/3dobjs/progressbar_background.obj in 0.000088 sec
time to build mesh:  8.89301300049e-05
WARNING: Unable to open color file data/3dobjs/progressbar_background.obj.colors
loading data/themes/default/images/progressbar_background.png
Could not load data/themes/default/images/progressbar_background.png, SDL_image not found
'NoneType' object has no attribute 'cameraMode'
'NoneType' object has no attribute 'visibility'
'NoneType' object has no attribute 'shadeless'
loading wavefront data/3dobjs/progressbar.obj in 0.000114 sec
time to build mesh:  8.39233398438e-05
WARNING: Unable to open color file data/3dobjs/progressbar.obj.colors
loading data/themes/default/images/progressbar.png
Could not load data/themes/default/images/progressbar.png, SDL_image not found
'NoneType' object has no attribute 'cameraMode'
'NoneType' object has no attribute 'visibility'
'NoneType' object has no attribute 'shadeless'
'NoneType' object has no attribute 'setScale'
loading data/themes/default/images/splash.png
Could not load data/themes/default/images/splash.png, SDL_image not found
loading data/themes/default/images/progressbar_background.png
Could not load data/themes/default/images/progressbar_background.png, SDL_image not found
loading data/themes/default/images/progressbar.png
Could not load data/themes/default/images/progressbar.png, SDL_image not found
Regeneration done in0.00074291229248
/bin/sh: aqsl: command not found
/bin/sh: aqsl: command not found
/bin/sh: aqsl: command not found
/bin/sh: aqsl: command not found
/bin/sh: aqsl: command not found
/bin/sh: shaderdl: command not found
/bin/sh: shaderdl: command not found
/bin/sh: shaderdl: command not found
/bin/sh: shaderdl: command not found
/bin/sh: shaderdl: command not found
/bin/sh: sdrc: command not found
/bin/sh: sdrc: command not found
/bin/sh: sdrc: command not found
/bin/sh: sdrc: command not found
loading wavefront data/3dobjs/upperbar.obj in 0.000161 sec
time to build mesh:  0.000111103057861
WARNING: Unable to open color file data/3dobjs/upperbar.obj.colors
loading data/themes/default/images/upperbar.png
Could not load data/themes/default/images/upperbar.png, SDL_image not found
'NoneType' object has no attribute 'cameraMode'
'NoneType' object has no attribute 'visibility'
'NoneType' object has no attribute 'shadeless'
loading wavefront data/3dobjs/backgroundbox.obj in 0.000090 sec
time to build mesh:  8.39233398438e-05
Time to apply colors  7.58171081543e-05
'NoneType' object has no attribute 'cameraMode'
'NoneType' object has no attribute 'visibility'
'NoneType' object has no attribute 'shadeless'
loading wavefront data/3dobjs/lowerbar.obj in 0.000120 sec
time to build mesh:  9.10758972168e-05
WARNING: Unable to open color file data/3dobjs/lowerbar.obj.colors
loading data/themes/default/images/lowerbar.png
Could not load data/themes/default/images/lowerbar.png, SDL_image not found
'NoneType' object has no attribute 'cameraMode'
'NoneType' object has no attribute 'visibility'
'NoneType' object has no attribute 'shadeless'
loading wavefront data/3dobjs/base.obj in 0.541051 sec
time to build mesh:  0.844375133514
Warning: Color data does not match number of vertices ( 22824 vs 22872)
'NoneType' object has no attribute 'cameraMode'
'NoneType' object has no attribute 'visibility'
'NoneType' object has no attribute 'shadeless'
'NoneType' object has no attribute 'shader'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "main.py", line 283, in <module>
    application = MHApplication()
  File "main.py", line 125, in __init__
    self.scene3d.selectedHuman = human.Human(self.scene3d, "data/3dobjs/base.obj")
  File "./mh_plugins/human.py", line 42, in __init__
    self.mesh.setShaderParameter("gradientMap", mh.loadTexture("data/textures/color_temperature.png", 0))
RuntimeError: Could not load data/textures/color_temperature.png, SDL_image not found
Could not run main Python script
^Z
[1]+  Stopped                 ./makehuman
Setlec
 
Posts: 4
Joined: Mon Aug 17, 2009 12:55 pm

Re: Compiling makehuman on linux

Postby mflerackers » Mon Aug 17, 2009 3:11 pm

do you have sdl image installed?
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: Compiling makehuman on linux

Postby Setlec » Mon Aug 17, 2009 9:40 pm

no i didn't have it installed but i'm instaling right now! thanks guys for your help 'til now!
Setlec
 
Posts: 4
Joined: Mon Aug 17, 2009 12:55 pm


Return to Bugs, problems and feature requests

Who is online

Users browsing this forum: No registered users and 2 guests