agusantoso / harviewer

Automatically exported from code.google.com/p/harviewer
0 stars 0 forks source link

Problem building in Windows 7 #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps:

1. Checked out a fresh working copy
2. Downloaded and installed build tools (from README.txt)
3. Downloaded NodeJS precompiled binaries for Windows (from 
http://node-js.prcn.co.cc/ version 0.4.8)
4. Executing the build process produces this:

C:\harviewer\webapp\scripts>..\..\requirejs\build\build.bat app.build.js

C:\harviewer\webapp\scripts>set MYDIR=C:\harviewer\requirejs\build\

C:\harviewer\webapp\scripts>C:\harviewer\requirejs\build\..\bin\x.bat C:\harview
er\requirejs\build\build.js app.build.js

C:\harviewer\webapp\scripts>set MYDIR=C:\harviewer\requirejs\bin\

C:\harviewer\webapp\scripts>node C:\harviewer\requirejs\bin\x.js C:\harviewer\re
quirejs\bin\ C:\harviewer\requirejs\build\build.js app.build.js
cygwin warning:
  MS-DOS style path detected: /cygdrive/c/harviewer/webapp/scripts/C:\harviewer\
requirejs\bin\x.js
  Preferred POSIX equivalent is: /cygdrive/c/harviewer/webapp/scripts/C:/harview
er/requirejs/bin/x.js
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames

node.js:134
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
Error: Cannot find module '/cygdrive/c/harviewer/webapp/scripts/C:\harviewer\req
uirejs\bin\x.js'
    at Function._resolveFilename (module.js:322:11)
    at Function._load (module.js:267:25)
    at Array.<anonymous> (module.js:426:10)
    at EventEmitter._tickCallback (node.js:126:26)

I have cygwin installed but I dont know its being referenced here (or if its 
actually used by nodejs). Could this be problem ?

I have successfully managed (months ago) to build the harviewer on the same 
box. But that was before nodejs was used. (Maybe rhino can be used ? Not sure.)

I 'll check this again but cant be sure if I can dedicate too much time on it. 

Original issue reported on code.google.com by phobouli...@gmail.com on 6 Jul 2011 at 7:26

GoogleCodeExporter commented 9 years ago
> 1. Checked out a fresh working copy
You did checkout entire trunk, correct?
http://code.google.com/p/harviewer/source/browse/#svn%2Ftrunk

> 2. Downloaded and installed build tools (from README.txt)
They are all part of the SVN trunk 

> 3. Downloaded NodeJS precompiled binaries for Windows (from http://node-
> js.prcn.co.cc/ version 0.4.8)
Why do you need NodeJS?

> 4. Executing the build process produces this:
I am doing following:

I:\www\har\viewer-src>ant

Where I:\www\har\viewer-src directory corresponds to the trunk.
http://code.google.com/p/harviewer/source/browse/#svn%2Ftrunk

Honza

Original comment by odva...@gmail.com on 6 Jul 2011 at 8:26

GoogleCodeExporter commented 9 years ago
True, build tools are included in trunk. The README.txt pointed me to another 
direction which needed to  execute node.exe at some point. I looked at the JS 
file that gave as a parameter and it mentioned NodeJS and Rhino. Thats how I 
got the idea that it needed NodeJS. Using ant everything build just fine. 

(I have to chmod +x from some files but other than that all is good)

Thanks Honza!

Original comment by phobouli...@gmail.com on 7 Jul 2011 at 9:02

GoogleCodeExporter commented 9 years ago
Good

Could you please propose changes to the current documentation (wiki or 
README.text or both) so, other can avoid such problems?

Honza

Original comment by odva...@gmail.com on 7 Jul 2011 at 9:11

GoogleCodeExporter commented 9 years ago
Sure I can do that. I will take a look at this tomorrow morning.

Original comment by phobouli...@gmail.com on 7 Jul 2011 at 9:48

GoogleCodeExporter commented 9 years ago
Sorry for the delay Honza, I ll get to this as soon as possible.

Original comment by phobouli...@gmail.com on 8 Aug 2011 at 8:43