Ongelmia MakeHumanin kääntämisestä (Linux)?

Python-kielen käyttäminen
Post Reply
User avatar
tuxer
ADMIN
Posts: 511
Joined: 07.10.2007, 09:27

Ongelmia MakeHumanin kääntämisestä (Linux)?

Post by tuxer »

http://www.opendimension.org/blender/pa ... ehuman.php

Virheitä sivussa tai ei vain onnistu? Kirjoita tänne.
yusali
Posts: 4
Joined: 15.12.2011, 22:57

Re: Ongelmia MakeHumanin kääntämisestä (Linux)?

Post by yusali »

Moro.

Tämä ei liity MakeHumaniin, mutta vastaavaan Blenderiä avustavaan NgPlant ohjelmaan.

Mitähän tässä on tapahtunut kun ei saa käännettyä ohjeiden mukaan?

Xubuntu versio on 11.10.

~/Lataukset/ngplant-0.9.8$ scons
.
.
.
g++ -o ngplant/p3dwxlistdlg.o -c -O3 --fast-math -pthread -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H
-DHAVE_SINCOSF -DHAVE_ROUNDF -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DNGP_LUA_VER=51
-I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -Ingplant -I. -Iextern/lua/src ngplant/p3dwxlistdlg.cpp
g++ -o ngplant/main.o -c -O3 --fast-math -pthread -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H -DHAVE_SINCOSF -DHAVE_ROUNDF
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DNGP_LUA_VER=51 -I/usr/lib/wx/include/gtk2-unicode-release-2.8
-I/usr/include/wx-2.8 -Ingplant -I. -Iextern/lua/src ngplant/main.cpp
In file included from ngplant/main.cpp:32:0:
ngplant/images/ngplant.xpm:203:99: varoitus: vanhentunut tyyppimuunnos merkkijonovakiosta tyyppiin ”char*” [-Wwrite-strings]
ngplant/images/ngplant.xpm:203:99: varoitus: vanhentunut tyyppimuunnos merkkijonovakiosta tyyppiin ”char*” [-Wwrite-strings]
.
.
.
ngplant/images/ngplant.xpm:203:99: varoitus: vanhentunut tyyppimuunnos merkkijonovakiosta tyyppiin ”char*” [-Wwrite-strings]
ngplant/images/ngplant.xpm:203:99: varoitus: vanhentunut tyyppimuunnos merkkijonovakiosta tyyppiin ”char*” [-Wwrite-strings]
Kaikkiaan 201 kappaletta edellisiä virheitä.
g++ -o ngplant/p3dcanvas3d.o -c -O3 --fast-math -pthread -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H
-DHAVE_SINCOSF -DHAVE_ROUNDF -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
-DNGP_LUA_VER=51 -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -Ingplant
-I. -Iextern/lua/src ngplant/p3dcanvas3d.cpp
.
.
.
pluginfo.o ngplant/p3duimodelstemempty.o ngplant/p3dappprefs.o ngplant/p3dcmdqueue.o ngplant/p3dimagewx.o
ngplant/p3dplugluactl.o ngplant/p3dplugluahli.o ngplant/p3dplugluaui.o ngplant/p3dplugluaprefs.o ngplant/p3dpluglua.o
-L/usr/lib/i386-linux-gnu -Lngpcore -Lngput -Lextern/libs -lGLEW -lwx_gtk2u_gl-2.8 -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8
-lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8
-lwx_baseu_net-2.8 -lwx_baseu-2.8 -lngpcore -lngput -lext_lua -lext_lualib
ngplant/p3dcanvas3d.o: In function `P3DCanvas3D::OnPaint(wxPaintEvent&)':
p3dcanvas3d.cpp:(.text+0xa14): undefined reference to `gluPerspective'
ngplant/p3dtexture.o: In function `P3DTexManagerGL::LoadFromFile(char const*, wxString&)':
p3dtexture.cpp:(.text+0x10fa): undefined reference to `gluBuild2DMipmaps'
p3dtexture.cpp:(.text+0x11fb): undefined reference to `gluBuild2DMipmaps'
collect2: ld:n paluuarvo oli 1
scons: *** [ngplant/ngplant] Error 1
scons: building terminated because of errors.
yusali
Posts: 4
Joined: 15.12.2011, 22:57

Re: Ongelmia MakeHumanin kääntämisestä (Linux)?

Post by yusali »

Make Human pysähtyy animorph make ajamiseen

mhgui-0.2/include/mhgui/Makefile.am
mhgui-0.2/include/mhgui/Makefile.in
mhgui-0.2/include/mhgui/ImageSliderSysListener.h
mhgui-0.2/include/mhgui/Component.h
mhgui-0.2/include/mhgui/CGUtilities.h
mhgui-0.2/include/mhgui/Tooltip.h
mhgui-0.2/include/mhgui/ImageSlider.h
mhgui-0.2/include/Makefile.am
mhgui-0.2/include/Makefile.in
mhgui-0.2/COPYING
mhgui-0.2/mhgui.DevPackage.in
myname@myname-myname:~/Lataukset$ cd animorph-0.3/
myname@myname-myname:~/Lataukset/animorph-0.3$ make
make all-recursive
make[1]: Siirrytään hakemistoon "/home/myname/Lataukset/animorph-0.3"
Making all in include
make[2]: Siirrytään hakemistoon "/home/myname/Lataukset/animorph-0.3/include"
Making all in animorph
make[3]: Siirrytään hakemistoon "/home/myname/Lataukset/animorph-0.3/include/animorph"
make[3]: Kohteelle "all" ei tarvitse tehdä mitään.
make[3]: Poistutaan hakemistosta "/home/myname/Lataukset/animorph-0.3/include/animorph"
make[3]: Siirrytään hakemistoon "/home/myname/Lataukset/animorph-0.3/include"
make[3]: Kohteelle "all-am" ei tarvitse tehdä mitään.
make[3]: Poistutaan hakemistosta "/home/myname/Lataukset/animorph-0.3/include"
make[2]: Poistutaan hakemistosta "/home/myname/Lataukset/animorph-0.3/include"
Making all in src
make[2]: Siirrytään hakemistoon "/home/myname/Lataukset/animorph-0.3/src"
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -Wall -g -O2 -MT BodySettings.lo -MD -MP -MF .deps/BodySettings.Tpo -c -o BodySettings.lo BodySettings.cpp
g++ -DHAVE_CONFIG_H -I. -I.. -Wall -g -O2 -MT BodySettings.lo -MD -MP -MF .deps/BodySettings.Tpo -c BodySettings.cpp -fPIC -DPIC -o .libs/BodySettings.o
BodySettings.cpp: In member function 'void Animorph::BodySettings::fromStream(std::ifstream&)':
BodySettings.cpp:54:54: error: 'strlen' was not declared in this scope
make[2]: *** [BodySettings.lo] Virhe 1
make[2]: Poistutaan hakemistosta "/home/myname/Lataukset/animorph-0.3/src"
make[1]: *** [all-recursive] Virhe 1
make[1]: Poistutaan hakemistosta "/home/myname/Lataukset/animorph-0.3"
make: *** [all] Virhe 2
User avatar
tuxer
ADMIN
Posts: 511
Joined: 07.10.2007, 09:27

Re: Ongelmia MakeHumanin kääntämisestä (Linux)?

Post by tuxer »

p3dcanvas3d.cpp:(.text+0xa14): undefined reference to `gluPerspective'
Onko sinulla libglu asennettuna?
yusali
Posts: 4
Joined: 15.12.2011, 22:57

