<div dir="ltr">I did a full fresh clone of the repo and now, there is a cairo issue I hadn't before:<div><br></div><div><div>checking for cairo's PNG functions feature...</div><div>configure: WARNING: Could not find libpng in the pkg-config search path</div>
<div>checking whether cairo's PNG functions feature could be enabled... no</div><div>configure: error: recommended PNG functions feature could not be enabled</div><div>make[3]: *** [thirdparty/out/bin/libcairo-2.dll] Error 1</div>
<div>make[2]: *** [thirdParty/cairo/CMakeFiles/cairo.dir/all] Error 2</div><div>make[1]: *** [thirdParty/cairo/CMakeFiles/cairo.dir/rule] Error 2</div><div>make: *** [cairo] Error 2</div><div><br></div><div>Looks like the build stuff is quite f*kced up on a 64-bit Windows 8 OS and current MinGW.</div>
<div><br></div><div>Phil </div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><br></div></div></div><div class="gmail_quote">On Tue, Nov 19, 2013 at 11:20 AM, Camillo Bruni <span dir="ltr"><<a href="mailto:camillobruni@gmail.com" target="_blank">camillobruni@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> <br>ok, you just discovered a minor mess... onto fixing it quickly..<br>
<br>
On 2013-11-19, at 11:16, <a href="mailto:phil@highoctane.be">phil@highoctane.be</a> wrote:<br>
<br>
> I found why the vmVersionInfo.h isn't there...<br>
><br>
> build.sh contains:<br>
><br>
> #!bash<br>
><br>
> if [ ! -e vmVersionInfo.h ]; then<br>
> ../codegen-scripts/extract-commit-info.sh<br>
> fi<br>
> cmake -G "MSYS Makefiles" .<br>
> make<br>
><br>
><br>
> and ../codegen-scripts/extract-commit-info.sh is nowhere to be found from the git clone...<br>
><br>
> It lives in scripts/<br>
><br>
> Phil<br>
><br>
><br>
><br>
><br>
> On Tue, Nov 19, 2013 at 11:01 AM, <a href="mailto:phil@highoctane.be">phil@highoctane.be</a> <<a href="mailto:phil@highoctane.be">phil@highoctane.be</a>> wrote:<br>
> I've been moving forward with building the VM for Windows from the GitHub sources with MinGW.<br>
><br>
> Now, to get the thing to compile, I had to replace the oft_t things by _oft_t, same for the 64 flavor.<br>
><br>
> So, modifiying two header files, one being mingw.h where I put #define oft_t _oft_t at the end.<br>
><br>
> This did the trick and I now have all plugins/dlls building fine:<br>
><br>
> FT2Plugin.dll<br>
> libcairo-2.dll<br>
> libeay32.dll<br>
> libfreetype-6.dll<br>
> libfreetype.dll.a<br>
> libFT2Plugin.dll.a<br>
> libpixman-1-0.dll<br>
> libpng-3.dll<br>
> libSqueakFFIPrims.dll.a<br>
> libSqueakSSL.dll.a<br>
> SqueakFFIPrims.dll<br>
> SqueakSSL.dll<br>
> ssleay32.dll<br>
> zlib1.dll<br>
><br>
> are in results/<br>
><br>
> Also, to get there, one has to create a vmVersionInfo.h file in platforms\Cross\vm with something in the REVISION_STRING<br>
><br>
> #define REVISION_STRING "Pharo VM - Philippe Back from GitHub Sources 20131119"<br>
><br>
> I wonder why this isn't something automagically generated in the process as it seems that the CI build has something.<br>
><br>
> The last step is getting Pharo.exe to link but this doesn't work:<br>
><br>
> Linking C executable /C/MinGW/msys/1.0/home/Philippe/pharo-vm/results/Pharo.exe<br>
> c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot fin<br>
> d -lcrtdll<br>
> collect2.exe: error: ld returned 1 exit status<br>
> make[2]: *** [C:/MinGW/msys/1.0/home/Philippe/pharo-vm/results/Pharo.exe] Error<br>
> 1<br>
> make[1]: *** [CMakeFiles/Pharo.dir/all] Error 2<br>
> make: *** [all] Error 2<br>
><br>
><br>
> Looks like a library path is wrong or else.<br>
><br>
> Idea?<br>
><br>
> Also, there are quite a number of warnings spit out during the compiling process all over the place, more than the Mac VM build I think.<br>
><br>
> e.g.<br>
><br>
> [ 92%] Building C object CMakeFiles/Pharo.dir/C_/MinGW/msys/1.0/home/Philippe/ph<br>
> aro-vm/platforms/win32/vm/sqWin32Prefs.c.obj<br>
> In file included from C:/MinGW/msys/1.0/home/Philippe/pharo-vm/platforms/Cross/v<br>
> m/sq.h:193:0,<br>
> from c:/MinGW/msys/1.0/home/Philippe/pharo-vm/platforms/win32/v<br>
> m/sqWin32Prefs.c:20:<br>
> C:/MinGW/msys/1.0/home/Philippe/pharo-vm/platforms/win32/vm/sqPlatformSpecific.h<br>
> :52:0: warning: "VM_EXPORT" redefined [enabled by default]<br>
> # define VM_EXPORT __declspec( dllexport )<br>
> ^<br>
> In file included from c:/MinGW/msys/1.0/home/Philippe/pharo-vm/platforms/win32/v<br>
> m/sqWin32Prefs.c:20:0:<br>
> C:/MinGW/msys/1.0/home/Philippe/pharo-vm/platforms/Cross/vm/sq.h:48:0: note: thi<br>
> s is the location of the previous definition<br>
> #define VM_EXPORT<br>
> ^<br>
> [ 93%] Building C object CMakeFiles/Pharo.dir/C_/MinGW/msys/1.0/home/Philippe/ph<br>
> aro-vm/platforms/win32/vm/sqWin32Utils.c.obj<br>
> In file included from C:/MinGW/msys/1.0/home/Philippe/pharo-vm/platforms/Cross/v<br>
> m/sq.h:193:0,<br>
> from c:/MinGW/msys/1.0/home/Philippe/pharo-vm/platforms/win32/v<br>
> m/sqWin32Utils.c:14:<br>
> C:/MinGW/msys/1.0/home/Philippe/pharo-vm/platforms/win32/vm/sqPlatformSpecific.h<br>
> :52:0: warning: "VM_EXPORT" redefined [enabled by default]<br>
> # define VM_EXPORT __declspec( dllexport )<br>
> ^<br>
> In file included from c:/MinGW/msys/1.0/home/Philippe/pharo-vm/platforms/win32/v<br>
> m/sqWin32Utils.c:14:0:<br>
> C:/MinGW/msys/1.0/home/Philippe/pharo-vm/platforms/Cross/vm/sq.h:48:0: note: thi<br>
> s is the location of the previous definition<br>
> #define VM_EXPORT<br>
><br>
> Phil<br>
><br>
<br>
<br></blockquote></div><br></div></div></div>