[SOLVED] Error Compiling With IrrPhysX- JP Stay Cool

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
IrrNoob
Posts: 110
Joined: Sun Nov 16, 2008 8:01 pm
Location: Fort Collins, Us

[SOLVED] Error Compiling With IrrPhysX- JP Stay Cool

Post 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.
Last edited by IrrNoob on Thu Jan 15, 2009 11:16 pm, edited 1 time in total.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Re: Error Compiling With IrrPhysX

Post 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.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
IrrNoob
Posts: 110
Joined: Sun Nov 16, 2008 8:01 pm
Location: Fort Collins, Us

Post 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:
Dark_Kilauea
Posts: 368
Joined: Tue Aug 21, 2007 1:43 am
Location: The Middle of Nowhere

Post 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" ?
rogerborg wrote:Every time someone learns to use a debugger, an angel gets their wings.
IrrNoob
Posts: 110
Joined: Sun Nov 16, 2008 8:01 pm
Location: Fort Collins, Us

Post 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.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post 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...
Image Image Image
IrrNoob
Posts: 110
Joined: Sun Nov 16, 2008 8:01 pm
Location: Fort Collins, Us

Post by IrrNoob »

Yeah usually they do work on MSVC 2008, but I'll try it that way.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post 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.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post 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...
Image Image Image
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

You put a path into IrrPhysX?

Image

I think we have a winner!
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
IrrNoob
Posts: 110
Joined: Sun Nov 16, 2008 8:01 pm
Location: Fort Collins, Us

Post 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
Post Reply