Re: Ongelmia MakeHumanin kääntämisestä (Linux)?

Post by yusali »

Make Human lähti toimimaan

mkdir makehuman-svn
cd makehuman-svn
svn checkout http://makehuman.googlecode.com/svn/trunk/ makehuman-read-only
cd makehuman-read-only
scons
yusali
Posts: 4
Joined: 15.12.2011, 22:57

Re: Ongelmia MakeHumanin kääntämisestä (Linux)?

Post by yusali »

NgPlant ei toimi.

Tehdyt:

sudo apt-get install libwxgtk2.8-dbg freeglut3-dbg mingw32 wx2.8-headers python-wxtools python-wxgtk2.8-dbg

Tallennettu alapuolen tiedot gcc43.patch-tiedostoon:

<!-- koodi alkaa -->

--- ngput/p3dimage.cpp.org
+++ ngput/p3dimage.cpp
@@ -30,6 +30,7 @@
***************************************************************************/

#include <stdlib.h>
+#include <cstring>

#include <ngpcore/p3ddefs.h>
#include <ngpcore/p3dtypes.h>

--- ngput/p3dospath.cpp.org
+++ ngput/p3dospath.cpp
@@ -30,6 +30,8 @@
***************************************************************************/

#include <stdlib.h>
+#include <cstring>
+#include <cstdio>

