Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typical plugin update procedure targeting master catalog #406

Closed
rgleason opened this issue Jan 30, 2022 · 55 comments
Closed

Typical plugin update procedure targeting master catalog #406

rgleason opened this issue Jan 30, 2022 · 55 comments

Comments

@rgleason
Copy link
Contributor

rgleason commented Jan 30, 2022

Normal Sequential Process after the plugin is setup and running.

  1. Remove auto branch and Create a branch called auto in github.com//plugins fork:
    See https://opencpn-manuals.github.io/main/AlternativeWorkflow/InstallConfigure/GithubPreps.html
    For builds targeting the master catalog: drop possible existing auto branch and create a new on top of master:
 git branch -D auto ①
 git remote update upstream ②
 git checkout -b auto upstream/master ③
 git push -f origin auto:auto ④

Note: this does not need to be done each time.

  1. Update SD Template with script "update-templates"
    https://github.com/Rasbats/shipdriver_pi/blob/master/UPDATE_TEMPLATES.md
    See "2. Run the script" https://github.com/Rasbats/shipdriver_pi/blob/master/UPDATE_TEMPLATES.md#2-run-script
    For example to update using a tag when in Windows OS
    "C:\Program Files\Git\bin\bash.exe" update-templates sd3.0.2

  2. Build Locally and test
    https://opencpn-manuals.github.io/main/AlternativeWorkflow/usage.html
    Read the Install.md file for complete instructions.
    Run the batch files locally, creating the tarball in the build directory.

  3. From Bash Prompt started with administrative rights.

  • From the PI root directory run
