tuhopuu2 and VC 2003 compile errors

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
emack
Posts: 0
Joined: Fri May 23, 2003 1:53 am

tuhopuu2 and VC 2003 compile errors

Post by emack »

I successfully downloaded the tuhopuu2 module from CVS. It's at the same level as the bf-blender module checkout so the libraries should work for either.

When I go through the same procedure as for bf-blender (set the compiler variables, cd to d:\blender\tuhopuu2, and type scons) it results in the following messages:

scons: Reading SConscript files . . .
Using config file: config.opts
scons: done reading SConscript files.
scons: Building targets ...
scons: *** Do not know how to make target 'blender'. Stop.
scons: building terminated because of errors.

I edited the config.opts file and set the gameengine build to 'false', but otherwise I haven't touched the CVS files. At the end of this thread,

http://www.blender.org/modules.php?op=m ... ns+tuhopuu

it looks like scons should be working for tuhopuu2. Has something changed?

I next tried the Visual C project files. Under tuhopuu2/projectfiles/blender, there are two files: blender.dsp and blender.dsw, both dated March 8 2004. I opened blender.dsw and confirmed the change to VC 2003 (the existing files are VC 6).

The BKE_blenkernel project is the top of the list and is highlighted. I told it to build and received a series of 35 of the following errors:

D:\blender\tuhopuu2\source\blender\blenkernel\intern\texture.c(48): fatal error C1083: Cannot open include file: 'MEM_guardedalloc.h': No such file or directory
D:\blender\tuhopuu2\source\blender\blenkernel\intern\world.c(38): fatal error C1083: Cannot open include file: 'MEM_guardedalloc.h': No such file or directory
D:\blender\tuhopuu2\source\blender\blenkernel\intern\writeavi.c(46): fatal error C1083: Cannot open include file: 'MEM_guardedalloc.h': No such file or directory
...

What is the current recommended method for building tuhopuu2 under Visual C++ 2003? VC project files would be great; it would allow me to use VC's debugging tools.

Thanks,

Eliot

alien-xmp
Posts: 0
Joined: Sun Apr 06, 2003 2:22 pm
Location: Wellington, New Zealand
Contact:

Post by alien-xmp »

Can you post the top 15 lines of your config.opts please?

emack
Posts: 0
Joined: Fri May 23, 2003 1:53 am

Post by emack »

Sure. Here are the first 30 or so.

# Configuration file containing user definable options.
VERSION = '2.32-cvs'
BUILD_BINARY = 'release'
USE_BUILDINFO = 'false'
BUILD_BLENDER_DYNAMIC = 'true'
BUILD_BLENDER_STATIC = 'false'
BUILD_BLENDER_PLAYER = 'false'
BUILD_BLENDER_PLUGIN = 'false'
BUILD_DIR = '..\\build\\win32\\'

# Extra compiler flags can be defined here.
DEFINES = []
CCFLAGS = []
CXXFLAGS = []
LDFLAGS = []
USE_INTERNATIONAL = 'true'
BUILD_GAMEENGINE = 'false'
USE_PHYSICS = 'solid'
USE_OPENAL = 'true'
USE_FMOD = 'false'
USE_QUICKTIME = 'true'

# Compiler information.
HOST_CC = 'cl'
HOST_CXX = '$CC'
TARGET_CC = 'cl'
TARGET_CXX = '$CC'
TARGET_AR = 'lib'

alien-xmp
Posts: 0
Joined: Sun Apr 06, 2003 2:22 pm
Location: Wellington, New Zealand
Contact:

Post by alien-xmp »

Try:
scons blender
scons blender.exe
scons ..\\build\\win32\\blender
scons ..\\build\\win32\\blender.exe

emack
Posts: 0
Joined: Fri May 23, 2003 1:53 am

Post by emack »

Excellent! The last one worked: scons ..\\build\\win32\\blender.exe

Thanks!

Eliot

Post Reply