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

Missing features #4

Open
traversaro opened this issue Jun 13, 2017 · 9 comments
Open

Missing features #4

traversaro opened this issue Jun 13, 2017 · 9 comments

Comments

@traversaro
Copy link
Member

To use the vcpkg-binary-installer-generator with the QtIFW CPack backend to produce YARP and ICUB binaries installer, we need to make sure that we implement two features that we have in the existing NSIS installers:

  • Optionally modify the environmental variables to make sure that the installer libraries can be found. In my tests, it will be sufficient to add <prefix> and <prefix>/debug to the CMAKE_PREFIX_PATH enviromental variables, and <prefix>/tools to CMAKE_PROGRAM_PATH.
  • Support for quietly install the contents of the installer from the command line. This is particularly useful for CI system such as AppVeyor. In particular, if we plan to support the online installer, it would be particular useful to have the support for specifying the specific libraries that you want to install from the command line.

cc @drdanz

@drdanz
Copy link
Member

drdanz commented Jun 13, 2017

I think that <prefix>/bin should go to PATH as well. See also microsoft/vcpkg#1176

@drdanz
Copy link
Member

drdanz commented Jun 13, 2017

@traversaro
Copy link
Member Author

Related: https://bugreports.qt.io/browse/QTIFW-166 .
I think it is not possible to to pass the list of components to install from the command line, but each project can use its own script to install the desired dependencies.

@traversaro
Copy link
Member Author

Related: a vcpkg PR adding a IFW export type has been proposed in microsoft/vcpkg#1734 .

@podsvirov
Copy link

Hello @traversaro, please review latest changes in microsoft/vcpkg#1734.

@traversaro
Copy link
Member Author

Both features kinda of implemented in e3fbfb1 .

@diegoferigo
Copy link
Member

diegoferigo commented Aug 2, 2018

@traversaro On a headless system you can create a script that presses buttons and fills the fields. You can find an example for QtCreator here.

You can then use it as follows:

RUN cd /tmp &&\
    wget http://download.qt.io/official_releases/qtcreator/${QTCREATOR_VERSION%.*}/${QTCREATOR_VERSION}/qt-creator-opensource-linux-x86_64-$QTCREATOR_VERSION.run &&\
    chmod +x qt-creator-opensource-linux-x86_64-${QTCREATOR_VERSION}.run &&\
    ./qt-creator-opensource-linux-x86_64-${QTCREATOR_VERSION}.run --platform minimal --script QtCreatorSetup.js &&\
    rm /tmp/qt-creator-opensource-linux-x86_64-${QTCREATOR_VERSION}.run /tmp/QtCreatorSetup.js

@traversaro
Copy link
Member Author

@diegoferigo Exactly, this is what I described in the previous comment and committed in the repo at https://github.com/robotology-playground/vcpkg-binary-installer-generator/blob/improv/silent-install.qs .
What I do not know if that will work on (Windows) headless systems such as AppVeyor, as the windows is still created, but just hidden (see http://blog.qt.io/blog/2015/04/07/qt-installer-framework-2-0-released/#comment-1195532 ) .

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

4 participants