Building PiTool @ GitHub

Ok, so it’s on GitHub!
I thought I would link it in its own Thread and we can gather Forks and Versions coming along.

3 Likes

Currently we are working on getting the project to actually compile properly, and genesis is doing a big help on that on the discord for pimax, but I’ll get back here if I confirm his method of getting it to work, so we have a confirmed strategy to pull and begin working on this project, but he also says that it appears to be an older version of pitool itself?

3 Likes

The qt version they want is apparently here, complete with installer, thanks to genesis as well https://download.qt.io/archive/qt/5.8/5.8.0/qt-opensource-windows-x86-msvc2015_64-5.8.0.exe

3 Likes

Ah nice i was searching for that one!

1 Like

For the fun of it, I tried compiling it. I’ve got it to work and thought I’d share it here since I ran into several problems I had to solve:

  1. Don’t run build_pack_tool.bat from a cmd-line. You need to run it from a PowerShell command. Alternatively you could edit the batch file and remove those 2 lines with “CmdLink32.exe” in them
  2. Make sure you’ve installed Visual studio 2015 or later
  3. Make sure you’ve installed Python version 3 (and have it added to the system variables during installation)
  4. Make sure you’ve installed that QT version that was posted above

Now edit your system variables. Add a line to your QT bin directory, one to your msbuild.exe and one to your signtool. So in my case I added:
C:\Qt\Qt5.8.0\5.8\msvc2015_64\bin
C:\Program Files (x86)\MSBuild\14.0\bin
E:\PiTool-master\PiTool_setup\SignTool

Then the batch file should execute fine and build it.

I’m not sure about how the versioning works yet. I just enter 100 for version and it seems to build, but not sure how to get the version right? Haven’t looked into that yet.

And in my case it terminates with a signing error for the installer, I’m missing a certificate to sign the installer;

E:\PiTool-master>signtool sign /v /fd sha1 /sha1 d2371a028632554132ffc814b1c9922ea80fa7f0 /tr Timestamping SaaS - Apply RFC 3161 Timestamps | GlobalSign /td sha256 setup\2019-09-25-14-31-16*
SignTool Error: No certificates were found that met all the given criteria.

But the pitool.exe seems to build correctly. Not sure yet about the certificates …

7 Likes

You’ll have to make your own certificate using OpenSSL or buy your own. Pimax won’t publish their cert, it should stay private.

3 Likes

Are you sure fennec? I’m a bit confused here. Normally you’d specifiy a local certificate with the /f option, but in this command line I don’t see any specification of the certificate, just the sha definitions.

2 Likes

d2371a028632554132ffc814b1c9922ea80fa7f0 is the thumbprint of the cert. When you generate your own you’ll put yours here.

3 Likes

Gotcha, makes sense.

Did you build it already? Apart from signing the build seems to work fine. Haven’t looked into the versioning yet though.

2 Likes

No I didn’t have time, but I know a bit about certs for my work.

3 Likes

Ok the version you enter doesn’t seem to matter, I think that only matters when you actually have a bunch of versions:

@set /p version=Please input version:

set pack_directory=%~dp0

cd %pack_directory%PiTool

If you just download the whole bunch from github as a zip, then you can just leave those 3 lines out. OR just leave them in, it doesnt seem to cause an error anyway.

2 Likes

Looks like the dependencies list in the Readme needs to be updated.

3 Likes

Correct me if I am wrong, It looks like only client app is in the open. Are there plans to also open OpenVR driver and services?

2 Likes

I’m not quite sure what to do, as I’ve seen someone else say they got it working without all that, have you been able to open the qt quick editor on any of the UI qml files? I just get a bunch of errors saying “not supported” a bunch and other errors when opening qt designer. I’m also a bit lost on this whole “environment variable” and “system variable” things as it doesn’t really appear anywhere I’m seeing.

2 Likes

Alright, I figured out the system variables bit and I’m slowly working towards getting it to build, still getting the “device not ready” thing.
Using regular command prompt, and it’s asking me to install 8.1 sdk, so I’m doing that.
Though I still can’t open up the qml files to edit any UI aspects, it seems, it gives me a bunch of errors.

2 Likes

Okay, I’ve been able to make the project build fully at least (many warnings, but who doesn’t have a codebase without tons of repetitve warnings, eh?) and this is the github request with it, hopefully this helps everyone who needs tips, I tried to be as clear as I could, this is a bit of a scattered solution but the last two posts before the close matter the most. Unable to set up project, please provide more specific instructions · Issue #3 · OpenMAR/PiTool · GitHub

1 Like