2011/7/24 Jérôme Lodewyck wrote:
> Le samedi 23 juillet 2011, Mojca Miklavec a écrit :
>> And what about Qt?
>>
>> Last time when I tried it (after patching some flags) it was stuck at
>>
>> ./configure --enable-qt
>>
>> qtterminal/QtGnuplotWidget.cpp:280:34: error: ui_QtGnuplotSettings.h:
>> No such file or directory
>>
>> I can only confirm that ui_QtGnuplotSettings.h was missing in gnuplot
>> and that it was referenced from the file mentioned above.
>>
>> I'm willing to help to sort out the missing flags, but I cannot help
>> if files are missing.
First of all, here is what I did:
export QT_CFLAGS="-I/Library/Frameworks/QtCore.framework/Headers
-I/Library/Frameworks/QtGui.framework/Headers
-I/Library/Frameworks/QtNetwork.framework/Headers
-I/Library/Frameworks/QtSvg.framework/Headers"
export QT_LIBS="-F/Library/Frameworks -framework QtCore -framework
QtGui -framework QtNetwork -framework QtSvg"
./configure --enable-qt
> ui_QtGnuplotSettings.h is not missing. It should be generated by the build
> system from the file QtGnuplotSettings.ui, using the uic program. The command
> for the generation of this file is located at lines 107 and 141 in
> gnuplot/src/Makefile.am
> I am no Apple expert, so I cannot say what goes wrong with the generation of
> this file in mac os. A workaround would be to manually generate this file :
>
> cd gnuplot/src/qtterminal
> uic -o ui_QtGnuplotSettings QtGnuplotSettings.ui
I had to use
uic -o ui_QtGnuplotSettings.h QtGnuplotSettings.ui
(I had to add ".h")
> the same goes for moc_* files.
I didn't know what exactly I had to do with moc_ files. After some
inspection I realized that I had the following line in Makefile:
MOC =
so after configuring I edited it manually to read
MOC = moc
and then the build went through and qt terminal is available.
Sadly I cannot test it if it works yet. I get
Terminal type set to 'qt'
but I was building on a remote machine and I have no GUI access to it.
I will retry on the local machine once I remember what exactly I have
to install (if that is SDK or just libraries). But the SDK is 1 GB and
it will take time before I can download it from my current location.
In the meantime I can still help figuring out what to do with uic/moc
& how to recognize Qt libaries (QT_CFLAGS, QT_LIBS) without having to
specify them manually.
Mojca
|