wkhtmltopdf / packaging

Packaging of wkhtmltopdf releases
https://wkhtmltopdf.org/downloads.html#stable
313 stars 144 forks source link

cross building for windows #10

Closed PerlTester closed 6 years ago

PerlTester commented 6 years ago

Hi ashkulz,

I'm running builds using the new packaging model with vagrant and virtual box on ubuntu 18.04 LTS (a vm on my esxi5.5 host) and successfully have built wkhtmltopdf for linux, but am having a gruelling time trying to get a windows build going.

I have a standard newly built ubuntu 18.04 and installed the necessaries with

sudo apt install -y python-yaml docker.io vagrant virtualbox p7zip-full,

then onward upgrading to the latest vagrant and virtual box however I am getting the now famous net::ssh errors that are all over the web etc, I have tried everything, even trying to build on 16.04 with different versions of vagrant and virtualbox using other mcandre boxes etc. but to no avail.

commandline output below...

test@srv_ub64_009:~/packaging$ sudo ./build vagrant msvc2015-win64 /home/test/wkhtmltopdf/ Bringing machine 'windows' up with 'virtualbox' provider... ==> windows: Machine already provisioned. Run vagrant provision or use the --provision ==> windows: flag to force provisioning. Provisioners marked to run always will still run. ssh_exchange_identification: read: Connection reset by peer ssh -F vagrant/.vagrant/windows_config windows -- mkdir -p /c/Users/vagrant/msvc2015-win64 command failed: exit code 255

Did you manage a windows build successfully with this new model and if so can you share the vagrant versions etc.

Many thanks

Perl Tester.

ashkulz commented 6 years ago

Why are you running under sudo? Also, try ./build vagrant --clean as it looks like the VM didn't get provisioned correctly. Post the complete log of a clean build, as all releases use these scripts.

ashkulz commented 6 years ago

If you want, you can also run it directly on Windows ... see the appveyor configuration in the main repo on how to do that.

PerlTester commented 6 years ago

Thanks I'll have look

On Thu, Aug 9, 2018 at 9:45 PM Ashish Kulkarni notifications@github.com wrote:

If you want, you can also run it directly on Windows ... see the appveyor configuration on how to do that.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wkhtmltopdf/packaging/issues/10#issuecomment-411874740, or mute the thread https://github.com/notifications/unsubscribe-auth/ACk-NeD9s8z5wXTXREw1454hCzf7UBaXks5uPJF1gaJpZM4V2Ski .

PerlTester commented 6 years ago

OK after moving to desktop ubuntu and setting the gui flag I have found that the issue is related to virtualisation VT not enabled in the client VM bios, running in esxi5.5. - basically nested virtual machines need to be supported.

To enable this in esxi5.5 is described here: https://www.codementor.io/slavko/enable-virtualization-inside-esxi-virtual-machine-du107l4ky

Thanks again

P.

ashkulz commented 6 years ago

Please reopen if you face any issue in the compilation process. Feel free to submit a PR mentioning the requirement for physical hardware or nested VT.