Compiler errors???

Elspin

08-10-2007 22:46:21

>Compiling...
1>NxOgreStable.cpp
1>c:\ogresdk\nxogre\nxogre\include\nxogrestable.h(94) : fatal error C1083: Cannot open include file: 'NxVersionNumber.h': No such file or directory
1>Project : warning PRJ0018 : The following environment variables were not found:
1>$(PHYSX_DIR)

What's with this? I haven't changed anything at all...

s0lidnuts

08-10-2007 22:57:26

You must include the PhysX Ageia header files. For me it's C:\Program Files\AGEIA Technologies\SDK\v2.7.2\SDKs.
I copied all header files from every subdirectory of the above dir to a folder on my project, then I included it from Visual Studio.

betajaen

08-10-2007 23:05:29

You need to setup the PHYSX_DIR environmental variable. Instructions are at the installation bit at NxOgre.org

Elspin

08-10-2007 23:43:01

You need to setup the PHYSX_DIR environmental variable. Instructions are at the installation bit at NxOgre.org


What about this though?

1>c:\ogresdk\nxogre\nxogre\include\nxogrestable.h(94) : fatal error C1083: Cannot open include file: 'NxVersionNumber.h': No such file or directory

Shouldn't "Nx" mean it's part of the files I need from NxOgre and not PhysX?

Elspin

08-10-2007 23:47:45

Oh, and I'm afraid I don't know how to create environment variables :( how would I set these up?


EDIT:Nevermind, google helped me out. I think it's working, no errors so far in compiling NxOgre.


Speak of the devil, for some reason it failed, I don't see why:

Compiling...
NxOgreError.cpp
NxOgreDebugRenderer.cpp
Generating Code...
Compiling manifest to resources...
Linking...
Creating library C:\OgreSDK\NxOgre\NxOgre\\lib\NxOgre_d.lib and object C:\OgreSDK\NxOgre\NxOgre\\lib\NxOgre_d.exp
Embedding manifest...
Performing Post-Build Event...
Copying DLL to CakeBox and Ogre Samples. Errors during copying process does not mean the library was built incorrectly.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
0 file(s) copied.
Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."


That's the end of the build log, it looks incredibly weird to me :o

betajaen

09-10-2007 00:06:56

Copying DLL to CakeBox and Ogre Samples. Errors during copying process does not mean the library was built incorrectly.

Elspin

09-10-2007 00:45:45

Yes, I see the problem is that it can't copy them. But why? I have no idea what cakebox is, but I sure as hell have ogre samples. If I need to tell it where the directories are, how do I? I was not told how to...

betajaen

09-10-2007 00:57:24

Cake is an application/tutorial/sandbox thing that is optional but it's obvious you didn't follow the installation instructions else you'd it copied to the Ogre Samples.

You can do it the easy way by: Ctrl+C and Ctrl+V.

Or the harder and better way by visiting NxOgre.org and clicking the Download link and actually read what it says.

Elspin

09-10-2007 01:01:51

Cake is an application/tutorial/sandbox thing that is optional but it's obvious you didn't follow the installation instructions else you'd it copied to the Ogre Samples.

You can do it the easy way by: Ctrl+C and Ctrl+V.

Or the harder and better way by visiting NxOgre.org and clicking the Download link and actually read what it says.



Calm down man, that's enough with the hostility! I don't see what you're talking about, this is all that's there for me under the download link and instructions for NxOgre


* Create a "NxOgre" folder, it should be in the parent of your Ogre or nearby
* Using Tortoise SVN or another Subversion client checkout the HEAD repositry
* Go to the parent directory of Ogre and the PhysX SDK i.e. (c:/dev/)
* New Folder, name as NxOgre, and go inside
* File, SVN, SVN Checkout
* Set the URL to http://latest.nxogre.org/nxogre3/
* Click okay
* Open up the project and compile.


and I have followed all those instructions...

betajaen

09-10-2007 01:07:34

You will need to create an environmental variable called "OGRE_HOME" pointing to the ogremain directory in your Ogre folder. Normally for SDK users this is automatically created by the installer, but it's work checking, if you installed Ogre from the source you'll need to create one.

Elspin

09-10-2007 01:10:01

And, as it suggested was likely, I do have that environment variable, so that's not the problem.

betajaen

09-10-2007 01:17:15

Most likely it's incorrect as it can't be copied.

Anyway the library is compiled. Copying it to the Ogre Samples/Cake dir is just a curtsey for you. Considering you don't have any applications that use NxOgre yet, there isn't much point.

Elspin

09-10-2007 01:20:58

It's definitely not wrong, as I've been able to compile and run all the ogre tutorials so far. More likely I put NxOgre in the wrong place. Anyways, thanks for the help.

s0lidnuts

09-10-2007 23:41:35

o_O
Here the PHYSX_DIR doesn't work either, I had to copy the include files =X

betajaen

09-10-2007 23:44:03

Oh come on guys. It's really easy; two environmental variables, an installer, and Ogre.

If it was any easier, I'd be coming around to your places and installing it for you whilst making you a cup of tea.

Elspin

10-10-2007 00:41:31

Oh come on guys. It's really easy; two environmental variables, an installer, and Ogre.

If it was any easier, I'd be coming around to your places and installing it for you whilst making you a cup of tea.


I know it seems easy to you, as I'm sure you're an experienced programmer, but think about what you're saying for a second. It's a 3D graphics engine with a wrapper for physics, most people my age (15)'s head would explode just thinking about that. :?

I know it's made easier with an installer and such, but there's about 3 million things that could go wrong at any step. (Mostly on your first attempt to compile an ogre script)

betajaen

10-10-2007 01:03:55

To be fair. It could be a lot harder; If Ageia didn't provide installers, Ogre required you to compile it's dependencies, and I decided to write NxOgre in C.

s0lidnuts

10-10-2007 02:56:47

Nah.. I'm not saying it's hard, in fact I think it was because the var was named PHYXS_DIR, and even renaming requires reboot, wich I didn't =)