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
Start at adjusting dependencies to match what windeployqt suggests #537
Changes from all commits
027cedd
3bea9c8
d502851
044ae95
227b9bf
600ee0d
e9329e0
28325bf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,6 +177,11 @@ if( APPLE ) | |
VERBATIM | ||
) | ||
|
||
#add_custom_command(TARGET ${target_name} | ||
# POST_BUILD | ||
# COMMAND ${QT_MACDEPLOY_QT} $<TARGET_BUNDLE_DIR:${target_name}> -verbose=2 | ||
#) | ||
Comment on lines
+180
to
+183
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we use macdeployqt, and linuxdeployqt? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Eventually I think so. When I ran macdeployqt (and kept all the other remaining install steps) the app in the resulting package crashed, I don't know why. |
||
|
||
elseif( UNIX ) | ||
|
||
foreach(LIB ${QT_LIBS} ${QT_WEB_LIBS}) | ||
|
@@ -350,10 +355,22 @@ if( NOT APPLE ) | |
|
||
install(PROGRAMS ${QtWebEngineProcess} DESTINATION bin COMPONENT OpenStudioApp ) | ||
|
||
install(PROGRAMS $<TARGET_FILE_DIR:${target_name}>/D3Dcompiler_47.dll DESTINATION bin/ COMPONENT OpenStudioApp) | ||
install(PROGRAMS $<TARGET_FILE_DIR:${target_name}>/opengl32sw.dll DESTINATION bin/ COMPONENT OpenStudioApp) | ||
|
||
foreach(LIB ${QT_LIBS} ${QT_WEB_LIBS}) | ||
install(PROGRAMS $<TARGET_FILE_DIR:${target_name}>/$<TARGET_FILE_NAME:${LIB}> DESTINATION bin/ COMPONENT OpenStudioApp) | ||
endforeach() | ||
|
||
list(APPEND QT_DIRS iconengines) | ||
list(APPEND QT_DIRS imageformats) | ||
list(APPEND QT_DIRS networkinformation) | ||
list(APPEND QT_DIRS position) | ||
list(APPEND QT_DIRS tls) | ||
foreach(DIR ${QT_DIRS}) | ||
install(DIRECTORY $<TARGET_FILE_DIR:${target_name}>/${DIR} DESTINATION bin/ COMPONENT OpenStudioApp) | ||
endforeach() | ||
Comment on lines
+365
to
+372
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are those needed? are they needed on other platforms? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I see your comment above, "Those all seem plausible (except maybe Qt6SerialPort) but I am not sure if it is too heavy. Total extra size is 2.67 MB so maybe best to just add them." |
||
|
||
elseif(UNIX) | ||
# Let fixup_bundle do that for us | ||
#install(PROGRAMS $<TARGET_FILE:openstudio::openstudiolib> DESTINATION bin COMPONENT OpenStudioApp ) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We aren't using QSvg nor do we have any .svg files in the repo. Why would we need it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not 100% sure, Qt might be using SVG internally, I think some of our web assests use SVG. The app does load that dll when it is installed so I figured it was good to just include it:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just checked out the source code for windeployqt, what it does is to find some DLLs you do use, then it reads what this DLL depends on and includes them as well. (findDependentQtLibraries -> readExecutable -> readPeExecutable)