AxisCommunications / locomote-video-player

Media Player in Adobe Flash with RTSP support. (THIS PROJECT IS NO LONGER MAINTAINED)
BSD 3-Clause "New" or "Revised" License
133 stars 79 forks source link

gulp build failed! #143

Closed xinlingyun2015 closed 4 years ago

xinlingyun2015 commented 9 years ago

this is the build result: [root@ip- locomote-video-player]# gulp & [1] 6714 [root@ip- locomote-video-player]# [09:32:50] Using gulpfile /home/russ/projects/locomote-video-player/gulpfile.js [09:32:50] Starting 'submodule'... [09:32:50] exec: git submodule init && git submodule update [09:32:50] Starting 'minify'... [09:32:50] Finished 'minify' after 154 ms [09:32:50] Finished 'submodule' after 182 ms [09:32:50] Starting 'build-as3corelib'... [09:32:50] exec: ant -f ext/as3corelib/build/build.xml [09:32:50] Error: JAVA_HOME is not defined correctly. We cannot execute java

[09:32:50] 'build-as3corelib' errored after 9.85 ms [09:32:50] Error: Command failed: at ChildProcess.exithandler (child_process.js:637:15) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:735:16) at Socket. (child_process.js:948:11) at Socket.EventEmitter.emit (events.js:95:17) at Pipe.close (net.js:466:12)

[1]+ Exit 1 gulp

and this is my env: PATH=/usr/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/java/jdk1.7.0_71/bin:/usr/java/jdk1.7.0_71/jre/bin:/usr/java/jdk1.7.0_71/bin:/home/russ/bin MAIL=/var/spool/mail/russ PWD=/home/russ/projects/locomote-video-player JAVA_HOME=/usr/java/jdk1.7.0_71 LANG=en_US.UTF-8 HISTCONTROL=ignoredups HOME=/root SHLVL=2 LOGNAME=russ SSH_CONNECTION=58.240.47.246 40013 172.31.10.17 1122 CLASSPATH=/usr/java/jdk1.7.0_71/jre/lib/ext:.:/usr/java/jdk1.7.0_71/jre/lib/rt.jar:/usr/java/jdk1.7.0_71/lib/dt.jar:/usr/java/jdk1.7.0_71/lib/tools.jar

the jdk is all right , I've tested it. can anybody please help find the reason?

noseglid commented 9 years ago

I take it you solved this issue? Mind sharing what your problem was?

xinlingyun2015 commented 9 years ago

Hi noseglid, Thanks for your response. Actually, the issue still exist, the build didnot succeed with gulp. Alternatively, I moved code directly to Windows, new create a ActionScript3 project with FlashDevelop, then move the adobecode in ext/as3corelib/src/com/ to src/com/. With this FlashDevelop, I succeeded building the player. The gulp build still fails, I still don't know the reason. My linux machine is CentOs 64bit, with Sun jdk1.7.0, nodejs10.0, gcc4.9. The gulp result keeps saying 'JAVA_HOME' not right, but the nodejs also relies on jdk and it works all right. So it's really confusing. I wish you can have some ideas. Have a good day!