Rantanen / node-peerconnection

PeerConnection implementation for Node.js
MIT License
47 stars 8 forks source link

node-peerconnection does not work against the latest source for libjingle #1

Open fdalvi opened 11 years ago

fdalvi commented 11 years ago

There are several hurdles when trying to use the latest source for libjingle and following the instructions in the README.

Rantanen commented 11 years ago

Figures...not the first time! Thanks for the fixes. I'll try to take a look at this later but below some comments.

I guess there would be a better way to fix the undefined symbols, but the procedure I've used is:

  1. Try running the example app
  2. Check which undefined symbol it crashes to
  3. Try to find the symbol from the source files (In this case, I'd grep the sources for Convolve_SSEEPK
  4. Figure which lib that source belongs to by the path to the source file.
  5. Check the library with nm. (nm common_audio_sse2.sinc_resampler_sse.o in this case)
  6. Once you find the library which includes the symbol as shown by nm, include that in the bindings.gyp
  7. Recompile and try again.

You could skip 4. by looking in the build files to see which file gets compiled where, but usually it's faster to just guess the path since most of the time it's pretty clear.

The libraries need to be included in bindings.gyp in such a way that library A depending on library B is before B in the list. Adding the libraries at the bottom of the list is always safe - but I've tried sorting them somehow based on their paths.

fdalvi commented 11 years ago

Thank you! I will try out these fixes soon and look deeper into the XOpenDisplay issue!

Rantanen commented 11 years ago

Good luck! I'll keep this one open until it's fixed in the repository.