Hello Ernie,
Given your two symptoms, which are:
I place both: $(OSG_LIB_PATH) and $(OSG_INCLUDE_PATH) into the necessary fields
when i am configuring my project, like it says in the above tutorial, but i get
errors when i include them [...]
and
When i try to run the program by pressing F5 i get the following error:
Code:
The program cant start because osg55-osgd.dll is missing from your computer.
Try reinstalling the program to fix this problem
it seems to me that your Visual Studio is not picking up the environment
variables you have set. You could check this by making a simple C
program that would use getenv() to check the value of each environment
variable you have set and print it out to the console, for example
(untested):
#include <stdio.h>
int main(void)
{
char* path = getenv("PATH");
if (path != NULL)
printf("PATH = %s\n", path);
char* osg_inc_path = getenv("OSG_INCLUDE_PATH");
if (osg_inc_path != NULL)
printf("OSG_INCLUDE_PATH = %s\n", osg_inc_path);
char* osg_lib_path = getenv("OSG_LIB_PATH");
if (osg_lib_path != NULL)
printf("OSG_LIB_PATH = %s\n", osg_lib_path);
}
First possibility : did you restart Visual Studio after modifying your
environment variables? If you change system environment variables, any
command prompt or Visual Studio instance you were running will still be
using the old values. So close and restart it.
If that's not it, there may be another thing. I can't recall exactly
(installing and setting up Visual Studio is something you don't
necessarily do every day), but I think there's a setting that tells VS
not to pick up system environment variables. Perhaps that setting is set
that way for you - I think the default is that VS will pick up all
system environment variables. I think there's also a /useenv switch you
can pass to VS on startup that will do this. Google it.
In any case, there's no reason you couldn't get this working with the
environment variables as the tutorial says. In particular, I use this
same kind of setup with both VS 2005 and 2008 on multiple machines and
it works well for me.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org