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

win installer: CPack error when optional targets are missing #651

Open
tkemmer opened this issue Apr 25, 2018 · 0 comments
Open

win installer: CPack error when optional targets are missing #651

tkemmer opened this issue Apr 25, 2018 · 0 comments

Comments

@tkemmer
Copy link
Contributor

tkemmer commented Apr 25, 2018

On Windows 10/MSVC 14, package creation fails when certain (optional) components have not been built:

CPack: Create package
CPack Error: Problem running NSIS command: "C:/Program Files (x86)/NSIS/makensis.exe" "C:/Users/admin/git/ball/build15/_CPack_Packages/win64/NSIS/project.nsi"
Please check C:/Users/admin/git/ball/build15/_CPack_Packages/win64/NSIS/NSISOutput.log for errors
CPack Error: Problem compressing the directory
CPack Error: Error when generating package: BALL
NMAKE : fatal error U1077: "echo": Rückgabe-Code "0x1"
Stop.

Log:

warning 6000: unknown variable/constant "{DocumentationHTML}" detected, ignoring (macro:Deselect_required_by_Runtime:16)
Usage: SectionGetFlags section_index $(user_var: output flags)
Error in macro Deselect_required_by_Runtime on macroline 16
Error in macro MaybeSelectionChanged on macroline 10
Error in macro SectionList on macroline 7
Error in script "C:/Users/admin/git/ball/build15/_CPack_Packages/win64/NSIS/project.nsi" on line 10312 -- aborting creation process

Indeed, DocumentationHTML does not appear as a Section in project.nsi (in contrast to DocumentationExamples) when the documentation has not been built. The same error should occur for DocumentationPDF.

@tkemmer tkemmer added this to the BALL 1.5 milestone Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant