Microtome / microtome

A browser based GPU accelerated 3D model slicer
Apache License 2.0
28 stars 5 forks source link

Unable to build microtome #12

Closed jmkao closed 8 years ago

jmkao commented 8 years ago

I'm trying to set up continuous build integration in travis-ci to build microtome, following the instructions in BUILDING.MD, but am running into a problem with the polymer dependency.

Following the recommendations in BUILDING.MD, I am running the following in my automated build:

nvm install stable
nvm alias default stable
export PATH=`npm bin`:$PATH
npm install
npm install typings
typings install
bower install

bash -i doesn't work in the travis-ci environment, so I just extracted the PATH setting part of setup_env.sh.

The full output of the build sequence is at: https://travis-ci.org/jmkao/microtome/builds/150347824

The key problem is bower is unable to determine which version of polymer to download. When building this locally on my machine, I ran into this problem as well, and it prompted me to manually pick a version (with 10 options), but I can't figure out which version is the correct one to pick, or how to resolve the ambiguity in the dependence tree.

jmkao commented 8 years ago

The bower polymer issues seem to be fixed already in the integ-adv-slicer branch.

The build now proceeds to the gulp step, failing with:

0.91s$ gulp default
(node:4697) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
module.js:442
    throw err;
    ^
Error: Cannot find module 'web-component-tester'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/travis/build/jmkao/microtome/gulpfile.js:365:1)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
The command "gulp default" exited with 1.

https://travis-ci.org/jmkao/microtome/builds/151074836

DanielJoyce commented 8 years ago

Thank you for this work. I need to pull out web component tester and rewrite the build file. Gulp is an overcomplicated mess.

On Tue, Aug 9, 2016, 17:08 James Kao notifications@github.com wrote:

The bower polymer issues seem to be fixed already in the integ-adv-slicer.

The build now proceeds to the gulp step, failing with:

0.91s$ gulp default (node:4697) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. module.js:442 throw err; ^ Error: Cannot find module 'web-component-tester' at Function.Module._resolveFilename (module.js:440:15) at Function.Module._load (module.js:388:25) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object. (/home/travis/build/jmkao/microtome/gulpfile.js:365:1) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) The command "gulp default" exited with 1.

https://travis-ci.org/jmkao/microtome/builds/151074836

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/DanielJoyce/microtome/issues/12#issuecomment-238730185, or mute the thread https://github.com/notifications/unsubscribe-auth/AA50liXyLRSlbOC30h-qYZaPyj8jJbqpks5qeRZmgaJpZM4JeZMH .

Daniel Joyce

The meek shall inherit the Earth, for the brave will be among the stars.

DanielJoyce commented 8 years ago

Got it working on travis with integ-adv-slicer branch. Closing this issue now. Will merge back to master l8r

DanielJoyce commented 8 years ago

Vulcanize still builds broken artifact, need to fix that next. But if you want to play with it,

gulp serve

should work locally.