[Development] Build failure: GUI example being compiled even with -no-gui -no-widgets

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Fri Aug 29 20:33:17 CEST 2014


Yes, thats what I did. Enabled GUI, but kept widgets disabled. Now it
compiles fine.

Thanks,
-mandeep


On Fri, Aug 29, 2014 at 12:15 AM, Rutledge Shawn
<Shawn.Rutledge at digia.com> wrote:
>
> On 29 Aug 2014, at 2:02 AM, Mandeep Sandhu wrote:
>
>> All,
>>
>> I'm getting a build failure when the "hellowindow" example is being compiled.
>>
>> Configure options:
>> $ ../qt5/qtbase/configure -opensource -confirm-license
>> -developer-build -release -no-gui -no-widgets -no-cups -no-dbus
>> -no-xcb
>>
>> Build output:
>> ...
>> cd hellowindow/ && ( test -e Makefile ||
>> /home/msandhu/work/qt5base-x11/bin/qmake
>> /home/msandhu/work/qt5/qtbase/examples/opengl/hellowindow/hellowindow.pro
>> -o Makefile ) && make -f Makefile
>> Project ERROR: Unknown module(s) in QT: gui gui-private
>> ...
>>
>> As you can see, I've disabled GUI (and widgets) in my configure
>> options and its still trying to build a GUI example. Is this a bug or
>> am I missing something obvious?
>
> QWindow is a GUI feature.  You can probably still use -no-widgets, but not -no-gui.  In any case, that example does not link with widgets even if they have been built: you can verify with ldd that the only Qt libs that it links with are libQt5Gui.so.5 and libQt5Core.so.5.  Therefore running that example will not load the widgets lib into memory.



More information about the Development mailing list