Permalink
Browse files

Fixed Linux build script. Produces a shared object now.

  • Loading branch information...
1 parent 7401767 commit 2c137a54b0aa1a4c6a6ec550546972105b744d90 @kench committed Jun 20, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 npapi_plugin/build-linux.sh
@@ -1,13 +1,13 @@
#!/bin/sh
echo "Assuming homebrew install of libusb and libfreenect"
-mkdir -p depthjs.plugin/Contents/MacOS
-cp -f Info.plist depthjs.plugin/Contents
-g++ -Wno-write-strings -lresolv \
+g++ -fPIC -shared -Wno-write-strings -lresolv \
-I/usr/local/include \
-I/usr/local/include/libusb-1.0 -I/usr/local/include/libfreenect \
`pkg-config --cflags libusb-1.0` \
`pkg-config --cflags opencv` \
`pkg-config --libs --static opencv` \
+ -L/usr/local/lib \
+ -lfreenect \
-lz \
-Wall \
-o depthjs \

0 comments on commit 2c137a5

Please sign in to comment.