Important: Please read the Qt Code of Conduct -

Modifying PATH variable from .pro files.

  • I'm trying to create ActiveX control, but building fails because qmake tries to load my ActiveX control during building and it can't find dependencies ( other libraries used by my control and built to the same directory ).

    The one solution I've found was to add build directory to the build environment PATH variable in QtCreator. I had to put full path ( different for each configuration ) because just adding %{buildDir} didn't work (?). But this configuration is not shared and each user has to remember to set its own paths when configuring project, so I'm looking for a way to move those settings to the project files.

    Is there any way to modify system environment from within .pro files ?

Log in to reply