./buildwin/minimal-path.bat
or 
set PATH=C:\ProgramData\chocolatey\bin;C:\Windows\system32;C:\Windows
./buildwin/win-deps.bat 
rm -rf build; mkdir build; cd build
cd build` directory
cmake -T v141_xp -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=RelWithDebInfo  ..
cmake --build . --target tarball --config RelWithDebInfo
  • Then start Opencpn and from options>plugins "Import Plugin" and import the local tarball
  • Then install the local tarball, enable and test.
  • Alternatively, you can commit and push an "untagged" build, and then use Options > Import Plugins to import the tarball from the Cloudsmith alpha directory for the plugin.
  1. Commit a tagged build
    https://opencpn-manuals.github.io/main/AlternativeWorkflow/InstallConfigure/GitHub.html#_building_the_plugin
    First create a tagged beta build, using the tag (in this case) "v1.3.19.beta" then a tagged build.
    To DEPLOY using Tags
Deploy to Beta Branch  in your Cloudsmith Repository

$ git add <files changed>
$ git commit -am "1.3.4-beta")
$ git tag v1.3.4-beta
$ git push --tags origin master:master

Deploy to Prod Branch

$ git commit -am "1.3.4"
$ git tag v1.3.4
$ git push --tags origin master:master

Tagged Deployment  (all at the same time)

$ git commit -am "my last changes"
$ git tag v[new version number]
$ git push --tags origin master:master

OR   From your plugin, initiate a tagged push from your plugin and then create an empty commit.

$git tag v1.2.3
$git push v1.2.3
$git commit --allow-empty -m "Trigger build"
$git push origin 

- The last step pushes the tag and the branch in one step, 
- thus avoiding the problem of deployment being split between “prod” and “beta”.
- It's also much simpler. (All tags from your local clone are pushed to origin. 
- If this is a problem they can also be removed.)

  1. Check the Metadata that has been automatically pushed to plugins/auto branch (Not necessary, Alec Lemas)
    https://opencpn-manuals.github.io/main/AlternativeWorkflow/InstallConfigure/GitHub.html#_check_the_metadata_push

  2. Making a Pull request. https://opencpn-manuals.github.io/main/AlternativeWorkflow/InstallConfigure/Catalog-Github-Integration.html#make-PR

  3. If metadata files are missing, check the "builder" logs. Usually it is a bad auth key.

@leamas
Copy link
Collaborator

leamas commented Jan 30, 2022

Where did you get point 6) from?

@leamas
Copy link
Collaborator

leamas commented Jan 30, 2022

Just omit it, stick to the documentation.

@rgleason
Copy link
Contributor Author

rgleason commented Jan 30, 2022

For update-template script in Windows, should I use this tag and command?

"C:\Program Files\Git\bin\bash.exe" update-templates sd3.0.2

@rgleason
Copy link
Contributor Author

fcgle@Hesper MINGW64 ~/source/vdr_pi (master)
$ "C:\Program Files\Git\bin\bash.exe" update-templates sd3.0.2
Please commit or stash pending changes. Aborting.

fcgle@Hesper MINGW64 ~/source/vdr_pi (master)
$ git stash
No local changes to save

fcgle@Hesper MINGW64 ~/source/vdr_pi (master)
$ "C:\Program Files\Git\bin\bash.exe" update-templates sd3.0.2
Please commit or stash pending changes. Aborting.

fcgle@Hesper MINGW64 ~/source/vdr_pi (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        bld-no-clone.bat
        bld-wo-clone.bat
        buildwin/wxWidgets-3.1.2.7z

nothing added to commit but untracked files present (use "git add" to track)

What a PITA it doesn't like those files?

@rgleason
Copy link
Contributor Author

Also, shouldn't I be changing the version number before doing ?

$ "C:\Program Files\Git\bin\bash.exe" update-templates sd3.0.2

@leamas
Copy link
Collaborator

leamas commented Jan 30, 2022

Are we now talking about update_templates or git-push? These two are not related in any way.

"Confused"

@rgleason
Copy link
Contributor Author

Alec, trying to use your schema for versioning here.
Shouldn't I increment the version number in Plugin.cmake and add beta to the prerelease

set(PKG_VERSION  1.3.17.0)
set(PKG_PRERELEASE "beta")  # Empty, or a tag like 'beta'

Then git add and commit as git commit -am "1.3.17beta"? Then

$ "C:\Program Files\Git\bin\bash.exe" update-templates sd3.0.2

The git add and git commit -am "update-temp to sd3.02"
Then push?

@rgleason
Copy link
Contributor Author

Well, this seems to have gotten the update-template script working

fcgle@Hesper MINGW64 ~/source/vdr_pi (master)
$ git commit -am "1.3.17beta"
[master 973c1bc] 1.3.17beta
 2 files changed, 5 insertions(+), 2 deletions(-)

fcgle@Hesper MINGW64 ~/source/vdr_pi (master)
$ git stash clear

fcgle@Hesper MINGW64 ~/source/vdr_pi (master)
$ git stash list

fcgle@Hesper MINGW64 ~/source/vdr_pi (master)
$ "C:\Program Files\Git\bin\bash.exe" update-templates sd3.0.2
Removing existing shipdriver remote.
Adding new shipdriver remote
Checking for updates of updates-templates script
Updated 1 path from 32b299a
update-templates script is updated to latest version. Please commit
changes and re-run script.

@rgleason
Copy link
Contributor Author

Then commited the new update-templates and ran
$ "C:\Program Files\Git\bin\bash.exe" update-templates sd3.0.2

again and got a long list of changes.
Now will git add and git commit that.

@rgleason
Copy link
Contributor Author

fcgle@Hesper MINGW64 ~/source/vdr_pi (master)
$ git log --oneline -12
5974c47 (HEAD -> master) cmake: Update TemplateVersion to 7745f78
7cb900b Templates: Updating other files
0adcaa9 Templates: Updating cmake
01b23b6 new update-templates
973c1bc 1.3.17beta
deb17ff (tag: v1.3.16, origin/master, origin/HEAD) v1.3.16
691ca18 1.3.16-beta1
4380bfd 1.3.15-beta1
8a3a1cb cmake: Update TemplateVersion to e49825d
ed6c7fb Templates: Updating other files
7739577 Templates: Updating libs
63ad519 Templates: Updating buildwin

@rgleason
Copy link
Contributor Author

Next I need to build it locally and test.

@rgleason
Copy link
Contributor Author

fcgle@Hesper MINGW64 ~/source/vdr_pi (master)
$ call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
bash: call: command not found

fcgle@Hesper MINGW64 ~/source/vdr_pi (master)
$ cd build

fcgle@Hesper MINGW64 ~/source/vdr_pi/build (master)
$ cmake -T v141_xp ..
-- Building for: Visual Studio 15 2017
-- Cmake version: 3.22.0-rc1.
-- Setting build type to 'Debug' as none was specified.
-- Build uses 16 processors
-- Configuring
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19042.
-- The C compiler identification is MSVC 19.16.27045.0
-- The CXX compiler identification is MSVC 19.16.27045.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Selected upload repository: o p e n c p n / v d r - a l p h a
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/fcgle/source/vdr_pi/build

fcgle@Hesper MINGW64 ~/source/vdr_pi/build (master)
$ cmake -G "Visual Studio 15 2017" --config RelWithDebInfo  ..     <<<----------------THIS DOES NOT WORK
CMake Error: Unknown argument --config
CMake Error: Run 'cmake --help' for all supported options.

fcgle@Hesper MINGW64 ~/source/vdr_pi/build (master)
$ cmake --build . --target tarball --config RelWithDebInfo >output.txt  <<<<----------BUT THIS DOES

output.txt.docx

@leamas
Copy link
Collaborator

leamas commented Jan 30, 2022

I will have to fork your directory to find out what's going on. Where is it?

Please don't submit build logs as docx attacments. It's against all known, established conventions. Build logs are plain text, nothing more.

@rgleason
Copy link
Contributor Author

Alec I can build locally using a series of typed commands, or my batch file, but as I have said before, having "--config" with this command does not work and so the batch files included don't really work either.

$ cmake -G "Visual Studio 15 2017" --config RelWithDebInfo  ..     <<<----------------THIS DOES NOT WORK
CMake Error: Unknown argument --config
CMake Error: Run 'cmake --help' for all supported options.

This does work.
fcgle@Hesper MINGW64 ~/source/vdr_pi/build (master)
$ cmake --build . --target tarball --config RelWithDebInfo >output.txt

If you really want the repository, it is here, I haven't yet pushed it, but will shortly, because the local build does work.

https://github.com/rgleason/vdr_pi

@rgleason
Copy link
Contributor Author

Everything built except xenial
https://github.com/rgleason/vdr_pi

Is the script outdated for xenial now?

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

1 package can be upgraded. Run 'apt list --upgradable' to see it.
+ sudo apt-get -q install python3.7
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package python3.7
E: Couldn't find any package by glob 'python3.7'
E: Couldn't find any package by regex 'python3.7'

Exited with code exit status 100

CircleCI received exit code 100

@leamas
Copy link
Collaborator

leamas commented Jan 31, 2022

Drop xenial, the upstreams are dead. It is already dropped in master. Edit .circleci-config, easiest in the very end which defines the jobs.

@rgleason
Copy link
Contributor Author

OK, Thanks. Will do.

@rgleason
Copy link
Contributor Author

rgleason commented Jan 31, 2022

For tag push VDR-v1.3.17-beta3 we have 13 files upload to Cloudsmith beta
https://cloudsmith.io/~opencpn/repos/vdr-beta/packages/?q=VDR-v1.3.17-beta3+metadata

Yet I only found 11 in the auto branch.

Circleci produces 10 metadata. - deploys to plugins "auto"
Appveyor produces 1 metadata - deploys to plugins "auto"
Drone produces 2 metadata. <-- it appears this one is not deploying to auto.

Drone shows for raspian arm 1 and 2

 cmake -DCMAKE_BUILD_TYPE=Release ..
-- Cmake version: 3.19.3.
-- Build uses 64 processors
-- Configuring
CMake Error at CMakeLists.txt:35 (project):
  VERSION "1.3.15.beta1" format invalid.

-- Configuring incomplete, errors occurred!

So something is using an old version of cmake that is not accepted?

@rgleason
Copy link
Contributor Author

Sometimes if you wait, errors go away like magic (This doesn't really happen in the real world does i?) It seems to have happened. Python was found and Drone has now fixed the two missing raspbian builds and they appear to have built properly. https://cloud.drone.io/rgleason/vdr_pi/65/1/2

Circleci was successful https://app.circleci.com/pipelines/github/rgleason/vdr_pi/216/workflows/76edcb0c-d68d-414e-bdf3-fa880d6fba3b

and so was Appveyor

Now Cloudsmith shows 13 metadata file for this

https://cloudsmith.io/~opencpn/repos/vdr-beta/packages/?q=VDR-v1.3.17-beta3+metadata

Now I can make a master "prod" tag and push

@leamas
Copy link
Collaborator

leamas commented Jan 31, 2022

Good.

As for the local builds, they work out of the box when I clone vdr_pi, applies update_templates (just to be sure...) and runs the build as described in INSTALL.md. Attaching log.

Possible problems might stem from having a broken %PATH%. There is really n way the build script can handle that as far as I can see. That said, the handling of %PATH% has been made more robust in recent updates, but it should no affect that much.

build.log.gz

@rgleason
Copy link
Contributor Author

Well, I agree that is difficult to build a script that can handle....
I disagree that I have broken path since it does build the way I do it, and since I have set up my computer wxWidgets in a different location. Yet I have executed the win-deps.bat anyway, so that should be ok.

Perhaps the line
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"

is where the problem is. perhaps vcvars32.bat should be checked.
@call "%~dp0vcvarsall.bat" x86 %*

vcvards32.bat is a big file.

This looks ok to me.

@leamas
Copy link
Collaborator

leamas commented Jan 31, 2022

That line does not live in either INSTALL.md or build_deps.bat. Why is it executed at all?

@leamas
Copy link
Collaborator

leamas commented Jan 31, 2022

OK, they are in the Shipdriver*clone.bat files.

But these are not used in the documented build in INSTALL.md. Please stick to that as long as there is problems

@rgleason
Copy link
Contributor Author

Ok, now I tried the final push to build and deploy and it fails for some reason.

Then I tried building locally again, and I am getting

rt4;shlwapi;version;wsock32 (found version "3.1.2") found components: base core net xml html adv stc aui gl png tiff jpeg zlib regex expat 
EXEC : CMake error : Could not open file for write in copy operation C:/Users/fcgle/source/vdr_pi/build/VDR-remove [C:\Users\fcgle\source\vdr_pi\build\tarball-conf.vcxproj]
  v1.3.17
  v1.3.17-beta3-msvc-10.0.19042.xml.in.tmp
EXEC : CMake error : : System Error: Invalid argument [C:\Users\fcgle\source\vdr_pi\build\tarball-conf.vcxproj]
  CMake Error at CMakeLists.txt:109 (configure_file):
    configure_file Problem configuring file
  

It's getting late. I am going to leave this for tomorrow morning....discouraged now.

@leamas
Copy link
Collaborator

leamas commented Jan 31, 2022

CMake error : Could not open file for write in copy operation C:/Users/fcgle/source/vdr_pi/build/VDR-remove [C:\Users\fcgle\source\vdr_pi\build\tarball-conf.vcxproj

You have somehow a write-protected file. Don't blame the templates for that.

First try: Restart the build after removing each and every file under build. As I said, this works out of the box for me.

EDIT: And make sure that you really remove everything...

@rgleason
Copy link
Contributor Author

Yes, I do always remove all files under the build. Will try again.

@leamas
Copy link
Collaborator

leamas commented Jan 31, 2022

Here is the PATH i start with when I encounter troubles. (windows PATH handling is a complete mess...)

set PATH=C:\Program Files\Git\cmd;C:\ProgramData\chocolatey\bin;C:\Program Files\Microsoft Windows Performance Toolkit\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Users\micha\AppData\Local\Microsoft\WindowsApps

nothing more is required, but you might need to reinstall python using choco to get those PATH elements in place.

@rgleason
Copy link
Contributor Author

Thanks Alec I will check the Environment PATH and make sure. And perhaps reinstall python with choco. although I thought it updated. Will check. ---Tomorrow morning when I am fresh.

I incremented the version and pushed a tagged v1.3.18-beta
The circleci builds did not end up in cloudsmith or plugins/auto etc.
Something has changed I think

https://github.com/rgleason/vdr_pi - They all look like they built.

https://app.circleci.com/pipelines/github/rgleason/vdr_pi/221/workflows/a4455105-b712-40df-a573-0889bbf219f1
https://cloudsmith.io/~opencpn/repos/vdr-beta/packages/

https://github.com/rgleason/plugins/tree/auto/metadata

@leamas
Copy link
Collaborator

leamas commented Jan 31, 2022

All builds for me...

@rgleason
Copy link
Contributor Author

That's good.

@leamas
Copy link
Collaborator

leamas commented Feb 2, 2022

You did not read the updated INSTALL.md, right?

The first step in the updated process is to invoke minimal-path.bat, I cannot see that you did?

And yes, you should clean up build before that.

@rgleason
Copy link
Contributor Author

rgleason commented Feb 2, 2022

I did execute minimal.bat. Then realized that it wipes out all my paths which is not what I intend to do. I went to look at my environment and found it was untouched.

Do you know if there is an easy way to save my current env first? I am setup to build TP template too. I will check on this question tonight. Also I have wxwidgets-3.1.2 located at user/fcgle/source/

PS i did review install.md too

@leamas
Copy link
Collaborator

leamas commented Feb 2, 2022

You can just open a new CMD window. It does wipe the PATH, but not the persistent parts in the registry, just the one in current session.

As long as you don't run it there is not much else to say than that it works for me but not for you. We must find a way where things works the same way for both of us, and that way is by definition to throw away everything not used by the build. Don't blame me, blame the Windows "designers" way back in the 80'ies.

@rgleason
Copy link
Contributor Author

rgleason commented Feb 2, 2022

Thanks, Alec "it just changes that CMD window..." very helpful. Just got back will run it all again in a little while. Hope it works!

@rgleason
Copy link
Contributor Author

rgleason commented Feb 3, 2022

1. Removed all files in "build" dir (normally I do this always.)

2. Ran minimal-path.bat

fcgle@Hesper MINGW64 ~/source/vdr_pi/buildwin (master)
$ ./minimal-path.bat
C:\Users\fcgle\source\vdr_pi\buildwin>set PATH1=C:\ProgramData\chocolatey\bin
C:\Users\fcgle\source\vdr_pi\buildwin>set PATH2=C:\Windows\system32
C:\Users\fcgle\source\vdr_pi\buildwin>set PATH3=C:\Windows
C:\Users\fcgle\source\vdr_pi\buildwin>set PATH=C:\ProgramData\chocolatey\bin;C:\Windows\system32;C:\Windows

3. Ran win_deps.bat

fcgle@Hesper MINGW64 ~/source/vdr_pi/buildwin (master)
$ ./win_deps.bat

C:\Users\fcgle\source\vdr_pi\buildwin>if not exist "C:\Users\fcgle\.local\bin\pathman.exe" (
pushd "C:\Users\fcgle"
 curl.exe -sA "MS" https://webinstall.dev/pathman   | powershell
 popd
)

C:\Users\fcgle\source\vdr_pi\buildwin>pathman list  1>nul 2>&1

C:\Users\fcgle\source\vdr_pi\buildwin>if errorlevel 1 set PATH=C:\Users\fcgle\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\fcgle\bin;C:\Python310\Scripts;C:\Python310;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\chocolatey\bin;C:\Users\fcgle\source\BatchUTILS;C:\Program Files (x86)\Poedit\Gettexttools\bin;C:\Program Files\CMake\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\bi;C:\cygwin\bin";C:\Python310\Scripts;C:\Python310;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\chocolatey\bin;C:\Users\fcgle\source\BatchUTILS;C:\Program Files (x86)\Poedit\Gettexttools\bin;C:\Program Files\CMake\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\bi;C:\cygwin\bin";C:\Python310\Scripts;C:\Python310;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\chocolatey\bin;C:\Users\fcgle\source\BatchUTILS;C:\Program Files (x86)\Poedit\Gettexttools\bin;C:\Program Files\CMake\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\bi;C:\cygwin\bin";C:\Windows\System32;%WXWIN%;%wxWidgets_LIB_DIR%;%wxWidgets_LIBRARIES%;%wxWidgets_INCLUDE_DIRS%;C:\Program Files (x86)\Common Files\Acronis\SnapAPI;C:\Program Files (x86)\Common Files\Acronis\VirtualFile;C:\Program Files (x86)\Common Files\Acronis\VirtualFile64;C:\Program Files (x86)\Common Files\Acronis\FileProtector;C:\Program Files (x86)\Common Files\Acronis\FileProtector64;C:\Users\fcgle\source\wxWidgets-3.1.2;%WXWIN%\lib\vc_dll;%WXWIN%\lib\vc_dll;%WXWIN%\include;C:\Program Files (x86)\Common Files\Acronis\SnapAPI;C:\Program Files (x86)\Common Files\Acronis\VirtualFile;C:\Program Files (x86)\Common Files\Acronis\VirtualFile64;C:\Program Files (x86)\Common Files\Acronis\FileProtector;C:\Program Files (x86)\Common Files\Acronis\FileProtector64;C:\Users\fcgle\source\wxWidgets-3.1.2;C:\Users\fcgle\source\wxWidgets-3.1.2\lib\vc_dll;C:\Users\fcgle\source\wxWidgets-3.1.2\lib\vc_dll;C:\Users\fcgle\source\wxWidgets-3.1.2\include;C:\Program Files (x86)\Common Files\Acronis\SnapAPI;C:\Program Files (x86)\Common Files\Acronis\VirtualFile;C:\Program Files (x86)\Common Files\Acronis\VirtualFile64;C:\Program Files (x86)\Common Files\Acronis\FileProtector;C:\Program Files (x86)\Common Files\Acronis\FileProtector64;C:\Users\fcgle\.local\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;C:\Users\fcgle\AppData\Local\GitHubDesktop\bin;C:\Users\fcgle\source;C:\Users\fcgle\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\fcgle\source\BatchUTILS;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl;C:\\Users\fcgle\.local\bin

C:\Users\fcgle\source\vdr_pi\buildwin>pathman add C:\Users\fcgle\.local\bin  1>nul
'pathman' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\fcgle\source\vdr_pi\buildwin>set CMAKE_HOME=C:\Program Files\CMake

C:\Users\fcgle\source\vdr_pi\buildwin>cmake --version  1>nul 2>&1

C:\Users\fcgle\source\vdr_pi\buildwin>if errorlevel 1 (
if not exist "C:\Program Files\CMake\bin\cmake.exe" choco install -y cmake
 pathman add "C:\Program Files\CMake\bin"  1>nul
)

C:\Users\fcgle\source\vdr_pi\buildwin>set POEDIT_HOME=C:\Program Files (x86)\Poedit\Gettexttools

C:\Users\fcgle\source\vdr_pi\buildwin>msgmerge --version  1>nul 2>&1

C:\Users\fcgle\source\vdr_pi\buildwin>if errorlevel 1 (
if not exist "C:\Program Files (x86)\Poedit\Gettexttools" choco install -y poedit
 pathman add "C:\Program Files (x86)\Poedit\Gettexttools\bin"  1>nul
)

C:\Users\fcgle\source\vdr_pi\buildwin>set GIT_HOME=C:\Program Files\Git

C:\Users\fcgle\source\vdr_pi\buildwin>git --version  1>nul 2>&1

C:\Users\fcgle\source\vdr_pi\buildwin>if errorlevel 1 (
if not exist "C:\Program Files\Git\cmd\git.exe" choco install -y git
 pathman add C:\Program Files\Git\cmd  1>nul
)

C:\Users\fcgle\source\vdr_pi\buildwin>set PYTHON_HOME=C:\Python310

C:\Users\fcgle\source\vdr_pi\buildwin>python --version  1>nul 2>&1

C:\Users\fcgle\source\vdr_pi\buildwin>if errorlevel 1 (if not exist "C:\Python310\python.exe" choco install -y python )

C:\Users\fcgle\source\vdr_pi\buildwin>python --version
Python 3.10.0

C:\Users\fcgle\source\vdr_pi\buildwin>python -m ensurepip
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
Looking in links: c:\Users\fcgle\AppData\Local\Temp\tmpup8lfx3a
Requirement already satisfied: setuptools in c:\python310\lib\site-packages (57.4.0)
Processing c:\users\fcgle\appdata\local\temp\tmpup8lfx3a\pip-21.2.3-py3-none-any.whl
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
Installing collected packages: pip
  WARNING: Failed to write executable - trying to use .deleteme logic
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\\Python310\\Scripts\\pip3.exe' -> 'C:\\Python310\\Scripts\\pip3.exe.deleteme'
Consider using the `--user` option or check the permissions.

Traceback (most recent call last):
  File "C:\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Python310\lib\ensurepip\__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
  File "C:\Python310\lib\ensurepip\__init__.py", line 277, in _main
    return _bootstrap(
  File "C:\Python310\lib\ensurepip\__init__.py", line 193, in _bootstrap
    return _run_pip([*args, *_PACKAGE_NAMES], additional_paths)
  File "C:\Python310\lib\ensurepip\__init__.py", line 93, in _run_pip
    return subprocess.run([sys.executable, '-W', 'ignore::DeprecationWarning',
  File "C:\Python310\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Python310\\python.exe', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = [\'C:\\\\Users\\\\fcgle\\\\AppData\\\\Local\\\\Temp\\\\tmpup8lfx3a\\\\setuptools-57.4.0-py3-none-any.whl\', \'C:\\\\Users\\\\fcgle\\\\AppData\\\\Local\\\\Temp\\\\tmpup8lfx3a\\\\pip-21.2.3-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'C:\\\\Users\\\\fcgle\\\\AppData\\\\Local\\\\Temp\\\\tmpup8lfx3a\', \'setuptools\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' returned non-zero exit status 1.

C:\Users\fcgle\source\vdr_pi\buildwin>python -m pip install --upgrade pip
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
Requirement already satisfied: pip in c:\python310\lib\site-packages (21.2.3)
Collecting pip
  Using cached pip-22.0.2-py3-none-any.whl (2.1 MB)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
Installing collected packages: pip
  Attempting uninstall: pip
    WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
    WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
    WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
    WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
    Found existing installation: pip 21.2.3
    Uninstalling pip-21.2.3:
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'c:\\python310\\scripts\\pip.exe'
Consider using the `--user` option or check the permissions.

WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)

C:\Users\fcgle\source\vdr_pi\buildwin>python -m pip install -q setuptools wheel
C:\Python310\python.exe: No module named pip

C:\Users\fcgle\source\vdr_pi\buildwin>python -m pip install -q cloudsmith-cli
C:\Python310\python.exe: No module named pip

C:\Users\fcgle\source\vdr_pi\buildwin>python -m pip install -q cryptography
C:\Python310\python.exe: No module named pip

C:\Users\fcgle\source\vdr_pi\buildwin>set SCRIPTDIR=C:\Users\fcgle\source\vdr_pi\buildwin\

C:\Users\fcgle\source\vdr_pi\buildwin>set WXWIN=C:\Users\fcgle\source\vdr_pi\buildwin\..\cache\wxWidgets-3.1.2

C:\Users\fcgle\source\vdr_pi\buildwin>set wxWidgets_ROOT_DIR=C:\Users\fcgle\source\vdr_pi\buildwin\..\cache\wxWidgets-3.1.2

C:\Users\fcgle\source\vdr_pi\buildwin>set wxWidgets_LIB_DIR=C:\Users\fcgle\source\vdr_pi\buildwin\..\cache\wxWidgets-3.1.2\lib\vc_dll

C:\Users\fcgle\source\vdr_pi\buildwin>if not exist "C:\Users\fcgle\source\vdr_pi\buildwin\..\cache\wxWidgets-3.1.2" (
wget --version   1>nul 2>&1  || choco install -y wget
 wget https://download.opencpn.org/s/E2p4nLDzeqx4SdX/download       --no-check-certificate -O wxWidgets-3.1.2.7z
 7z i   1>nul 2>&1  || choco install -y 7zip
 7z x wxWidgets-3.1.2.7z -oC:\Users\fcgle\source\vdr_pi\buildwin\..\cache\wxWidgets-3.1.2
)

C:\Users\fcgle\source\vdr_pi\buildwin>pathman add "C:\Users\fcgle\source\vdr_pi\buildwin\..\cache\wxWidgets-3.1.2"  1>nul
'pathman' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\fcgle\source\vdr_pi\buildwin>pathman add "C:\Users\fcgle\source\vdr_pi\buildwin\..\cache\wxWidgets-3.1.2\lib\vc_dll"  1>nul
'pathman' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\fcgle\source\vdr_pi\buildwin>refreshenv
Refreshing environment variables from registry for cmd.exe. Please wait...Finished..

Build Following the Install.md

fcgle@Hesper MINGW64 ~/source/vdr_pi/buildwin (master)
$ cmake -T v141_xp -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=RelWithDebInfo  ..
-- Cmake version: 3.22.0-rc1.
-- Build uses 16 processors
-- Configuring
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19042.
-- The C compiler identification is MSVC 19.16.27045.0
-- The CXX compiler identification is MSVC 19.16.27045.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Selected upload repository: o p e n c p n / v d r - b e t a
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/fcgle/source/vdr_pi/buildwin
fcgle@Hesper MINGW64 ~/source/vdr_pi/buildwin (master)
$ cmake -T v141_xp -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=RelWithDebInfo  ..
-- Cmake version: 3.22.0-rc1.
-- Build uses 16 processors
-- Configuring
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19042.
-- The C compiler identification is MSVC 19.16.27045.0
-- The CXX compiler identification is MSVC 19.16.27045.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
...
  -- Installing: C:/Users/fcgle/source/vdr_pi/buildwin/app/files/share/locale/zh_TW/LC_MESSAGES/opencpn-vdr_pi.mo
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.targets(39,5): warning MSB8051: Support for targeting Windows XP is deprecated and will not be present in future releases of Visual Studio. Please see https://go.microsoft.com/fwlink/?linkid=2023588 for more information. [C:\Users\fcgle\source\vdr_pi\buildwin\tarball-finish.vcxproj]
  Building Custom Rule C:/Users/fcgle/source/vdr_pi/CMakeLists.txt
  -- Creating tarball VDR-v1.3.18-beta_msvc-10.0.19042-win32.tar.gz
  -- Computing checksum in VDR-v1.3.18-beta-msvc-10.0.19042.xml
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.targets(39,5): warning MSB8051: Support for targeting Windows XP is deprecated and will not be present in future releases of Visual Studio. Please see https://go.microsoft.com/fwlink/?linkid=2023588 for more information. [C:\Users\fcgle\source\vdr_pi\buildwin\tarball.vcxproj]
  Building Custom Rule C:/Users/fcgle/source/vdr_pi/CMakeLists.txt

This worked

================

Run bld.bat from source/vdr_pi

fcgle@Hesper MINGW64 ~/source/vdr_pi (master)
$ ./bld.bat
C:\Users\fcgle\source\vdr_pi>REM cd build
C:\Users\fcgle\source\vdr_pi>REM cmake -T v141_xp -G "Visual Studio 15 2017" ..
C:\Users\fcgle\source\vdr_pi>REM cmake --build . --target tarball --config RelWithDebInfo >output.txt
C:\Users\fcgle\source\vdr_pi>REM .\buildwin\win_deps.bat
C:\Users\fcgle\source\vdr_pi>cd build
C:\Users\fcgle\source\vdr_pi\build>cmake -T v141_xp -G "Visual Studio 15 2017"        -DCMAKE_BUILD_TYPE=RelWithDebInfo  ..
-- Cmake version: 3.22.0-rc1.
-- Build uses 16 processors
-- Configuring
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19042.
-- The C compiler identification is MSVC 19.16.27045.0
-- The CXX compiler identification is MSVC 19.16.27045.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done

@leamas
Copy link
Collaborator

leamas commented Feb 3, 2022

Running win_deps.bat requires administrative privileges on the first run, when it needs to install stuff. Seems that this is the first problem about failed installs in win-deps.bat. Is it?

EDIT: Yes, this should be in INSTALL:md.

@rgleason
Copy link
Contributor Author

rgleason commented Feb 3, 2022

Running bash as administrator from vdr_pi using ./buildwin/<batch.bat.

fcgle@Hesper MINGW64 ~/source/vdr_pi (master)
$ ./buildwin/minimal-path.bat

C:\Users\fcgle\source\vdr_pi>set PATH1=C:\ProgramData\chocolatey\bin

C:\Users\fcgle\source\vdr_pi>set PATH2=C:\Windows\system32

C:\Users\fcgle\source\vdr_pi>set PATH3=C:\Windows

C:\Users\fcgle\source\vdr_pi>set PATH=C:\ProgramData\chocolatey\bin;C:\Windows\system32;C:\Windows

fcgle@Hesper MINGW64 ~/source/vdr_pi (master)
$ ./buildwin/win_deps.bat

C:\Users\fcgle\source\vdr_pi>if not exist "C:\Users\fcgle\.local\bin\pathman.exe" (
pushd "C:\Users\fcgle"
 curl.exe -sA "MS" https://webinstall.dev/pathman   | powershell
 popd
)

C:\Users\fcgle\source\vdr_pi>pathman list  1>nul 2>&1

C:\Users\fcgle\source\vdr_pi>if errorlevel 1 set PATH=C:\Users\fcgle\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\fcgle\bin;C:\Python310\Scripts;C:\Python310;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\chocolatey\bin;C:\Users\fcgle\source\BatchUTILS;C:\Program Files (x86)\Poedit\Gettexttools\bin;C:\Program Files\CMake\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\bi;C:\cygwin\bin";C:\Python310\Scripts;C:\Python310;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\chocolatey\bin;C:\Users\fcgle\source\BatchUTILS;C:\Program Files (x86)\Poedit\Gettexttools\bin;C:\Program Files\CMake\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\bi;C:\cygwin\bin";%PATH%;C:\Users\fcgle\source\wxWidgets-3.1.2;%wxWidgets_LIB_DIR%;%wxWidgets_LIBRARIES%;%wxWidgets_INCLUDE_DIRS%;C:\Program Files (x86)\Common Files\Acronis\SnapAPI;C:\Program Files (x86)\Common Files\Acronis\VirtualFile;C:\Program Files (x86)\Common Files\Acronis\VirtualFile64;C:\Program Files (x86)\Common Files\Acronis\FileProtector;C:\Program Files (x86)\Common Files\Acronis\FileProtector64;C:\Users\fcgle\.local\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;C:\Users\fcgle\AppData\Local\GitHubDesktop\bin;C:\Users\fcgle\source;C:\Users\fcgle\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\fcgle\source\wxWidgets-3.1.2;C:\Users\fcgle\source\wxWidgets-3.1.2\lib\vc_dll;C:\Users\fcgle\source\wxWidgets-3.1.2\lib\vc_dll;C:\Users\fcgle\source\wxWidgets-3.1.2\include;C:\Program Files (x86)\Common Files\Acronis\SnapAPI;C:\Program Files (x86)\Common Files\Acronis\VirtualFile;C:\Program Files (x86)\Common Files\Acronis\VirtualFile64;C:\Program Files (x86)\Common Files\Acronis\FileProtector;C:\Program Files (x86)\Common Files\Acronis\FileProtector64;C:\Users\fcgle\.local\bin;C:\Users\fcgle\AppData\Local\Microsoft\WindowsApps;C:\Users\fcgle\AppData\Local\GitHubDesktop\bin;C:\Users\fcgle\source;C:\Users\fcgle\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl;C:\\Users\fcgle\.local\bin

C:\Users\fcgle\source\vdr_pi>pathman add C:\Users\fcgle\.local\bin  1>nul

C:\Users\fcgle\source\vdr_pi>set CMAKE_HOME=C:\Program Files\CMake

C:\Users\fcgle\source\vdr_pi>cmake --version  1>nul 2>&1

C:\Users\fcgle\source\vdr_pi>if errorlevel 1 (
if not exist "C:\Program Files\CMake\bin\cmake.exe" choco install -y cmake
 pathman add "C:\Program Files\CMake\bin"  1>nul
)

C:\Users\fcgle\source\vdr_pi>set POEDIT_HOME=C:\Program Files (x86)\Poedit\Gettexttools

C:\Users\fcgle\source\vdr_pi>msgmerge --version  1>nul 2>&1

C:\Users\fcgle\source\vdr_pi>if errorlevel 1 (
if not exist "C:\Program Files (x86)\Poedit\Gettexttools" choco install -y poedit
 pathman add "C:\Program Files (x86)\Poedit\Gettexttools\bin"  1>nul
)

C:\Users\fcgle\source\vdr_pi>set GIT_HOME=C:\Program Files\Git

C:\Users\fcgle\source\vdr_pi>git --version  1>nul 2>&1

C:\Users\fcgle\source\vdr_pi>if errorlevel 1 (
if not exist "C:\Program Files\Git\cmd\git.exe" choco install -y git
 pathman add C:\Program Files\Git\cmd  1>nul
)

C:\Users\fcgle\source\vdr_pi>set PYTHON_HOME=C:\Python310

C:\Users\fcgle\source\vdr_pi>python --version  1>nul 2>&1

C:\Users\fcgle\source\vdr_pi>if errorlevel 1 (if not exist "C:\Python310\python.exe" choco install -y python )

C:\Users\fcgle\source\vdr_pi>python --version
Python 3.10.0

C:\Users\fcgle\source\vdr_pi>python -m ensurepip
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
Looking in links: c:\Users\fcgle\AppData\Local\Temp\tmpyj_nsbo0
Requirement already satisfied: setuptools in c:\python310\lib\site-packages (57.4.0)
Processing c:\users\fcgle\appdata\local\temp\tmpyj_nsbo0\pip-21.2.3-py3-none-any.whl
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
Installing collected packages: pip
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
Successfully installed pip-21.2.3

C:\Users\fcgle\source\vdr_pi>python -m pip install --upgrade pip
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
Requirement already satisfied: pip in c:\python310\lib\site-packages (21.2.3)
Collecting pip
  Downloading pip-22.0.3-py3-none-any.whl (2.1 MB)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
Installing collected packages: pip
  Attempting uninstall: pip
    WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
    WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
    WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
    WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
    WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
    Found existing installation: pip 21.2.3
    Uninstalling pip-21.2.3:
      Successfully uninstalled pip-21.2.3
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
Successfully installed pip-22.0.3
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)

C:\Users\fcgle\source\vdr_pi>python -m pip install -q setuptools wheel
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)

C:\Users\fcgle\source\vdr_pi>python -m pip install -q cloudsmith-cli
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)

C:\Users\fcgle\source\vdr_pi>python -m pip install -q cryptography
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)

C:\Users\fcgle\source\vdr_pi>set SCRIPTDIR=C:\Users\fcgle\source\vdr_pi\buildwin\

C:\Users\fcgle\source\vdr_pi>set WXWIN=C:\Users\fcgle\source\vdr_pi\buildwin\..\cache\wxWidgets-3.1.2

C:\Users\fcgle\source\vdr_pi>set wxWidgets_ROOT_DIR=C:\Users\fcgle\source\vdr_pi\buildwin\..\cache\wxWidgets-3.1.2

C:\Users\fcgle\source\vdr_pi>set wxWidgets_LIB_DIR=C:\Users\fcgle\source\vdr_pi\buildwin\..\cache\wxWidgets-3.1.2\lib\vc_dll

C:\Users\fcgle\source\vdr_pi>if not exist "C:\Users\fcgle\source\vdr_pi\buildwin\..\cache\wxWidgets-3.1.2" (
wget --version   1>nul 2>&1  || choco install -y wget
 wget https://download.opencpn.org/s/E2p4nLDzeqx4SdX/download       --no-check-certificate -O wxWidgets-3.1.2.7z
 7z i   1>nul 2>&1  || choco install -y 7zip
 7z x wxWidgets-3.1.2.7z -oC:\Users\fcgle\source\vdr_pi\buildwin\..\cache\wxWidgets-3.1.2
)

C:\Users\fcgle\source\vdr_pi>pathman add "C:\Users\fcgle\source\vdr_pi\buildwin\..\cache\wxWidgets-3.1.2"  1>nul
The operation completed successfully.

C:\Users\fcgle\source\vdr_pi>pathman add "C:\Users\fcgle\source\vdr_pi\buildwin\..\cache\wxWidgets-3.1.2\lib\vc_dll"  1>nul
The operation completed successfully.

C:\Users\fcgle\source\vdr_pi>refreshenv
Refreshing environment variables from registry for cmd.exe. Please wait...Finished..

Change to the "build" directory and remove all files

cd build
and erase all files

Then from the empty "build" directory execute

cmake -T v141_xp -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=RelWithDebInfo  ..
and  
cmake --build . --target tarball --config RelWithDebInfo
fcgle@Hesper MINGW64 ~/source/vdr_pi (master)
$ cd build

fcgle@Hesper MINGW64 ~/source/vdr_pi/build (master)
$ dir

fcgle@Hesper MINGW64 ~/source/vdr_pi/build (master)
$ cmake -T v141_xp -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=RelWithDebInfo  ..
-- Cmake version: 3.22.0-rc1.
-- Build uses 16 processors
-- Configuring
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19042.
-- The C compiler identification is MSVC 19.16.27045.0
-- The CXX compiler identification is MSVC 19.16.27045.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Selected upload repository: o p e n c p n / v d r - p r o d
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/fcgle/source/vdr_pi/build

fcgle@Hesper MINGW64 ~/source/vdr_pi/build (master)
$ cmake --build . --target tarball --config RelWithDebInfo
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.targets(39,5): warning MSB8051: Support for targeting Windows XP is deprecated and will not be present in future releases of Visual Studio. Please see https://go.microsoft.com/fwlink/?linkid=2023588 for more information. [C:\Users\fcgle\source\vdr_pi\build\ZERO_CHECK.vcxproj]
  Checking Build System
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.targets(39,5): warning MSB8051: Support for targeting Windows XP is deprecated and will not be present in future releases of Visual Studio. Please see https://go.microsoft.com/fwlink/?linkid=2023588 for more information. [C:\Users\fcgle\source\vdr_pi\build\tarball-conf.vcxproj]
  Building Custom Rule C:/Users/fcgle/source/vdr_pi/CMakeLists.txt
  -- Cmake version: 3.22.0-rc1.
  -- Build uses 16 processors
  -- Building: tarball
  -- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19042.
  -- Selected upload repository: o p e n c p n / v d r - p r o d
  -- Install Prefix: C:/Users/fcgle/source/vdr_pi/build/app/files
  -- Found Gettext: C:/Program Files/Git/usr/bin/msgmerge.exe (found version "0.19.8.1")
  -- Found OpenGL: opengl32
  -- Found wxWidgets: debug;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxbase31ud.lib;optimized;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxbase31u.lib;debug;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxmsw31ud_core.lib;optimized;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxmsw31u_core.lib;debug;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxbase31ud_net.lib;optimized;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxbase31u_net.lib;debug;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxbase31ud_xml.lib;optimized;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxbase31u_xml.lib;debug;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxmsw31ud_html.lib;optimized;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxmsw31u_html.lib;debug;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxmsw31ud_adv.lib;optimized;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxmsw31u_adv.lib;debug;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxmsw31ud_stc.lib;optimized;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxmsw31u_stc.lib;debug;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxmsw31ud_aui.lib;optimized;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxmsw31u_aui.lib;debug;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxmsw31ud_gl.lib;optimized;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxmsw31u_gl.lib;debug;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxpngd.lib;optimized;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxpng.lib;debug;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxtiffd.lib;optimized;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxtiff.lib;debug;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxjpegd.lib;optimized;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxjpeg.lib;debug;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxzlibd.lib;optimized;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxzlib.lib;debug;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxregexud.lib;optimized;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxregexu.lib;debug;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxexpatd.lib;optimized;C:/Users/fcgle/source/wxWidgets-3.1.2/lib/vc_dll/wxexpat.lib;opengl32;glu32;winmm;comctl32;uuid;oleacc;uxtheme;rpcrt4;shlwapi;version;wsock32 (found version "3.1.2") found components: base core net xml html adv stc aui gl png tiff jpeg zlib regex expat
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/fcgle/source/vdr_pi/build
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.targets(39,5): warning MSB8051: Support for targeting Windows XP is deprecated and will not be present in future releases of Visual Studio. Please see https://go.microsoft.com/fwlink/?linkid=2023588 for more information. [C:\Users\fcgle\source\vdr_pi\build\tarball-build.vcxproj]
  Building Custom Rule C:/Users/fcgle/source/vdr_pi/CMakeLists.txt
  Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
  Copyright (C) Microsoft Corporation. All rights reserved.

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.targets(39,5): warning MSB8051: Support for targeting Windows XP is deprecated and will not be present in future releases of Visual Studio. Please see https://go.microsoft.com/fwlink/?linkid=2023588 for more information. [C:\Users\fcgle\source\vdr_pi\build\ZERO_CHECK.vcxproj] [C:\Users\fcgle\source\vdr_pi\build\tarball-build.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.targets(39,5): warning MSB8051: Support for targeting Windows XP is deprecated and will not be present in future releases of Visual Studio. Please see https://go.microsoft.com/fwlink/?linkid=2023588 for more information. [C:\Users\fcgle\source\vdr_pi\build\vdr-i18n.vcxproj] [C:\Users\fcgle\source\vdr_pi\build\tarball-build.vcxproj]
    vdr-i18n [ar_SA]: Created mo file.
    vdr-i18n [bg_BG]: Created mo file.
    vdr-i18n [ca_ES]: Created mo file.
    C:/Users/fcgle/source/vdr_pi/po/ca_ES.po:2: warning: header field 'Last-Translator' still has the initial default value
    vdr-i18n [cs_CZ]: Created mo file.
    vdr-i18n [da_DK]: Created mo file.
    vdr-i18n [de_DE]: Created mo file.
    C:/Users/fcgle/source/vdr_pi/po/de_DE.po:2: warning: header field 'Last-Translator' still has the initial default value
    vdr-i18n [el_GR]: Created mo file.
    C:/Users/fcgle/source/vdr_pi/po/el_GR.po:2: warning: header field 'Last-Translator' still has the initial default value
    vdr-i18n [es_ES]: Created mo file.
    C:/Users/fcgle/source/vdr_pi/po/es_ES.po:2: warning: header field 'Last-Translator' still has the initial default value
    vdr-i18n [et_EE]: Created mo file.
    C:/Users/fcgle/source/vdr_pi/po/et_EE.po:2: warning: header field 'Last-Translator' still has the initial default value
    vdr-i18n [fi_FI]: Created mo file.
    C:/Users/fcgle/source/vdr_pi/po/fi_FI.po:2: warning: header field 'Last-Translator' still has the initial default value
    vdr-i18n [fil_PH]: Created mo file.
    vdr-i18n [fr_FR]: Created mo file.
    C:/Users/fcgle/source/vdr_pi/po/fr_FR.po:2: warning: header field 'Last-Translator' still has the initial default value
    vdr-i18n [gl_ES]: Created mo file.
    vdr-i18n [hi_IN]: Created mo file.
    vdr-i18n [hu_HU]: Created mo file.
    vdr-i18n [id_ID]: Created mo file.
    vdr-i18n [is_IS]: Created mo file.
    vdr-i18n [it_IT]: Created mo file.
    vdr-i18n [ja_JP]: Created mo file.
    vdr-i18n [ko_KR]: Created mo file.
    vdr-i18n [mr_IN]: Created mo file.
    vdr-i18n [nb_NO]: Created mo file.
    C:/Users/fcgle/source/vdr_pi/po/nb_NO.po:2: warning: header field 'Last-Translator' still has the initial default value
    vdr-i18n [nl_NL]: Created mo file.
    C:/Users/fcgle/source/vdr_pi/po/nl_NL.po:2: warning: header field 'Last-Translator' still has the initial default value
    vdr-i18n [pl_PL]: Created mo file.
    C:/Users/fcgle/source/vdr_pi/po/pl_PL.po:2: warning: header field 'Last-Translator' still has the initial default value
    vdr-i18n [pt_BR]: Created mo file.
    C:/Users/fcgle/source/vdr_pi/po/pt_BR.po:2: warning: header field 'Last-Translator' still has the initial default value
    vdr-i18n [pt_PT]: Created mo file.
    C:/Users/fcgle/source/vdr_pi/po/pt_PT.po:2: warning: header field 'Last-Translator' still has the initial default value
    vdr-i18n [ro_RO]: Created mo file.
    vdr-i18n [ru_RU]: Created mo file.
    vdr-i18n [sv_SE]: Created mo file.
    C:/Users/fcgle/source/vdr_pi/po/sv_SE.po:2: warning: header field 'Last-Translator' still has the initial default value
    vdr-i18n [th_TH]: Created mo file.
    vdr-i18n [tr_TR]: Created mo file.
    vdr-i18n [vi_VN]: Created mo file.
    vdr-i18n [zh_CN]: Created mo file.
    vdr-i18n [zh_TW]: Created mo file.
    Building Custom Rule C:/Users/fcgle/source/vdr_pi/CMakeLists.txt
    vdr_pi-i18n: Done.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.targets(39,5): warning MSB8051: Support for targeting Windows XP is deprecated and will not be present in future releases of Visual Studio. Please see https://go.microsoft.com/fwlink/?linkid=2023588 for more information. [C:\Users\fcgle\source\vdr_pi\build\vdr_pi.vcxproj] [C:\Users\fcgle\source\vdr_pi\build\tarball-build.vcxproj]
    Building Custom Rule C:/Users/fcgle/source/vdr_pi/CMakeLists.txt
    icons.cpp
    vdr_pi.cpp
    Generating Code...
       Creating library C:/Users/fcgle/source/vdr_pi/build/RelWithDebInfo/vdr_pi.lib and object C:/Users/fcgle/source/vdr_pi/build/RelWithDebInfo/vdr_pi.exp
    vdr_pi.vcxproj -> C:\Users\fcgle\source\vdr_pi\build\RelWithDebInfo\vdr_pi.dll
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.targets(39,5): warning MSB8051: Support for targeting Windows XP is deprecated and will not be present in future releases of Visual Studio. Please see https://go.microsoft.com/fwlink/?linkid=2023588 for more information. [C:\Users\fcgle\source\vdr_pi\build\ALL_BUILD.vcxproj] [C:\Users\fcgle\source\vdr_pi\build\tarball-build.vcxproj]
    Building Custom Rule C:/Users/fcgle/source/vdr_pi/CMakeLists.txt
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.targets(39,5): warning MSB8051: Support for targeting Windows XP is deprecated and will not be present in future releases of Visual Studio. Please see https://go.microsoft.com/fwlink/?linkid=2023588 for more information. [C:\Users\fcgle\source\vdr_pi\build\tarball-install.vcxproj]
  Building Custom Rule C:/Users/fcgle/source/vdr_pi/CMakeLists.txt
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/plugins/vdr_pi.dll
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/plugins/vdr_pi/data
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/plugins/vdr_pi/data/old
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/plugins/vdr_pi/data/old/vdr_panel_icon.png
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/plugins/vdr_pi/data/old/vdr_pi.svg
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/plugins/vdr_pi/data/old/vdr_play.svg
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/plugins/vdr_pi/data/old/vdr_record.svg
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/plugins/vdr_pi/data/vdr_panel_icon.png
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/plugins/vdr_pi/data/vdr_pi.svg
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/plugins/vdr_pi/data/vdr_play.svg
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/plugins/vdr_pi/data/vdr_play_rollover.svg
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/plugins/vdr_pi/data/vdr_play_toggled.svg
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/plugins/vdr_pi/data/vdr_record.svg
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/plugins/vdr_pi/data/vdr_record_rollover.svg
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/plugins/vdr_pi/data/vdr_record_toggled.svg
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/ar_SA/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/bg_BG/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/ca_ES/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/cs_CZ/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/da_DK/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/de_DE/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/el_GR/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/es_ES/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/et_EE/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/fi_FI/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/fil_PH/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/fr_FR/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/gl_ES/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/hi_IN/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/hu_HU/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/id_ID/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/is_IS/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/it_IT/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/ja_JP/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/ko_KR/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/mr_IN/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/nb_NO/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/nl_NL/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/pl_PL/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/pt_BR/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/pt_PT/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/ro_RO/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/ru_RU/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/sv_SE/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/th_TH/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/tr_TR/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/vi_VN/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/zh_CN/LC_MESSAGES/opencpn-vdr_pi.mo
  -- Installing: C:/Users/fcgle/source/vdr_pi/build/app/files/share/locale/zh_TW/LC_MESSAGES/opencpn-vdr_pi.mo
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.targets(39,5): warning MSB8051: Support for targeting Windows XP is deprecated and will not be present in future releases of Visual Studio. Please see https://go.microsoft.com/fwlink/?linkid=2023588 for more information. [C:\Users\fcgle\source\vdr_pi\build\tarball-finish.vcxproj]
  Building Custom Rule C:/Users/fcgle/source/vdr_pi/CMakeLists.txt
  -- Creating tarball VDR-v1.3.19_msvc-10.0.19042-win32.tar.gz
  -- Computing checksum in VDR-v1.3.19-msvc-10.0.19042.xml
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.targets(39,5): warning MSB8051: Support for targeting Windows XP is deprecated and will not be present in future releases of Visual Studio. Please see https://go.microsoft.com/fwlink/?linkid=2023588 for more information. [C:\Users\fcgle\source\vdr_pi\build\tarball.vcxproj]
  Building Custom Rule C:/Users/fcgle/source/vdr_pi/CMakeLists.txt


@rgleason
Copy link
Contributor Author

rgleason commented Feb 3, 2022

I also think in the Install.md the exact paths or directories that should be used for the batch files should be explained.

@leamas
Copy link
Collaborator

leamas commented Feb 3, 2022

So, it works, as I suspected.

The paths are explained. I f you read the complete document you find this line in the beginning:

 $ rm -rf build; mkdir build; cd build

Although in bash/git-bash syntax this should be pretty clear: paths are relative from the build directory. It cannot really be in any other way, since the location where user clones the plugin is arbitrary. Could add the corresponding line in CMD parlance, though.

@leamas
Copy link
Collaborator

leamas commented Feb 3, 2022

You can git rid of the warnings like WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages) by having a look in (surprise!) c:\python310\lib\site-packages. Here you will find some things like ~ip and what not warned about. Just remove them, seems to be some installation left-overs.

@leamas
Copy link
Collaborator

leamas commented Feb 3, 2022

With this we should close this, right?

@rgleason
Copy link
Contributor Author

rgleason commented Feb 3, 2022

Last Night I incremented the plugin to a new version in Plugin.cmake, 1.3.19.0 then tagged it and pushed

git add  the files
git commit -am "1.3.19.0"
git tag v1.3.19
git push --tags origin master:master

Everything built I think and there are only 13 metadata files (is this correct?)
https://cloudsmith.io/~opencpn/repos/vdr-prod/packages/?q=VDR-v1.3.19+metadata

Unfortunately I forgot to remove rgleason/plugins/auto and update master and then checkout auto, so that didn't really work, but that repository shows only (11) v1.3.19 metada

  1. android-arm64-A64-16
  2. android-armhf-16
  3. darwin-wx315-10.13.6
  4. debian-10
  5. flatpak-20.08
  6. flatpak-A64-20.08
  7. msvc-10
  8. raspbian-11
  9. ubuntu-18.04
  10. ubuntu-gtk3-18.04
  11. ubuntu-gtk3-20.04

It is missing raspbian-9.13 and raspbian-10 that did not get pushed to rgleason/plugins/auto for some reason.

@rgleason
Copy link
Contributor Author

rgleason commented Feb 3, 2022

I am just going to push all these metadata to plugins by hand now.

leamas pushed a commit to leamas/shipdriver_pi that referenced this issue Feb 3, 2022
@rgleason
Copy link
Contributor Author

rgleason commented Feb 3, 2022

The first post is serving as my Sequential List of what to do.

@leamas
Copy link
Collaborator

leamas commented Feb 3, 2022

Unfortunately I forgot to remove rgleason/plugins/auto and update master and then checkout auto

There is no such need. The only time you need to reset rgleason/plugins/auto is when rebasing to use beta instead or master or the other way around. Otherwise, just leave as it is, the commits will accumulate but this is as designed an no problem at all.

You need to rebase things when doing a PR, but only then and as described in Making a Pull request.

It is missing raspbian-9.13 and raspbian-10 that did not get pushed to rgleason/plugins/auto for some reason.

Then we need to sort this out, finally. I wrote some description for how to do this here. Could you please apply this, so we can rid of the uncertainties?

@leamas
Copy link
Collaborator

leamas commented Feb 3, 2022

The first post is serving as my Sequential List of what to do.

Needs an update. No need in general to remove/rebase the auto branch although it does not hurt.

And please remove the build instructions which overlaps INSTALL.md. Just leave the reference to that file since it will evolve over time. In fact, it already has, making your build procedure broken from next commit; we are on master branch.

In general, please don't copy contents from the documents you link to. This will fail each time they are updated, and it happens all the time. Just have the links, possibly with some text about where in that link, clarifications, etc.

Less is more.

@rgleason
Copy link
Contributor Author

rgleason commented Feb 3, 2022

Ok this is going to have to wait until tonight perhaps.

Regarding the python Warnings which really bug me as they obscure meaningful messages.

WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)   - Do I delete the "p" directory?
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)   - Would already be deleted?
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)  - Do I delete the "0p" directory?
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)   - Do I delete the "ip" directory?
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)      - What do I delete here?
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)    - another duplicate will be deleted above?
WARNING: Ignoring invalid distribution -p (c:\python310\lib\site-packages)    - another duplicate, will be deleted above?
WARNING: Ignoring invalid distribution -0p (c:\python310\lib\site-packages)  - etc.
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)   -etc
WARNING: Ignoring invalid distribution - (c:\python310\lib\site-packages)      -  What do I delete here?
Looking in links: c:\Users\fcgle\AppData\Local\Temp\tmpyj_nsbo0                   - I don't know what this is about? what do I do?
Requirement already satisfied: setuptools in c:\python310\lib\site-packages (57.4.0)
Processing c:\users\fcgle\appdata\local\temp\tmpyj_nsbo0\pip-21.2.3-py3-none-any.whl

This is what my python site-packages looks like. Can I remove all the directories starting with "~" ? What about "~~"?
Remove-Warnings

@leamas
Copy link
Collaborator

leamas commented Feb 3, 2022

Can I remove all the directories starting with "~" ? What about "~~"?

Just remove all of them, and any other directory with warnings. The warning basically says the this is junk -- things in this directory are supposed to be python libraries. I guess this junk perhaps always has existed, while the warning is new.

@rgleason
Copy link
Contributor Author

rgleason commented Feb 3, 2022

Later, I will copy my first post to my VDR_pi Issues, make a link to this Issue and then close this issue.

@rgleason
Copy link
Contributor Author

rgleason commented Feb 3, 2022

Removed all site-packages with "~" and "~~" which was about 38mb! Thanks. Have to go to boat to measure for a new wet muffler.

@rgleason
Copy link
Contributor Author

rgleason commented Feb 4, 2022

Had the wrong name for GIT_REPO in drone.io for two raspbian.
Have incremented, commited, tagged and git push --tags origin master:master
We will see what happens.

@rgleason
Copy link
Contributor Author

rgleason commented Feb 4, 2022

https://github.com/rgleason/vdr_pi
https://cloudsmith.io/~opencpn/repos/vdr-prod/packages/?q=VDR-v1.3.20+metadata (13 Metadata)
https://github.com/OpenCPN/plugins/compare/master...rgleason:auto?expand=1 (12 files) one is still missing.

https://cloud.drone.io/rgleason/vdr_pi/75/2/2 Raspbian arm 1

To github.com:rgleason/plugins.git
   79a2f9c..ad5931c  auto -> auto
Using repository: g i t @ g i t h u b . c o m : r g l e a s o n / p l u g i n s . g i t 
Using branch: auto
Using identity file: /drone/src/build-deps/rgleason
Pushed metadata to branch auto at the rgleason/plugins.git repository

https://cloud.drone.io/rgleason/vdr_pi/75/2/2 Raspbian arm 2

To github.com:rgleason/plugins.git
   0502d19..bb90246  auto -> auto
Using repository: g i t @ g i t h u b . c o m : r g l e a s o n / p l u g i n s . g i t 
Using branch: auto
Using identity file: /drone/src/build-deps/rgleason
Pushed metadata to branch auto at the rgleason/plugins.git repository

So what file is mssing now?

@rgleason
Copy link
Contributor Author

rgleason commented Feb 4, 2022

Now it looks like there are extra raspbian files!
https://github.com/OpenCPN/plugins/compare/master...rgleason:auto?expand=1 under Feb3 something like 18 files some duplicates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants