Tuhopuu Blender Win compilation

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

McGivrer
Posts: 10
Joined: Thu Dec 05, 2002 8:53 am
Location: FRANCE
Contact:

Tuhopuu Blender Win compilation

Postby McGivrer » Sun Jan 26, 2003 1:52 am

Why can't i open .dsw and .dsp files for this release (with VC++6.0) ???
It tell me that it's not Developer Studio generated files ?????
Image
Thanks for help !


Fred.

Hos
Posts: 215
Joined: Wed Oct 16, 2002 12:06 am

Postby Hos » Sun Jan 26, 2003 2:15 am

Mini instructions:

* make sure MSVC6 has the latest service pack

* checkout tuhopuu

* get the quicktime developer stuff,
and put it so that the folder
"QT6 SDK (Win)" is in the
same directory as the tuhopuu
blender directory

* checkout bf-blender

* steal the blender/lib directory from bf-blender
and put it in the tuhopuu blender directory
(make sure this directory is clean -- i.e., you
didn't try building bf-blender with it first).

* open blender/intern/make/msvc_6_0/intern.dsw

* go to the menu "Build->Set Active Configuration"
and set that to "build_install_all - Win32 Release"

* press the build button and watch it go

* open blender/projectfiles/creator/blendercreator.dsw

* go to the menu "Build->Set Active Configuration"
and set that to "blenderpublisher - Win32 Release"

* press the build button and watch it go

You'll then find a blenderpublisher.exe in
blender/obj/windows ... it will run provided
that blender can find an fmod.dll
(use the one that came with the old blender
2.25 binary release).

Chris

metaphorz
Posts: 30
Joined: Sun Nov 10, 2002 3:20 am

python.exe issue during build

Postby metaphorz » Wed Feb 19, 2003 4:44 pm

I am using your instructions for compiling blender
and when I do the build_install_all win 32 release, it
starts to build put then at the very end, I get an error
that it cannot find Python. I am using python 2.2.2
and have verified that python.exe is on the path,
since I can execute it in any CMD (DOS window).

Deleting intermediate files and output files for project 'container - Win32 Release'.
Deleting intermediate files and output files for project 'memutil - Win32 Release'.
Deleting intermediate files and output files for project 'MoTo - Win32 Release'.
Deleting intermediate files and output files for project 'bsplib - Win32 Release'.
Deleting intermediate files and output files for project 'decimation - Win32 Release'.
Deleting intermediate files and output files for project 'string - Win32 Release'.
Deleting intermediate files and output files for project 'ghost - Win32 Release'.
Deleting intermediate files and output files for project 'guardedalloc - Win32 Release'.
Deleting intermediate files and output files for project 'iksolver - Win32 Release'.
Deleting intermediate files and output files for project 'bmfont - Win32 Release'.
Deleting intermediate files and output files for project 'blenkey - Win32 Release'.
Deleting intermediate files and output files for project 'python_freeze - Win32 Release'.
Deleting intermediate files and output files for project 'build_install_all - Win32 Release'.
--------------------Configuration: container - Win32 Release--------------------
Compiling...
CTR_List.cpp
Creating library...
Copying header files
..\..\CTR_List.h
..\..\CTR_Map.h
..\..\CTR_TaggedIndex.h
..\..\CTR_TaggedSetOps.h
..\..\CTR_UHeap.h
5 File(s) copied
Copying lib
..\..\..\..\obj\windows\intern\container\libcontainer.lib
1 File(s) copied
Done
--------------------Configuration: memutil - Win32 Release--------------------
Compiling...
MEM_RefCountedC-Api.cpp
Creating library...
Copying header files
..\..\MEM_NonCopyable.h
..\..\MEM_RefCounted.h
..\..\MEM_RefCountedC-Api.h
..\..\MEM_RefCountPtr.h
..\..\MEM_SmartPtr.h
5 File(s) copied
Copying lib
..\..\..\..\obj\windows\intern\memutil\memutil.lib
1 File(s) copied
Done
--------------------Configuration: MoTo - Win32 Release--------------------
Compiling...
MT_CmMatrix4x4.cpp
MT_Matrix3x3.cpp
MT_Matrix4x4.cpp
MT_Point3.cpp
MT_Quaternion.cpp
MT_random.cpp
MT_Transform.cpp
MT_Vector2.cpp
MT_Vector3.cpp
MT_Vector4.cpp
Generating Code...
Compiling...
MT_Plane3.cpp
Creating library...
Copying header files
..\..\include\GEN_List.h
..\..\include\GEN_Map.h
..\..\include\MT_assert.h
..\..\include\MT_CmMatrix4x4.h
..\..\include\MT_Matrix3x3.h
..\..\include\MT_Matrix4x4.h
..\..\include\MT_MinMax.h
..\..\include\MT_Optimize.h
..\..\include\MT_Plane3.h
..\..\include\MT_Point2.h
..\..\include\MT_Point3.h
..\..\include\MT_Quaternion.h
..\..\include\MT_random.h
..\..\include\MT_Scalar.h
..\..\include\MT_Stream.h
..\..\include\MT_Transform.h
..\..\include\MT_Tuple2.h
..\..\include\MT_Tuple3.h
..\..\include\MT_Tuple4.h
..\..\include\MT_Vector2.h
..\..\include\MT_Vector3.h
..\..\include\MT_Vector4.h
..\..\include\NM_Scalar.h
23 File(s) copied
Copying lib
..\..\..\..\obj\windows\intern\moto\libmoto.lib
1 File(s) copied
Done
--------------------Configuration: bsplib - Win32 Release--------------------
Compiling...
BSP_CSGHelper.cpp
BSP_CSGMesh.cpp
BSP_CSGMeshBuilder.cpp
BSP_CSGMeshSplitter.cpp
BSP_CSGNCMeshSplitter.cpp
BSP_CSGUserData.cpp
BSP_FragNode.cpp
BSP_FragTree.cpp
BSP_MeshFragment.cpp
BSP_MeshPrimitives.cpp
BSP_Triangulate.cpp
CSG_BooleanOps.cpp
Creating library...
Copying header files
..\..\extern\CSG_BooleanOps.h
1 File(s) copied
Copying lib
..\..\..\..\obj\windows\intern\bsp\libbsp.lib
1 File(s) copied
Done
--------------------Configuration: decimation - Win32 Release--------------------
Compiling...
LOD_decimation.cpp
LOD_EdgeCollapser.cpp
LOD_ExternNormalEditor.cpp
LOD_FaceNormalEditor.cpp
LOD_ManMesh2.cpp
LOD_MeshPrimitives.cpp
LOD_QSDecimator.cpp
LOD_QuadricEditor.cpp
Generating Code...
Creating library...
Copying header files
..\..\extern\LOD_decimation.h
1 File(s) copied
Copying lib
..\..\..\..\obj\windows\intern\decimation\libdecimation.lib
1 File(s) copied
Done
--------------------Configuration: string - Win32 Release--------------------
Compiling...
STR_String.cpp
Creating library...
Copying header files
..\..\STR_HashedString.h
..\..\STR_String.h
2 File(s) copied
Copying lib
..\..\..\..\obj\windows\intern\string\libstring.lib
1 File(s) copied
Done
--------------------Configuration: ghost - Win32 Release--------------------
Compiling...
GHOST_Buttons.cpp
GHOST_C-api.cpp
GHOST_CallbackEventConsumer.cpp
GHOST_DisplayManager.cpp
GHOST_DisplayManagerWin32.cpp
GHOST_EventManager.cpp
GHOST_EventPrinter.cpp
GHOST_ISystem.cpp
GHOST_ModifierKeys.cpp
GHOST_Rect.cpp
GHOST_System.cpp
GHOST_SystemWin32.cpp
GHOST_TimerManager.cpp
GHOST_Window.cpp
GHOST_WindowManager.cpp
GHOST_WindowWin32.cpp
Creating library...
Copying GHOST files library (release target) to lib tree.
Copying header files
..\..\GHOST_C-api.h
..\..\GHOST_IEvent.h
..\..\GHOST_IEventConsumer.h
..\..\GHOST_ISystem.h
..\..\GHOST_ITimerTask.h
..\..\GHOST_IWindow.h
..\..\GHOST_Rect.h
..\..\GHOST_Types.h
8 File(s) copied
Copying lib
..\..\..\..\obj\windows\intern\ghost\libghost.lib
1 File(s) copied
Done
--------------------Configuration: guardedalloc - Win32 Release--------------------
Compiling...
mallocn.c
Creating library...
Copying header files
..\..\MEM_guardedalloc.h
1 File(s) copied
Copying lib
..\..\..\..\obj\windows\intern\guardedalloc\libguardedalloc.lib
1 File(s) copied
Done
--------------------Configuration: iksolver - Win32 Release--------------------
Compiling...
IK_QChain.cpp
IK_QJacobianSolver.cpp
IK_QSegment.cpp
IK_Solver.cpp
MT_ExpMap.cpp
Generating Code...
Creating library...
Copying header files
..\..\extern\IK_solver.h
1 File(s) copied
Copying lib
..\..\..\..\obj\windows\intern\iksolver\libiksolver.lib
1 File(s) copied
Done
--------------------Configuration: bmfont - Win32 Release--------------------
Compiling...
BMF_Api.cpp
BMF_BitmapFont.cpp
BMF_font_helv10.cpp
BMF_font_helv12.cpp
BMF_font_helvb10.cpp
BMF_font_helvb12.cpp
BMF_font_helvb14.cpp
BMF_font_helvb8.cpp
BMF_font_scr12.cpp
BMF_font_scr14.cpp
BMF_font_scr15.cpp
Creating library...
Copying BMFONT files library (release target) to lib tree.
Copying header files
..\..\BMF_Api.h
..\..\BMF_Fonts.h
..\..\BMF_Settings.h
3 File(s) copied
Copying lib
..\..\..\..\obj\windows\intern\bmfont\libbmfont.lib
1 File(s) copied
Done
--------------------Configuration: blenkey - Win32 Release--------------------
Compiling...
key.c
keyloader.c
mt19937int.c
Creating library...
Copying header files
..\..\blenkey.h
1 File(s) copied
Copying lib
..\..\..\..\obj\windows\intern\blenkey\libblenkey.lib
1 File(s) copied
Done
--------------------Configuration: python_freeze - Win32 Release--------------------
Compiling...
dummy.cpp
Linking...
Freezing Blender Python
'python.exe' is not recognized as an internal or external command,
operable program or batch file.
Error executing c:\windows\system32\cmd.exe.

build_install_all - 1 error(s), 0 warning(s)

Hos
Posts: 215
Joined: Wed Oct 16, 2002 12:06 am

Postby Hos » Wed Feb 19, 2003 5:34 pm

You need to go to the MSVC options where
you set up the directories MSVC uses. There is
one setting for where MSVC looks for executables.
Add the directory where your python executable
resides to that list of directories.

Chris

metaphorz
Posts: 30
Joined: Sun Nov 10, 2002 3:20 am

Thanks - Almost there

Postby metaphorz » Wed Feb 19, 2003 5:59 pm

I found it under Options->Directories->Executables
and then included the python directory.
I tried first using python22, but then this caused some
errors, so I went back to python20 where I have Python 2.0.1
installed. Here is what I get. It now finds the python.exe file
under in c:\python20 correctly, and I reset all environment
variables to point here. Does this "config" error ring a bell?
Is it trying to recompile Python itself?


Linking...
Freezing Blender Python
Error: needed directory c:\python20\lib\python2.0\config not found
Use ``freeze.py -h'' for help
Error executing c:\windows\system32\cmd.exe.

build_install_all - 1 error(s), 0

Hos
Posts: 215
Joined: Wed Oct 16, 2002 12:06 am

Postby Hos » Wed Feb 19, 2003 7:26 pm

I downloaded and built the python
source (2.2.2). I think doing that might
make it work .Please read the
directions in the python source,
and don't forget to point the
MSVC executable path to the
new python executable.

Chris

theeth
Posts: 1184
Joined: Wed Oct 16, 2002 5:47 am
Location: Montreal
Contact:

Postby theeth » Wed Feb 19, 2003 10:28 pm

when installing Python from the exe, it forgets to instal some folders when they are not needed. Just create the folders that MSVC complains about, it will work correctly after that (even if the said folders are empty).

Martin
Life is what happens to you when you're busy making other plans.
- John Lennon

metaphorz
Posts: 30
Joined: Sun Nov 10, 2002 3:20 am

Followup to this Problem

Postby metaphorz » Wed Feb 19, 2003 11:40 pm

I did what you suggested-made those previously
nonexistent directories within the
c:\python22 area. I did not put anything in the
directories--just created them. The build then went through
with 0 errors and 2 warnings.

Then, I tried to build blender using the
blender.dsw that was presumably just
constructed under
blender\projectfiles\blender, since I
didn't see a .dsw file under creator or
blenderpublisher directories.

now, I get the following errors. Any ideas? Have I missed
a step?

--------------------Configuration: BPY_frozen - Win32 Release--------------------
Build : warning : failed to (or don't know how to) build 'C:\cvs\blender\source\blender\bpython\frozen\M_vrml__utils__typeclasses.c'
Compiling...
frozen.c
frozen_extensions.c
M___future__.c
M_copy.c
M_copy_reg.c
M_gzip.c
M_mcf.c
fatal error C1083: Cannot open source file: 'C:\cvs\blender\source\blender\bpython\frozen\M_mcf.c': No such file or directory
M_mcf__utils.c
fatal error C1083: Cannot open source file: 'C:\cvs\blender\source\blender\bpython\frozen\M_mcf__utils.c': No such file or directory
M_mcf__utils__hier_rx.c
fatal error C1083: Cannot open source file: 'C:\cvs\blender\source\blender\bpython\frozen\M_mcf__utils__hier_rx.c': No such file or directory
M_mcf__utils__hierobj.c
fatal error C1083: Cannot open source file: 'C:\cvs\blender\source\blender\bpython\frozen\M_mcf__utils__hierobj.c': No such file or directory
M_mcf__utils__singletonlist.c
fatal error C1083: Cannot open source file: 'C:\cvs\blender\source\blender\bpython\frozen\M_mcf__utils__singletonlist.c': No such file or directory
M_pprint.c
fatal error C1083: Cannot open source file: 'C:\cvs\blender\source\blender\bpython\frozen\M_pprint.c': No such file or directory
M_repr.c
M_string.c
M_StringIO.c
fatal error C1083: Cannot open source file: 'C:\cvs\blender\source\blender\bpython\frozen\M_StringIO.c': No such file or directory
M_types.c
M_vrml__utils.c
fatal error C1083: Cannot open source file: 'C:\cvs\blender\source\blender\bpython\frozen\M_vrml__utils.c': No such file or directory
M_vrml__utils__collapse.c
fatal error C1083: Cannot open source file: 'C:\cvs\blender\source\blender\bpython\frozen\M_vrml__utils__collapse.c': No such file or directory
M_vrml__utils__err.c
fatal error C1083: Cannot open source file: 'C:\cvs\blender\source\blender\bpython\frozen\M_vrml__utils__err.c': No such file or directory
M_vrml__utils__namespace.c
fatal error C1083: Cannot open source file: 'C:\cvs\blender\source\blender\bpython\frozen\M_vrml__utils__namespace.c': No such file or directory
M_vrml__utils__typeclasses.c
fatal error C1083: Cannot open source file: 'C:\cvs\blender\source\blender\bpython\frozen\M_vrml__utils__typeclasses.c': No such file or directory
Error executing cl.exe.

blender-2.26.exe - 12 error(s), 1 warning(s)

Hos
Posts: 215
Joined: Wed Oct 16, 2002 12:06 am

Postby Hos » Thu Feb 20, 2003 5:04 pm

I've had this prob with the bf-blender tree,
but not the tuhopuu tree. The work around
is to select the BPY_frozen project and in the
file view select the files it is complaining about
and press delete to remove them from the
project.

Incidentally, this error does not occur when
building bf-blender using Makefiles under
cygwin to control MSVC compilation.
(I hope to set a similar bulid scheme for
tuhopuu sometime real soon).

Regards,
Chris

metaphorz
Posts: 30
Joined: Sun Nov 10, 2002 3:20 am

Thanks - see new post

Postby metaphorz » Thu Feb 20, 2003 5:15 pm

Good point. Rick Kimball told the same thing to me.
Got everything to compile and link.

Anyway, I gathered together all of the (weak) knowledge
that I have, and as explicitly as possible made a document
that details how the make process works from beginning
to end. I posted it at:

http://www.cise.ufl.edu/~fishwick/blender/make.txt

I also made a post on the "Port" forum area.

thorax
Posts: 320
Joined: Sun Oct 27, 2002 6:45 am
Contact:

Isn't a little pathetic

Postby thorax » Sat Feb 22, 2003 10:54 am

that one has to get a Microsoft package to
compile a open source program?

Why can't one compile Blender with GCC?

Or is there some special files blender is linked to
that requires use of Visual C++ 6?

Eric
Posts: 192
Joined: Wed Oct 16, 2002 1:01 pm
Location: Sweden, Norrköping

Re: Isn't a little pathetic

Postby Eric » Sat Feb 22, 2003 12:59 pm

thorax wrote:that one has to get a Microsoft package to
compile a open source program?

Why can't one compile Blender with GCC?

Or is there some special files blender is linked to
that requires use of Visual C++ 6?

If you are refering to compiling a program for (and in) the windows plattform you most likely will need several Microsoft packages. :)


Return to “Coding Blender”

Who is online

Users browsing this forum: No registered users and 2 guests