Funkcionalnosć tutoho sydła so přez wothladowanske dźěła wobmjezuje, kotrež maja waše dožiwjenje polěpšić. Jeli nastawk waš problem njerozrisuje a chceće prašenje stajić, wobroćće so na naše zhromodźenstwo pomocy, kotrež na to čaka, wam na @FirefoxSupport na Twitter a /r/firefox na Reddit pomhać.

Pomoc přepytać

Hladajće so wobšudstwa pomocy. Njenamołwimy was ženje, telefonowe čisło zawołać, SMS pósłać abo wosobinske informacije přeradźić. Prošu zdźělće podhladnu aktiwitu z pomocu nastajenja „Znjewužiwanje zdźělić“.

Dalše informacije

How to link to spidermonkey?

  • 1 wotmołwa
  • 2 matej tutón problem
  • 23 napohladow
  • Poslednja wotmołwa wot Paul

more options

I would like to post [this question](http://stackoverflow.com/q/32328960/719276 ) on a mozilla forum, this is the best forum I found.

I successfully [compiled spidermonkey](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Build_Documentation) (on windows), how can I link against it now (to [embed it](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/How_to_embed_the_JavaScript_engine))?

[js-config](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Build_Documentation#Using_the_js-config_script) is not properly installed, and I don't understand [this workaround](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/1.8.5#js-config). Linking to the static library should be easier, but I don't even know which file it is. I have `mozglue.lib, mozjs-43a1.lib, nspr4.lib, plc4.lib, plds4.lib` in `dist/sdk/lib` and `nspr4.lib, plc4.lib, plds4.lib` in `dist/lib`.

      • Notes***
  • I used the following command to compile:*
   g++ -std=c++11 -I<objdir>/dist/include -L<objdir>/dist/lib helloworld.cpp -o helloworld  -lmozjs-31 -lz -lpthread -ldl 
  • I know it is not the correct way to compile it since those libraries are not in `<objdir>/dist/lib`. It returns the following errors:*
   [...]/jscpucfg.h:121:3: erreur:
   #error "Cannot determine endianness of your platform. Please add support to jscpucfg.h."
   [...]
   erreur: ‘JS_EvaluateScript’ was not declared in this scope
I would like to post [this question](http://stackoverflow.com/q/32328960/719276 ) on a mozilla forum, this is the best forum I found. I successfully [compiled spidermonkey](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Build_Documentation) (on windows), how can I link against it now (to [embed it](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/How_to_embed_the_JavaScript_engine))? [js-config](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Build_Documentation#Using_the_js-config_script) is not properly installed, and I don't understand [this workaround](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/1.8.5#js-config). Linking to the static library should be easier, but I don't even know which file it is. I have `mozglue.lib, mozjs-43a1.lib, nspr4.lib, plc4.lib, plds4.lib` in `dist/sdk/lib` and `nspr4.lib, plc4.lib, plds4.lib` in `dist/lib`. ***Notes*** *I used the following command to compile:* g++ -std=c++11 -I<objdir>/dist/include -L<objdir>/dist/lib helloworld.cpp -o helloworld -lmozjs-31 -lz -lpthread -ldl *I know it is not the correct way to compile it since those libraries are not in `<objdir>/dist/lib`. It returns the following errors:* [...]/jscpucfg.h:121:3: erreur: #error "Cannot determine endianness of your platform. Please add support to jscpucfg.h." [...] erreur: ‘JS_EvaluateScript’ was not declared in this scope

Wubrane rozrisanje

Hi

Your issue seems a bit more complicated and requires more investigation. We're currently looking into it and we'll get back to you with more details ASAP. Please understand that escalations can take up to 72 hours for a response, but no longer.

Tutu wotmołwu w konteksće čitać 👍 0

Wšě wotmołwy (1)

more options

Wubrane rozrisanje

Hi

Your issue seems a bit more complicated and requires more investigation. We're currently looking into it and we'll get back to you with more details ASAP. Please understand that escalations can take up to 72 hours for a response, but no longer.