#include <string>

--- ngpshot/ngpshot.cpp.org
+++ ngpshot/ngpshot.cpp
@@ -20,6 +20,7 @@

#include <stdio.h>
#include <stdlib.h>
+#include <cstring>

#include <new>
#include <string>

--- ngpshot/p3dshaders.cpp.org
+++ ngpshot/p3dshaders.cpp
@@ -19,6 +19,8 @@
***************************************************************************/

#include <vector>
+#include <cstdio>
+#include <cstdlib>

#include <ngput/p3dglext.h>

--- ngpview/ngpview.cpp.org
+++ ngpview/ngpview.cpp
@@ -20,6 +20,7 @@

#include <stdio.h>
#include <stdlib.h>
+#include <cstring>

#include <ngput/p3dglext.h>


<!-- Koodi loppui -->

Nyt

patch -p0 < gcc43.patch

cross-sample.py-tiedoston lähteitä en osaa määrittää. En löydä kohtaan /home/alice/opt/i586-mingw32/lib/wx/include/i586-mingw32-msw-ansi-release-static-2.6 vaihtoehtoista polkua.

Alla määrittämäni cross-sample.py:

# Enable cross-compilation
cross="yes"

# C compiler
CC = "i586-mingw32msvc-gcc"
# C++ compiler
CXX = "i586-mingw32msvc-g++"
# Archive indexer
RANLIB = "i586-mingw32msvc-ranlib"
# Archiver
AR = "i586-mingw32msvc-ar"
# Resource compiler
WINDRES = "i586-mingw32msvc-windres"

# wxWidgets headers paths (space-separated)
WX_INC = "/usr/include/wx-2.8 /home/alice/opt/i586-mingw32/lib/wx/include/i586-mingw32-msw-ansi-release-static-2.6"
# wxWidgets libraries (space-separated)
WX_LIB = "wx_msw-2.6-i586-mingw32 wx_msw_gl-2.6-i586-mingw32 wxtiff-2.6-i586-mingw32 wxjpeg-2.6-i586-mingw32 wxpng-2.6-i586-mingw32 wxzlib-2.6-i586-mingw32"
# wxWidgets libaries paths (space-separated)
WX_LIBPATH = "/usr/i586-mingw32msvc/lib"

# Build Lua libraries from sources in extern/lua/src
LUA_INTERNAL= "yes"
# Lua headers path(s) (space-separated)
LUA_INC = ""
# Lua libraries (space-separated)
LUA_LIBS = ""
# Lua libraries path(s) (space-separated)
LUA_LIBPATH = ""

# Build GLEW library from sources in extern/glew
GLEW_INTERNAL= "yes"
# GLEW headers path(s) (space-separated)
GLEW_INC = ""
# GLEW libraries (space-separated)
GLEW_LIBS = ""
# GLEW libraries path(s) (space-separated)
GLEW_LIBPATH = ""

# Enable PNG support
WITH_LIBPNG = "yes"

# libpng headers path(s) (space-separated)
LIBPNG_INC = "/usr/i586-mingw32msvc/include/"
# libpng libraries (space-separated)
LIBPNG_LIBS = "png"
# libpng libraries path(s) (space-separated)
LIBPNG_LIBPATH = "/usr/i586-mingw32msvc/lib"
# libpng additional preprocessor definitions (space-separated)
LIBPNG_DEFINES = ""
# libpng pkg-config custom command line
LIBPNG_CONFIG = ""

# Enable JPEG support
WITH_LIBJPEG = "yes"

# libjpeg headers path(s) (space-separated)
LIBJPEG_INC = "/usr/i586-mingw32msvc/include/"
# libjpeg libraries (space-separated)
LIBJPEG_LIBS = "jpeg"
# libjpeg libraries path(s) (space-separated)
LIBJPEG_LIBPATH = "/usr/i586-mingw32msvc/lib"
# libjpeg additional preprocessor definitions (space-separated)
LIBJPEG_DEFINES = ""
# libjpeg pkg-config custom command line
LIBJPEG_CONFIG = ""

