Skip to content

Added support for compiling on linux - #3

Merged
codeboost merged 3 commits into
codeboost:masterfrom
bitbay:master
Oct 19, 2012
Merged

codeboost merged 3 commits into
codeboost:masterfrom
bitbay:master

Conversation

@bitbay

@bitbay bitbay commented Oct 18, 2012

Copy link
Copy Markdown
Contributor

On heroku (linux) the build fails with an error: cannot use typeid with -fno-rtti
I disabled the 'per-default' option of node-gyp in the binding-gyp file, as commented in this issue.
I would love to see this mod in the npm repository, as vendoring the patched version myself gets really cumbersome...

Thank You!

@bitbay

bitbay commented Oct 19, 2012

Copy link
Copy Markdown
Contributor Author

Although the add-on compiles without any errors (with some warnings) thanks to the patch, but i can't run the example effects.coffee converted to javascript...see below:

module.js:485 process.dlopen(filename, module.exports); ^ phome/node_modules/opencv-node/build/Release/addon.node: undefined symbol: _ZN2cv8fastFreeEPv at Object.Module._extensions..node (module.js:485:11) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17) at require (module.js:378:17) at Object. (/phome/node_modules/opencv-node/scripts/opencv.coffee:4:14) at Object. (/phome/node_modules/opencv-node/scripts/opencv.coffee:18:4) at Module._compile (module.js:449:26) at Object.require.extensions..coffee (/phome/node_modules/coffee-script/lib/coffee-script/coffee-script.js:22:21) at Module.load (module.js:356:32)

Any idea where this symbol should be defined?
Is it opencv, python, something else?

@bitbay

bitbay commented Oct 19, 2012

Copy link
Copy Markdown
Contributor Author

note on the comment above:
the error was caused by the binding.gyp not being complete - the commit 5558793 compiled, but did not do proper linking.

Linux build configuration should be now complete with linker and compiler flags getting values from pkg-config.
Running tests.coffee results in:


mul
PASSED: Exception thrown for 'mul(undefined)
PASSED: Exception thrown for 'mul({one: 1})
PASSED: Exception thrown for 'mul(invalid size matrix)
PASSED: Multiplied must have same w/h/t
...
*** Finished ***
{ failed: 0, passed: 56, total: 56 }


Commit (hopefully) ready to pull...

codeboost pushed a commit that referenced this pull request Oct 19, 2012
Added support for compiling on linux
@codeboost
codeboost merged commit 5e4247a into codeboost:master Oct 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants