Trying to build MH on Win 7, scons error

MakeHuman python API, python plugins, etc

Moderator: joepal

Trying to build MH on Win 7, scons error

Postby Rhynedahll » Tue Sep 04, 2012 8:01 pm

I've got something out of whack. I get this error:

Code: Select all
scons:  Reading Sconscript files ...
Checking for C libary m...no
Checking for Py_Initialize() in C library python27...no
The Python27 development libraries must be installed


Are the development libraries bundled with the regular Python 2.7 windows download?

If not, any idea where to get them?

If so, where are they installed and must I set the path variable to point to them explicitly?

What else might I be doing wrong?
Orphan, an epic fantasy by H. Jonas Rhynedahll
The Key to Magic: Book One
Available on Kindle at Amazon: The Key to Magic
Rhynedahll
 
Posts: 195
Joined: Sat Nov 28, 2009 1:23 pm

Re: Trying to build MH on Win 7, scons error

Postby mflerackers » Wed Sep 05, 2012 12:56 am

We bundle only a few files, not an entire python distribution, and surely not the development files. You get them from http://python.org/download/

For more detailed errors you can always look in config.log
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: Trying to build MH on Win 7, scons error

Postby joepal » Wed Sep 05, 2012 6:53 am

Also, there are a few pointers about windows building here http://www.makehuman.org/node/193

I don't remember downloading anything specific for development headers. Maybe you're missing an environment variable?
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Re: Trying to build MH on Win 7, scons error

Postby Rhynedahll » Wed Sep 05, 2012 7:05 pm

mflerackers wrote:We bundle only a few files, not an entire python distribution, and surely not the development files. You get them from http://python.org/download/

For more detailed errors you can always look in config.log


I know about that link. I have looked there but have not found any specific development download.

My config.log:
Code: Select all
ile F:\Makehuman SVN\SConstruct,line 13:
   Configure(confdir = .sconf_temp)
scons: Configure: Checking for C library m...
.sconf_temp\conftest_0.c <-
  |
  |
  |
  |int
  |main() {
  | 
  |return 0;
  |}
  |
cl /Fo.sconf_temp\conftest_0.obj /c .sconf_temp\conftest_0.c -O2 /Iinclude /IC:\Python27\include /IF:\sdl\include /IF:\glew\include /IC:\sdl\include /IC:\glew\include
'cl' is not recognized as an internal or external command,
operable program or batch file.
scons: Configure: no

scons: Configure: Checking for Py_Initialize() in C library python27...
.sconf_temp\conftest_1.c <-
  |
  |
  |
  |#ifdef __cplusplus
  |extern "C"
  |#endif
  |char Py_Initialize();
  |
  |int
  |main() {
  |  Py_Initialize();
  |return 0;
  |}
  |
cl /Fo.sconf_temp\conftest_1.obj /c .sconf_temp\conftest_1.c -O2 /Iinclude /IC:\Python27\include /IF:\sdl\include /IF:\glew\include /IC:\sdl\include /IC:\glew\include
'cl' is not recognized as an internal or external command,
operable program or batch file.
scons: Configure: no


joepal wrote:Also, there are a few pointers about windows building here http://www.makehuman.org/node/193

I don't remember downloading anything specific for development headers. Maybe you're missing an environment variable?


I'm following that guide.

If I had an idea which files scons is looking for, I could set the path so that they could be found. PyInitialize() is a function, I think, and if it's present in the regular Windows Python 2.7.3 download, then it's inside some file or other, as I cannot find it.

Python is like Russian to me, so I'm totally in the dark, but I think I should be able to compile MH as long as I can get everything in its proper place.
Orphan, an epic fantasy by H. Jonas Rhynedahll
The Key to Magic: Book One
Available on Kindle at Amazon: The Key to Magic
Rhynedahll
 
Posts: 195
Joined: Sat Nov 28, 2009 1:23 pm

Re: Trying to build MH on Win 7, scons error

Postby joepal » Wed Sep 05, 2012 9:14 pm

"cl.exe" is visual studio's compiler driver. Looks like something is wrong with your visual studio installation or you didn't run "vcvars32".

If you installed visual studio in some non-standard location you might need to manually add something to the PATH variable in windows.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Re: Trying to build MH on Win 7, scons error

Postby Rhynedahll » Thu Sep 06, 2012 5:02 pm

Thanks for the help, everyone.

I've corrected most of my problems by reinstalling everything.