# The search path for ngplant plugins ('plugins' if set to None)
PLUGINS_DIR = None



Tämän jälkeen annoin:

scons config=cross-sample ngpcore

Kaikki näyttää menevän hyvin. Ohjelma ei toimi.

Alla config.log-tiedosto:

file /home/myname/Asiakirjat/ngplants-svn/ngplant-0.9.8/SConstruct,line 95:
Configure(confdir = .sconf_temp)
scons: Configure: Checking for c++ compiler presence...
scons: Configure: (cached) yes

scons: Configure: Checking for __attribute__((unused)) support presence in g++...
scons: Configure: ".sconf_temp/conftest_0.cpp" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_0.cpp <-
| |
| |
| |class TestClass
| | {
| | public :
| |
| | void TestMethod (int a __attribute__((unused)));
| | };
| |
| |int main (int argc,
| | char *argv[])
| | {
| | return(0);
| | }
| |
|
scons: Configure: ".sconf_temp/conftest_0.o" is up to date.
scons: Configure: The original builder output was:
|i586-mingw32msvc-g++ -o .sconf_temp/conftest_0.o -c .sconf_temp/conftest_0.cpp
|
scons: Configure: (cached) yes

scons: Configure: Checking for C++ header file stdint.h...
scons: Configure: ".sconf_temp/conftest_1.cpp" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_1.cpp <-
| |
| |#include "stdint.h"
| |
| |
|
scons: Configure: ".sconf_temp/conftest_1.o" is up to date.
scons: Configure: The original builder output was:
|i586-mingw32msvc-g++ -o .sconf_temp/conftest_1.o -c -DHAVE_GXX_ARG_ATTR_UNUSED .sconf_temp/conftest_1.cpp
|
scons: Configure: (cached) yes

scons: Configure: Checking for C function sincosf()...
scons: Configure: ".sconf_temp/conftest_2.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_2.c <-
| |
| |
| |#include <assert.h>
| |C++
| |
| |int main() {
| |#if defined (__stub_sincosf) || defined (__stub___sincosf)
| | fail fail fail
| |#else
| | sincosf();
| |#endif
| |
| | return 0;
| |}
| |
|
scons: Configure: Building ".sconf_temp/conftest_2.o" failed in a previous run and all its sources are up to date.
scons: Configure: The original builder output was:
|i586-mingw32msvc-gcc -o .sconf_temp/conftest_2.o -c -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H .sconf_temp/conftest_2.c
|
scons: Configure: (cached) no

