Intel sponsors gamedev.net search:   
[Control Panel] [Register] [Bookmarks] [Who's Online] [Active Topics] [Stats] [FAQ] [Search]

Add Forum to Favorites |  Send Topic To a Friend | View Forum FAQ | Track this topic


 Last Thread Next Thread 
 SpiderMonkey
Post New Topic  Post Reply 
Hi I am currently trying to use spidermonkey in my game engine however I am having problems using the generated .dll file. I compiled the SpiderMonkey engine using VS .Net 2003 and it build fine and output a .dll file along with the lib and exe. Whenever I try to build some example code that uses the engine, I get:

fatal error C1083: Cannot open include file: 'jsapi.h': No such file or directory


I placed the js32.dll in my System32 directory but it still doesnt work. Also, when I try to add the dll as a resource, I get an error from VS .Net saying it cannot add the resource. So then I thought maybe it was because the dll was not registered so I ran
Regsvr32 js32.dll, but that gives me an error saying it cannot find js32.dll DLLInstall entry point. How do I get it to work? I tried searching the forums but the searching mechanism is currently down.

Thanks

-Digga

 User Rating: 1019   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Why not just statically link with it?
Also, if you want a C like scripting language, you might want to try Small. Very easy to embed, and really nice. It even hasa JIT version, for Windows.

 User Rating: 1598   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

I am sorry I dont quite understand how I would do it statically? Are you reffering to not using a dll? or loading the dll from my program on runtime?

 User Rating: 1019   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Statically as in including the SpiderMonkey files in your project (not using a DLL).

 User Rating: 1598   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

The problem is the compiler can't find the 'jsapi.h' file so you have two options;

1) place the 'jsapi.h' in the vs.net 'include' folder
2) there might be a dialogue ('project options' maybe) that lets you specify external libraries/files.

 User Rating: 917   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

There are no header files generated from the compilation....building using the dev studio project that mozilla provides...and their instructions state that only the dll is necessary...

 User Rating: 1019   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Doesn't jsapi.h come with the zip file?

 User Rating: 1598   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

There should be an include file, a bin file, and a lib file. You need all three. Place the jsapi.h in your compilers include, the .libs should go in the Lib file and the .dll can go in either the system folder or place it in the same file as the executable.

I can't give anymore specific instructions than that because I don't own visual studio dot net :P

 User Rating: 917   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Thanks for being patient and helpful its much appreciated...finally got it to build after your suggestions...I didnt realize the header file came with it (stupid i know).

thanks again,

-digga

 User Rating: 1019   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Np, glad we could help.

 User Rating: 1598   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

All times are ET (US)

Post Reply
 Last Thread Next Thread 
Forum Rules:
You may not post new threads
You may post replies
You may not edit your posts
You may not use HTML in your posts
Jump To:
Administrative Options: