Hi OSG Gents,

 

I am new to OSG, although I am familiar with scene graphs having worked with Performer for the last 15 or so years.

 

I recently downloaded OSG 1.1 and I have been compiling it with VS 2005 (VS ver 8.0 I think) and running the examples and so far all of them have worked very nicely. However I am new to windows programming (previously a Unix/Irix/Linux programmer) and still finding my way around the basics.

 

After great success with building the examples I have tried to copy one of them from my build machine to another Windows XP machine. This is what I have done:

 

  1. Copy all the OSG, Producer, OpenThread and 3rd Party DLL’s into a new directory
  2. Copy osgsimple.exe into the same directory.
  3. Copy the entire directory to the target XP machine.
  4. Run osgsimple with cow.osg.
  5. The application fails to run with the (information rich) error message: ‘The system cannot execute the specified program’.

 

However, if I run the same application, in the same directory from the same DOS prompt on my development machine in runs fine.

 

Are there any other DLL’s that I should include as part of the distribution that I copy to the target machine?

Is there anything else in VS that I should be doing (i.e. setting specific flags etc)?

 

Mainly as a learning exercise, I wrote the standard ‘Hello World’ program and tried to move that to the target machine as well. Initially it would not run as well with the same error message. I then modified the following flag in VS2005 (project -> properties -> C/C++ -> Code Generation -> Runtime Library = Multi-threaded (/MT)) from its original value of Multi-threaded DLL (/MD) and it worked fine on the target machine. Flush with this success, I tried the same procedure on osgsimple and got the following link error:

 

osgsimple.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::flush(void)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@std@@@std@@[EMAIL PROTECTED]) referenced in function "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::endl(class std::basic_ostream<char,struct std::char_traits<char> > &)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@@[EMAIL PROTECTED]@@Z)

 

Any ideas on how to resolve this error message?

 

Regards,

Andy.

 


________________________________________________________________________
This e-mail has been scanned for all viruses by Star.The service is powered by MessageLabs.
________________________________________________________________________
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to