Building PhantomJS on Windows results in errors

65 views
Skip to first unread message

Amanda Swearngin

unread,
Jul 14, 2015, 11:07:12 AM7/14/15
to phan...@googlegroups.com

I am having trouble getting PhantomJS to build locally using the follow steps from the website for  building on Windows (Server 2012 R2). I have installed Perl, Python, Ruby, and Git, and they are added to my PATH. When I execute build.cmd from the VS 2013 developer command prompt, the build exits quickly with these errors int the build_webkit log: 

sicuin.lib(udat.ao) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in jsc.obj
sicuin.lib(udat.ao) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in jsc.obj
sicuin.lib(ucol_res.ao) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in jsc.obj
sicuin.lib(ucol_res.ao) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in jsc.obj
sicuin.lib(ucol.ao) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in jsc.obj
sicuin.lib(ucol.ao) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in jsc.obj
sicuin.lib(dtitvinf.ao) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in jsc.obj

The QT log file has this error message: 
LINK : fatal error LNK1181: cannot open input file 'sicuin.lib'


These are the build steps I followed for VS 2013. Does anyone know what I am missing?

Note: You must have Perl, Python, Ruby, and Git on PATH.

Use Visual Studio Command Prompt, run in the top directory. The results will go into bin:

git clone git://github.com/ariya/phantomjs.git
cd phantomjs
git checkout 2.0
build.cmd

Vitaly Slobodin

unread,
Jul 14, 2015, 11:25:50 AM7/14/15
to phan...@googlegroups.com
Hi,

>sicuin.lib(udat.ao) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in jsc.obj

You're trying to compile PhantomJS with VS2012. VS2012 has this (1700) _MSV_VER define option.
Make sure you're really using VS2013 command prompt to build PhantomJS.

Regards,
Vitaly.
Reply all
Reply to author
Forward
0 new messages