POV-Ray : Newsgroups : povray.programming : Problems Compiling POV 3.01 with Visual C++ 5.0 : Re: Problems Compiling POV 3.01 with Visual C++ 5.0 Server Time
29 Jul 2024 06:15:11 EDT (-0400)
  Re: Problems Compiling POV 3.01 with Visual C++ 5.0  
From: Eric Fausett
Date: 30 Jul 1998 10:02:09
Message: <35C06F20.CF062383@u-aizu.ac.jp>
I've finally been able to Compile a Release version of Povray Using Visual
C++ 5.0.

Thank you for the pointers.  In the hope that this information can be of use
to others, here is a list of the problems I encountered and their solutions:

I downloaded and started from the Povray for Windows 3.01 Source code using
the VC++ Project file included.  (Note: Povray does not support this project
file, but they were kind enough to include it.)

#1
Upon starting the Release Build, the compile went fine until reaching the
file lighting.c.  Upon starting to compile this file, the compiler hangs.
It seems to be caught in an infinite loop (Preprocessor??) or something.
All other files compile successfully.

I found the solution to this problem in this discussion group.  It seems
that the problem is a result of another "Undocumented Feature" of VC++.
Once I downloaded and installed Service Pack 3 for Visual Studio this
problem was surmounted.

#2
After fixing the above problem, there were no further problems compiling.
Upon linking the following error was encountered:

PVTEXT.OBJ : error LNK2001: unresolved external symbol
__imp__CreateToolbarEx@52
bin/povray.exe : fatal error LNK1120: 1 unresolved externals

For some reason, the file comctl32.lib is not included in the linker
libraries and needs to be added.

#3
At this point I was able to build the executable file povray.exe, however
upon running it the following error occurred:

Critical Error
Error: Could not create editor window.

I feel like a real dolt on this one, but for some reason the output
executable has to be named pvengine.exe instead of povray.exe.  The project
file has the output defaulted to povray.exe.  Changing this solved all
problems.

One more note about the large fonts on the tabs of the editor.  This
information was provided by Vahur Krouverk in his reply to my question.  I
thought I'd post it again for completeness.

>>BTW, if You get it running and have big font on tabs, then add following
line
>>to beginning of function initialise_tabbed_window (in pvtext.c) to fix it:

>>  memset(&lf, 0, sizeof(LOGFONT));

This is my first time working with Visual Studio, so I'm learning as I go.
I'm also a novice at windows programming, so these mistakes may seem very
trivial, but I hope the info might help someone.

Now that I have a custom version going, I'll get to work on interfacing my
lab's implicit function parser with povray.  It will allow a user to create
very complex mathematical and CSG shapes easily.

Thanks again,

Eric Fausett
Shape Modeling Lab
University of Aizu  JAPAN
s10### [at] u-aizuacjp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.