However, I now hang up on glew.
Code: Select all
scons: Configure: Checking for C library GLEW...
.sconf_temp\conftest_5.c <-
  |
  |
  |
  |int
  |main() {
  | 
  |return 0;
  |}
  |
cl /Fo.sconf_temp\conftest_5.obj /c .sconf_temp\conftest_5.c -O2 /Iinclude /IC:\Python27\include /ID:\sdl\include /ID:\glew\include /IC:\sdl\include /IC:\glew\include
conftest_5.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

link /nologo /OUT:.sconf_temp\conftest_5.exe /LIBPATH:C:\Python27\libs /LIBPATH:D:\sdl\lib /LIBPATH:D:\glew\lib /LIBPATH:C:\sdl\lib /LIBPATH:C:\glew\lib python27.lib SDL.lib SDLmain.lib GLEW.lib .sconf_temp\conftest_5.obj
LINK : fatal error LNK1181: cannot open input file 'GLEW.lib'
scons: Configure: no

scons: Configure: Checking for glewInit() in C library glew32...
.sconf_temp\conftest_6.c <-
  |
  |
  |
  |#ifdef __cplusplus
  |extern "C"
  |#endif
  |char glewInit();
  |
  |int
  |main() {
  |  glewInit();
  |return 0;
  |}
  |
cl /Fo.sconf_temp\conftest_6.obj /c .sconf_temp\conftest_6.c -O2 /Iinclude /IC:\Python27\include /ID:\sdl\include /ID:\glew\include /IC:\sdl\include /IC:\glew\include
conftest_6.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

link /nologo /OUT:.sconf_temp\conftest_6.exe /LIBPATH:C:\Python27\libs /LIBPATH:D:\sdl\lib /LIBPATH:D:\glew\lib /LIBPATH:C:\sdl\lib /LIBPATH:C:\glew\lib python27.lib SDL.lib SDLmain.lib glew32.lib .sconf_temp\conftest_6.obj
conftest_6.obj : error LNK2019: unresolved external symbol _glewInit referenced in function _main
.sconf_temp\conftest_6.exe : fatal error LNK1120: 1 unresolved externals
scons: Configure: no

I have glew32.lib in C:\glew\lib which is where I think scons is looking. Is this incorrect?
Orphan, an epic fantasy by H. Jonas Rhynedahll
The Key to Magic: Book One
Available on Kindle at Amazon: The Key to Magic
Rhynedahll
 
Posts: 195
Joined: Sat Nov 28, 2009 1:23 pm

Re: Trying to build MH on Win 7, scons error

Postby mflerackers » Thu Sep 06, 2012 11:23 pm

/LIBPATH:D:\glew\lib, so it looks on the D drive.
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: Trying to build MH on Win 7, scons error

Postby Rhynedahll » Mon Sep 17, 2012 4:15 pm

mflerackers wrote:/LIBPATH:D:\glew\lib, so it looks on the D drive.


It also has /LIBPATH:C:\glew\lib, which is where I put the windows 32 glew binaries from the download link.

My D: drive is a dvd-rom.

I even copied the files from \glew\lib to other folders where scons is looking. It just wont recognize the glew that I have.
Orphan, an epic fantasy by H. Jonas Rhynedahll
The Key to Magic: Book One
Available on Kindle at Amazon: The Key to Magic
Rhynedahll
 
Posts: 195
Joined: Sat Nov 28, 2009 1:23 pm

Re: Trying to build MH on Win 7, scons error

Postby mflerackers » Tue Sep 18, 2012 7:47 am

You have to edit the scons file to match your drive layout.
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: Trying to build MH on Win 7, scons error

Postby Rhynedahll » Tue Sep 18, 2012 11:24 am

mflerackers wrote:You have to edit the scons file to match your drive layout.


Thanks, but that's not the problem. As I said, the sconstruct has both the C and D drive references.
Just to make certain, I edited all the d references to c, but there was no change.

At this point, I'm fairly sure that the problem has to do with scons or Express 2010 not accepting the path assignment for whatever reason.
Orphan, an epic fantasy by H. Jonas Rhynedahll
The Key to Magic: Book One
Available on Kindle at Amazon: The Key to Magic
Rhynedahll
 
Posts: 195
Joined: Sat Nov 28, 2009 1:23 pm


Return to Python scripts

Who is online

Users browsing this forum: No registered users and 1 guest