scons: Configure: Checking for C++ function sincosf()...
scons: Configure: ".sconf_temp/conftest_3.cpp" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_3.cpp <-
| |
| |
| |#include <assert.h>
| |
| |#ifdef __cplusplus
| |extern "C"
| |#endif
| |char sincosf();
| |
| |int main() {
| |#if defined (__stub_sincosf) || defined (__stub___sincosf)
| | fail fail fail
| |#else
| | sincosf();
| |#endif
| |
| | return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_3.o" is up to date.
scons: Configure: The original builder output was:
|i586-mingw32msvc-g++ -o .sconf_temp/conftest_3.o -c -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H .sconf_temp/conftest_3.cpp
|
scons: Configure: Building ".sconf_temp/conftest_3.exe" failed in a previous run and all its sources are up to date.
scons: Configure: The original builder output was:
|i586-mingw32msvc-g++ -o .sconf_temp/conftest_3.exe .sconf_temp/conftest_3.o
|
scons: Configure: (cached) no

scons: Configure: Checking for C function roundf()...
scons: Configure: ".sconf_temp/conftest_4.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_4.c <-
| |
| |
| |#include <assert.h>
| |C++
| |
| |int main() {
| |#if defined (__stub_roundf) || defined (__stub___roundf)
| | fail fail fail
| |#else
| | roundf();
| |#endif
| |
| | return 0;
| |}
| |
|
scons: Configure: Building ".sconf_temp/conftest_4.o" failed in a previous run and all its sources are up to date.
scons: Configure: The original builder output was:
|i586-mingw32msvc-gcc -o .sconf_temp/conftest_4.o -c -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H .sconf_temp/conftest_4.c
|
scons: Configure: (cached) no

scons: Configure: Checking for C++ function roundf()...
scons: Configure: ".sconf_temp/conftest_5.cpp" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_5.cpp <-
| |
| |
| |#include <assert.h>
| |
| |#ifdef __cplusplus
| |extern "C"
| |#endif
| |char roundf();
| |
| |int main() {
| |#if defined (__stub_roundf) || defined (__stub___roundf)
| | fail fail fail
| |#else
| | roundf();
| |#endif
| |
| | return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_5.o" is up to date.
scons: Configure: The original builder output was:
|i586-mingw32msvc-g++ -o .sconf_temp/conftest_5.o -c -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H .sconf_temp/conftest_5.cpp
|
scons: Configure: ".sconf_temp/conftest_5.exe" is up to date.
scons: Configure: The original builder output was:
|i586-mingw32msvc-g++ -o .sconf_temp/conftest_5.exe .sconf_temp/conftest_5.o
|
scons: Configure: (cached) yes

scons: Configure: Checking for C++ header file GL/glut.h...
scons: Configure: ".sconf_temp/conftest_6.cpp" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_6.cpp <-
| |
| |#include "GL/glut.h"
| |
| |
|
scons: Configure: Building ".sconf_temp/conftest_6.o" failed in a previous run and all its sources are up to date.
scons: Configure: The original builder output was:
|i586-mingw32msvc-g++ -o .sconf_temp/conftest_6.o -c -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H -DHAVE_ROUNDF .sconf_temp/conftest_6.cpp
|
scons: Configure: (cached) no

scons: Configure: Checking for xsltproc command...
scons: Configure: (cached) yes

scons: Configure: Checking libpng presence and usability ...
scons: Configure: ".sconf_temp/conftest_7.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_7.c <-
| |
| |#include <png.h>
| |
| |int main (int argc,char *argv[])
| | {
| | png_sig_cmp(0,0,4);
| |
| | return(0);
| | }
| |
|
scons: Configure: Building ".sconf_temp/conftest_7.o" failed in a previous run and all its sources are up to date.
scons: Configure: The original builder output was:
|i586-mingw32msvc-gcc -o .sconf_temp/conftest_7.o -c -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H -DHAVE_ROUNDF -DGLEW_STATIC=1 -I/home/alice/opt/i586-mingw32/include .sconf_temp/conftest_7.c
|
scons: Configure: (cached) no

scons: Configure: Checking libjpeg presence and usability ...
scons: Configure: ".sconf_temp/conftest_8.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_8.c <-
| |
| |#include <stdio.h>
| |#include <jpeglib.h>
| |
| |int main (int argc,char *argv[])
| | {
| | struct jpeg_decompress_struct cinfo;
| |
| | jpeg_create_decompress(&cinfo);
| |
| | return(0);
| | }
| |
|
i586-mingw32msvc-gcc -o .sconf_temp/conftest_8.o -c -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H -DHAVE_ROUNDF -DGLEW_STATIC=1 -I/usr/i586-mingw32msvc/include .sconf_temp/conftest_8.c
.sconf_temp/conftest_8.c:3:21: error: jpeglib.h: Tiedostoa tai hakemistoa ei ole
.sconf_temp/conftest_8.c: In function ‘main’:
.sconf_temp/conftest_8.c:7: error: storage size of ‘cinfo’ isn’t known
scons: Configure: no
User avatar
tuxer
ADMIN
Posts: 511
Joined: 07.10.2007, 09:27

Re: Ongelmia MakeHumanin kääntämisestä (Linux)?

Post by tuxer »

Tuota patchia ei enää tarvita.

Minulla kääntyi ongelmitta. Latasin sourcet ja asensin riippuvuudet:
http://sourceforge.net/projects/ngplant ... ant/0.9.8/
ja sitten pelkkä scons. Kääntyi ja toimii.

Ubuntu 10.04
engineering-3d.info
Posts: 1
Joined: 18.12.2011, 16:25

Re: Ongelmia MakeHumanin kääntämisestä (Linux)?

Post by engineering-3d.info »

Ubuntu 11.10 NgPlant kääntäminen ei onnistu.

Ubuntu 10.04.3 NgPlant kääntäminen onnistuu.

10.04.3:ssa on hankalampaa kääntää uusimpaa blenderiä.

Molemmat asentaa rinnakkain niin saa kaikki toimimaan.
Post Reply