Page 1 of 1

[SOLVED] Error Compiling With IrrPhysX- JP Stay Cool

Posted: Tue Jan 13, 2009 1:13 am
by IrrNoob
I couldn't get SPE to work with Irrlicht, so I decided to try IrrPhysX the PhysX wrapper. But I get this error when trying to compile the MeshExample:

Code: Select all

error LNK1181: cannot open input file '../../../../irrlicht-1.4.2/lib/win32-visualstudio/irrlicht.lib'
Well, I added

Code: Select all

#pragma comment(lib, "Irrlicht.lib")
but I still get the error. I have set up my compiler to locate Irrlicht 1.4.2/lib/win32... and to located the proper PhysX directories, but it still won't compile. My compiler is MSVC 2008, if anyone can take a sec to let me know the issue.

Re: Error Compiling With IrrPhysX

Posted: Tue Jan 13, 2009 12:01 pm
by rogerborg
IrrNoob wrote:I have set up my compiler to locate Irrlicht 1.4.2/lib/win32
Your compiler thinks otherwise. I'd check those paths again.

Posted: Tue Jan 13, 2009 9:17 pm
by IrrNoob
I'm not saying you're wrong Rogerborg, But I have the linker set to

Code: Select all

C:\lib\irrlicht-1.4.2\irrlicht-1.4.2\lib\Win32-visualstudio
which is where the irrlicht lib is located, I've checked and rechecked. :cry:

Posted: Tue Jan 13, 2009 9:22 pm
by Dark_Kilauea
C:\lib\irrlicht-1.4.2\irrlicht-1.4.2\lib\Win32-visualstudio
Wait, you have two folders in a row called "irrlicht-1.4.2" ?

Posted: Tue Jan 13, 2009 10:01 pm
by IrrNoob
yeah, its the way I extracted the compressed Irrlicht sdk file, it shouldn't effect the compilation though. This happens on none of my projects and their setup the same way.

Posted: Wed Jan 14, 2009 8:20 am
by JP
Don't you have to tell it the actual lib in that path too? That's how i always do it... Not sure where those pragma comments work, it's either just GCC or just MSVC...

Posted: Wed Jan 14, 2009 8:39 am
by IrrNoob
Yeah usually they do work on MSVC 2008, but I'll try it that way.

Posted: Wed Jan 14, 2009 11:00 am
by rogerborg
IrrNoob wrote:I'm not saying you're wrong Rogerborg,
Well, I'm not saying you're wrong either. I'm quoting your compiler. :P

I'm puzzled as to where this path is coming from: "../../../../irrlicht-1.4.2/lib/win32-visualstudio/irrlicht.lib". Since you were getting that before you added the pragma, I'd guess that you've actually got that path in your project options, e.g. under:

Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies.

Posted: Wed Jan 14, 2009 11:39 am
by JP
The /../../blahblah thing looks like what i put into the project to link to where my irrlicht installation is... so maybe it's not been changed at all or been changed in the wrong place...

Posted: Wed Jan 14, 2009 11:59 am
by rogerborg
You put a path into IrrPhysX?

Image

I think we have a winner!

Posted: Thu Jan 15, 2009 11:11 pm
by IrrNoob
lol, well, he put the paths of the project's additional dependencies into the "additional dependencies" path, so yes he did. Usually that field is left blank, but I see why he did it, because the MeshExample sample uses three or four .lib dependencies. I fixed it and its compiling properly now, thanks everyone. :D