Hi Ludovic , Thanks for your help . I followed your steps mentioned in the blog and was able to configure. After giving make command I am getting this error as below :-
jvm.obj : warning LNK4197: export 'JVM_GetThreadStateNames' specified multiple times; using first specification Creating library jvm.lib and object jvm.exp LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt NMAKE : fatal error U1077: 'C:\progra~2\micros~2.0\vc\bin\amd64\link.exe' : return code '0x463' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nmake.EXE"' : return code '0x2' Stop. Makefile:228: recipe for target 'generic_build2' failed make[3]: *** [generic_build2] Error 2 Makefile:175: recipe for target 'product' failed make[2]: *** [product] Error 2 HotspotWrapper.gmk:44: recipe for target '/cygdrive/e/MyOpenJDK/dev/build/windows-x86_64-normal-server-release/hotspot/_hotspot.timestamp' failed make[1]: *** [/cygdrive/e/MyOpenJDK/dev/build/windows-x86_64-normal-server-release/hotspot/_hotspot.timestamp] Error 2 /cygdrive/e/MyOpenJDK/dev//make/Main.gmk:109: recipe for target 'hotspot-only' failed Please help me to resolve this . Regards, Pooja On Fri, Apr 4, 2014 at 1:47 AM, Ludovic HOCHET <lhoc...@gmail.com> wrote: > Hello Pooja, > Have you tried with just: > --with-freetype=/cygdrive/e/PoojaJDK8/freetype-2.4.7/freetype-2.4.7 > (additionally I think my trial and error got me to put the dll in > /cygdrive/e/PoojaJDK8/freetype-2.4.7/freetype-2.4.7/lib) > ? > > For ref, here are the steps I follow when building own: > http://lhochet.blogspot.fr/2013/01/building-java-8-on-windows.html > > HTH, > Ludovic > > > On Thu, Apr 3, 2014 at 9:02 PM, pooja chopra <poojachopra....@gmail.com> > wrote: > > Hi Tim, > > Yeah I have cygwin and I tried with the cygwin command you told as below > > but again I got same error :- > > > > $ ./configure > > --with-freetype-lib=/cygdrive/e/PoojaJDK8/freetype-2.4.7/freetype > > -2.4.7/objs/win64/vc2010 > > --with-freetype-include=/cygdrive/e/PoojaJDK8/freetype > > -2.4.7/freetype-2.4.7/include/freetype > > > > Error:- > > checking what is not needed on Windows?... alsa cups pulse x11 > > checking for Mac OS X Java Framework... no > > checking for X... no > > checking for X11/extensions/shape.h... no > > configure: error: Can not find or use freetype at location given by > > --with-freet > > ype > > configure exiting with result code 1 > > > > Regards, > > Pooja > > > > On Fri, Apr 4, 2014 at 12:30 AM, pooja chopra <poojachopra....@gmail.com > >wrote: > > > >> Hi Tim, > >> Yeah I have cygwin and I tried with the command you told as below > >> > >> > >> > >> On Fri, Apr 4, 2014 at 12:08 AM, Tim Bell <tim.b...@oracle.com> wrote: > >> > >>> If you are building the JDK on WIndows, you probably have Cygwin > >>> installed (you won't get very far without it). > >>> > >>> I suggest you try the Cygwin form of the path instead of the DOS form, > >>> and use forward slashes, like this: > >>> > >>> ./configure > >>>> --with-freetype-lib=/cygdrive/e/PoojaJDK8/freetype-2.4.7/ > >>>> freetype-2.4.7/objs/win64/vc2010 > >>>> --with-freetype-include=/cygdrive/e/PoojaJDK8/freetype- > >>>> 2.4.7/freetype-2.4.7/include/freetype > >>>> > >>> > >>> Hope this helps- > >>> > >>> Tim > >>> > >>> > >>> On 04/03/14 17:34, pooja chopra wrote: > >>> > >>>> Hi Volker , > >>>> Thanks for the help. But even after giving command as below : - > >>>> > >>>> $ ./configure > >>>> -with-freetype-lib=E:\PoojaJDK8\freetype-2.4.7\ > >>>> freetype-2.4.7\objs\win64\vc2010 > >>>> --with-freetype-include=E:\PoojaJDK8\freetype-2.4.7\ > >>>> freetype-2.4.7\include\freetype > >>>> > >>>> I got below error :- > >>>> checking for X11/extensions/shape.h... no > >>>> configure: error: Can not find or use freetype at location given by > >>>> --with-freetype > >>>> configure exiting with result code 1 > >>>> > >>>> I have freetype.dll at this location > >>>> E:\PoojaJDK8\freetype-2.4.7\freetype-2.4.7\objs\win64\vc2010 and > >>>> freetype.h at this > >>>> location E:\PoojaJDK8\freetype-2.4.7\freetype-2.4.7\include\freetype > >>>> > >>>> Regards, > >>>> Pooja > >>>> > >>>> > >>>> On Thu, Apr 3, 2014 at 9:21 PM, Volker Simonis < > volker.simo...@gmail.com > >>>> >wrote: > >>>> > >>>> Hi Pooja, > >>>>> > >>>>> if you already successfully build freetype according to the steps > >>>>> given in your mail you can simply pass the path of the freetype build > >>>>> output directory (i.e. the one where you find freetype.dll) with the > >>>>> "--with-freetype-lib" option to configure. You should also use > >>>>> "--with-freetype-include" to pass the path to the freetype include > >>>>> directory (i.e. the one which contains freetype.h) to configure. > >>>>> > >>>>> Regards, > >>>>> Volker > >>>>> > >>>>> > >>>>> On Thu, Apr 3, 2014 at 5:26 PM, pooja chopra < > poojachopra....@gmail.com > >>>>> > > >>>>> wrote: > >>>>> > >>>>>> Hi , > >>>>>> > >>>>>> I am trying to build openjk on my windows 7 machine and facing > problem > >>>>>> as > >>>>>> below :- > >>>>>> > >>>>>> checking for X11/extensions/shape.h... no > >>>>>> configure: error: Could not find freetype! You need to build a > 64-bit > >>>>>> version of > >>>>>> freetype. > >>>>>> This is not readily available. > >>>>>> You can find source code and build instructions on > >>>>>> http://www.freetype.org/ > >>>>>> If you put the resulting build in "C:\Program Files\GnuWin32", it > will > >>>>>> be > >>>>>> found > >>>>>> automatically. > >>>>>> configure exiting with result code 1 > >>>>>> > >>>>>> Even though I have build freetype using steps as below :- > >>>>>> > >>>>>> Download FreeType from http://www.freetype.org/download.html, > extract > >>>>>> > >>>>> it to > >>>>> > >>>>>> c:\OpenJDK\freetype-2.4.7 and double click on > >>>>>> c:\OpenJDK\freetype-2.4.7\builds\win32\vc2010\freetype.vcxproj to > open > >>>>>> > >>>>> the > >>>>> > >>>>>> FreeType project in "VisualC++ Express 2010". > >>>>>> > >>>>>> From the projects properties do the following: > >>>>>> > >>>>>> - Configuration Manager -> Active Solution Manager -> Type or > >>>>>> select > >>>>>> > >>>>> the > >>>>> > >>>>>> new Platform -> x64 > >>>>>> - Configuration -> Release Multithreaded > >>>>>> - Platform -> x64 > >>>>>> - Output Directory -> rename ".\..\..\..\objs\win32\vc2010\" to > >>>>>> ".\..\..\..\objs\win64\vc2010\" > >>>>>> - Intermediate Directory -> rename > ".\..\..\..\objs\release_mt\" to > >>>>>> ".\..\..\..\objs\release_mt_64\" > >>>>>> - Target Name -> rename to "freetype" > >>>>>> - Platform Toolset -> Windows7.1SDK > >>>>>> > >>>>>> Taking help from this site : - > >>>>>> > >>>>>> https://weblogs.java.net/blog/simonis/archive/2011/10/28/ > >>>>> yaojowbi-yet-another-openjdk-windows-build-instruction > >>>>> > >>>>>> There may be a problem related to Windows SDK for Windows 7 and > .Net as > >>>>>> what I downloaded had some errors so please provide me link for > >>>>>> > >>>>> downloading > >>>>> > >>>>>> this . > >>>>>> > >>>>>> > >>>>>> Thanks and Regards, > >>>>>> Pooja > >>>>>> > >>>>> > >>> > >> > > > > -- > Ludovic > ----------------------------------------- > > "Les formes qui differencient les etres importent peu > si leur pensees s'unissent pour batir un univers..." > Yoko Tsuno (in 'Les titans' by Roger Leloup) > [The shapes that differenciate beings are not important > if their thoughts unite to build a universe] >