[Qt-creator] Environment variable setting per platform
Tobias Hunger
tobias.hunger at gmail.com
Fri Aug 5 21:59:34 CEST 2016
Hi Petric,
On Fri, Aug 5, 2016 at 8:25 PM, Petric Frank <pfrank at gmx.de> wrote:
<snip>
> To be more precise on my actual problem - i had to execute a pre-build step
> (here: cppumaker of libreoffice). The tool executable requres some shared
> libs (*.so in Linux, *.dll in Windows) to be able to run. These are not in
> the search path.
>
> Under Linux i had to set LD_LIBRARY_PATH, under Windows i have to extend the
> PATH variable.
>
> I tried to set LD_LIBRARY_PATH in the qmake file, but it did not work.
I am no qmake expert, sorry.
But I would not expect that kind of machine specific configuration to
be set up by the build system: Any machine that builds the code will
probably need a different LD_LIBRARY_PATH and PATH to be set --
depending on where the stuff is installed on that particular system. I
would have the build system check whether the necessary tools can be
run and complain with a clear error message if they fail.
Then I would ask users to set the system environment properly and be
done with that:-) If you admin all the developer machines doing that
should not be too hard... not much harder than installing all the
required tools in the first place.
Best Regards,
Tobias
More information about the Qt-creator
mailing list