Hello,
I tried to compile tqtinterface, in this way:
svn co svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface cd tqtinterface make -f admin/Makefile.common ./configure make
Sources are compiled fine, but libtqt.so.4.2.0 is not created, only libtqt.la
Hello,
I tried to compile tqtinterface, in this way:
svn co svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface cd tqtinterface make -f admin/Makefile.common ./configure make
Sources are compiled fine, but libtqt.so.4.2.0 is not created, only libtqt.la
-- Serghei
Are you attempting to compile for Qt3 or Qt4? Qt4 support is NOT READY, and will not be able to compile even kdelibs for many months.
If you are compiling for Qt3, then something might be amiss in your build setup. Please make sure you have all Qt development headers installed, and if you don't mind posting the full output of the commands you listed above I may be able to shed more light on the problem.
Thanks!
Tim
On Monday 30 August 2010 20:36:33 Timothy Pearson wrote:
Hello,
I tried to compile tqtinterface, in this way:
svn co svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface cd tqtinterface make -f admin/Makefile.common ./configure make
Sources are compiled fine, but libtqt.so.4.2.0 is not created, only libtqt.la
-- Serghei
Are you attempting to compile for Qt3 or Qt4? Qt4 support is NOT READY, and will not be able to compile even kdelibs for many months.
Actually --enable-qt4 is not recognized by configure script at all. I tried with plain "./configure", without parameters.
If you are compiling for Qt3, then something might be amiss in your build setup. Please make sure you have all Qt development headers installed, and if you don't mind posting the full output of the commands you listed above I may be able to shed more light on the problem.
I using gentoo and I have already KDE-3 installed, so my QT-3 setup is fine, I think.
I attached folowing files:
log1.txt is output of "make -f admin/Makefile.common" log2.txt is output of "./configure" log3.txt is output of "make"
Also, I attached config.log
I'm not sure what meaning the message "You are attempting to compile Trinity without the Trinity Qt Interface installed. Please install libtqtinterface-dev and try again!"
On Monday 30 August 2010 20:36:33 Timothy Pearson wrote:
Hello,
I tried to compile tqtinterface, in this way:
svn co svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface cd tqtinterface make -f admin/Makefile.common ./configure make
Sources are compiled fine, but libtqt.so.4.2.0 is not created, only libtqt.la
-- Serghei
Are you attempting to compile for Qt3 or Qt4? Qt4 support is NOT READY, and will not be able to compile even kdelibs for many months.
Actually --enable-qt4 is not recognized by configure script at all. I tried with plain "./configure", without parameters.
If you are compiling for Qt3, then something might be amiss in your build setup. Please make sure you have all Qt development headers installed, and if you don't mind posting the full output of the commands you listed above I may be able to shed more light on the problem.
I using gentoo and I have already KDE-3 installed, so my QT-3 setup is fine, I think.
I attached folowing files:
log1.txt is output of "make -f admin/Makefile.common" log2.txt is output of "./configure" log3.txt is output of "make"
Also, I attached config.log
I'm not sure what meaning the message "You are attempting to compile Trinity without the Trinity Qt Interface installed. Please install libtqtinterface-dev and try again!"
-- Serghei
Ahh...this might be the problem: "generated by GNU Autoconf 2.65."
Try it with autoconf 2.63. I have not had the time to patch the automake/autoconf system to work correctly with 2.64 and above; would you like to try your hand at it?
Tim
On Tuesday 31 August 2010 05:01:40 Timothy Pearson wrote:
[...]
Ahh...this might be the problem: "generated by GNU Autoconf 2.65."
Try it with autoconf 2.63. I have not had the time to patch the automake/autoconf system to work correctly with 2.64 and above; would you like to try your hand at it?
With automake 2.63 compiling well, but linker stopped with this error:
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../crti.o /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/crtbeginS.o .libs/tqt.o .libs/tqaccel.o .libs/tqaccessible.o .libs/tqaction.o .libs/tqapplication.o .libs/tqasyncio.o .libs/tqbuttongroup.o .libs/tqbutton.o .libs/tqcanvas.o .libs/tqcdestyle.o .libs/tqcheckbox.o .libs/tqclipboard.o .libs/tqcolordialog.o .libs/tqcombobox.o .libs/tqcommonstyle.o .libs/tqdatabrowser.o .libs/tqdatatable.o .libs/tqdataview.o .libs/tqdatetimeedit.o .libs/tqdesktopwidget.o .libs/tqdial.o .libs/tqdialog.o .libs/tqdns.o .libs/tqdockarea.o .libs/tqdockwindow.o .libs/tqdragobject.o .libs/tqerrormessage.o .libs/tqeventloop.o .libs/tqframe.o .libs/tqftp.o .libs/tqfiledialog.o .libs/tqfontdialog.o .libs/tqgl.o .libs/tqgplugin.o .libs/tqgrid.o .libs/tqgridview.o .libs/tqgroupbox.o .libs/tqguardedptr.o .libs/tqhbox.o .libs/tqhbuttongroup.o .libs/tqheader.o .libs/tqhgroupbox.o .libs/tqhttp.o .libs/tqiconview.o .libs/tqimageformatplugin.o .libs/tqinputcontext.o .libs/tqinputdialog.o .libs/tqlabel.o .libs/tqlayout.o .libs/tqlcdnumber.o .libs/tqlineedit.o .libs/tqlistbox.o .libs/tqlistview.o .libs/tqlocalfs.o .libs/tqmainwindow.o .libs/tqmenubar.o .libs/tqmessagebox.o .libs/tqmotifplusstyle.o .libs/tqmotifstyle.o .libs/tqmultilineedit.o .libs/tqnetworkprotocol.o .libs/tqnp.o .libs/tqobjectcleanuphandler.o .libs/tqobject.o .libs/tqplatinumstyle.o .libs/tqpopupmenu.o .libs/tqprintdialog.o .libs/tqprocess.o .libs/tqprogressbar.o .libs/tqprogressdialog.o .libs/tqpushbutton.o .libs/tqradiobutton.o .libs/tqrangecontrol.o .libs/tqscrollbar.o .libs/tqscrollview.o .libs/tqsemimodal.o .libs/tqserversocket.o .libs/tqsessionmanager.o .libs/tqsgistyle.o .libs/tqsignal.o .libs/tqsignalmapper.o .libs/tqsizegrip.o .libs/tqslider.o .libs/tqsocket.o .libs/tqsocketnotifier.o .libs/tqsound.o .libs/tqspinbox.o .libs/tqsplashscreen.o .libs/tqsplitter.o .libs/tqsqldatabase.o .libs/tqsqldriver.o .libs/tqsqldriverplugin.o .libs/tqsqlform.o .libs/tqsqlquery.o .libs/tqstatusbar.o .libs/tqstyle.o .libs/tqstyleplugin.o .libs/tqstylesheet.o .libs/tqtabbar.o .libs/tqtabdialog.o .libs/tqtable.o .libs/tqtabwidget.o .libs/tqtextbrowser.o .libs/tqtextcodecplugin.o .libs/tqtextedit.o .libs/tqtextview.o .libs/tqtimer.o .libs/tqtoolbar.o .libs/tqtoolbox.o .libs/tqtoolbutton.o .libs/tqtooltip.o .libs/tqtranslator.o .libs/tqurloperator.o .libs/tqvalidator.o .libs/tqvbox.o .libs/tqvbuttongroup.o .libs/tqvgroupbox.o .libs/tqwidget.o .libs/tqwidgetplugin.o .libs/tqwidgetstack.o .libs/tqwindowsstyle.o .libs/tqwizard.o .libs/tqworkspace.o .libs/tq1xcompatibility.o .libs/tqabstractlayout.o .libs/tqasciicache.o .libs/tqasciidict.o .libs/tqasyncimageio.o .libs/tqbig5codec.o .libs/tqbitarray.o .libs/tqbitmap.o .libs/tqbrush.o .libs/tqbuffer.o .libs/tqcache.o .libs/tqcleanuphandler.o .libs/tqcolor.o .libs/tqcompactstyle.o .libs/tqconnection.o .libs/tqcstring.o .libs/tqcursor.o .libs/tqdatastream.o .libs/tqdatetime.o .libs/tqdeepcopy.o .libs/tqdict.o .libs/tqdir.o .libs/tqdom.o .libs/tqdrawutil.o .libs/tqdropsite.o .libs/tqeditorfactory.o .libs/tqeucjpcodec.o .libs/tqeuckrcodec.o .libs/tqevent.o .libs/tqfile.o .libs/tqfileinfo.o .libs/tqfocusdata.o .libs/tqfontdatabase.o .libs/tqfont.o .libs/tqfontinfo.o .libs/tqfontmetrics.o .libs/tqgarray.o .libs/tqgb18030codec.o .libs/tqgcache.o .libs/tqgdict.o .libs/tqglcolormap.o .libs/tqglist.o .libs/tqgvector.o .libs/tqhostaddress.o .libs/tqiconset.o .libs/tqimage.o .libs/tqinputcontextfactory.o .libs/tqintcache.o .libs/tqintdict.o .libs/tqinterlacestyle.o .libs/tqiodevice.o .libs/tqjpunicode.o .libs/tqkeysequence.o .libs/tqlibrary.o .libs/tqlocale.o .libs/tqmap.o .libs/tqmemarray.o .libs/tqmenudata.o .libs/tqmetaobject.o .libs/tqmime.o .libs/tqmovie.o .libs/tqmutex.o .libs/tqnamespace.o .libs/tqobjectdict.o .libs/tqobjectlist.o .libs/tqpaintdevice.o .libs/tqpaintdevicemetrics.o .libs/tqpainter.o .libs/tqpair.o .libs/tqpalette.o .libs/tqpen.o .libs/tqpicture.o .libs/tqpixmapcache.o .libs/tqpixmap.o .libs/tqpngio.o .libs/tqpointarray.o .libs/tqpoint.o .libs/tqpolygonscanner.o .libs/tqprinter.o .libs/tqptrcollection.o .libs/tqptrdict.o .libs/tqptrlist.o .libs/tqptrqueue.o .libs/tqptrstack.o .libs/tqptrvector.o .libs/tqrect.o .libs/tqregexp.o .libs/tqregion.o .libs/tqrtlcodec.o .libs/tqsemaphore.o .libs/tqsettings.o .libs/tqshared.o .libs/tqsignalslotimp.o .libs/tqsimplerichtext.o .libs/tqsize.o .libs/tqsizepolicy.o .libs/tqsjiscodec.o .libs/tqsocketdevice.o .libs/tqsortedlist.o .libs/tqsqlcursor.o .libs/tqsqleditorfactory.o .libs/tqsqlerror.o .libs/tqsqlfield.o .libs/tqsql.o .libs/tqsqlindex.o .libs/tqsqlpropertymap.o .libs/tqsqlrecord.o .libs/tqsqlresult.o .libs/tqsqlselectcursor.o .libs/tqstring.o .libs/tqstringlist.o .libs/tqstrlist.o .libs/tqstrvec.o .libs/tqstylefactory.o .libs/tqsyntaxhighlighter.o .libs/tqtextcodecfactory.o .libs/tqtextcodec.o .libs/tqtextstream.o .libs/tqthread.o .libs/tqthreadstorage.o .libs/tqtl.o .libs/tqtsciicodec.o .libs/tqurl.o .libs/tqurlinfo.o .libs/tqutfcodec.o .libs/tquuid.o .libs/tqvaluelist.o .libs/tqvaluestack.o .libs/tqvaluevector.o .libs/tqvariant.o .libs/tqvfbhdr.o .libs/tqwaitcondition.o .libs/tqwhatsthis.o .libs/tqwidgetfactory.o .libs/tqwidgetintdict.o .libs/tqwidgetlist.o .libs/tqwmatrix.o .libs/tqxml.o .libs/tqucomextra_p.o .libs/tqlistiterator.o -lqt-mt /usr/lib/libpng14.so -lz /usr/lib/libXext.so /usr/lib/libX11.so /usr/lib/libSM.so /usr/lib/libICE.so -lpthread -L/usr/lib/gcc/i686-pc-linux-gnu/4.4.3 -L/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/crtendS.o /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../crtn.o -Wl,-soname -Wl,libtqt.so.4 -o .libs/libtqt.so.4.2.0 /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lqt-mt
I guess this happens because QT library path are not passed to the linker. I cannot figure out how to fix this.
PS Maybe is better ideea to switch entire trinity project to cmake build system?
On Tuesday 31 August 2010 13:57:26 Serghei Amelian wrote: [...]
PS Maybe is better ideea to switch entire trinity project to cmake build system?
I created a minimal cmake script, which is able to compile and install tqt.
For testing/using it, put CMakeLists.txt in root of tqtinterface, then run follow commands:
cmake -DCMAKE_INSTALL_PREFIX=/usr make make install DESTDIR=/tmp/test
For verbose mode, you must run "make VERBOSE=1"
Note that i do not tested if the resulted library is correctly built (yet).
Feedback are welcome.
On Tuesday 31 August 2010 13:57:26 Serghei Amelian wrote: [...]
PS Maybe is better ideea to switch entire trinity project to cmake build system?
I created a minimal cmake script, which is able to compile and install tqt.
Thanks!
For testing/using it, put CMakeLists.txt in root of tqtinterface, then run follow commands:
cmake -DCMAKE_INSTALL_PREFIX=/usr make make install DESTDIR=/tmp/test
For verbose mode, you must run "make VERBOSE=1"
Note that i do not tested if the resulted library is correctly built (yet).
Please find the list of files it should create and install attached. Note that this is from the SVN HEAD revision, so it may contain a few more files than your Cmake script created.
Feedback are welcome.
Good first steps!
If you decide that you want to convert all of Trinity to Cmake (which would be *much* appreciated by the developers here! ), converting arts and kdelibs next would be my suggestion. When you convert each module to Cmake, I will add the new Cmake files to each module in parallel with the existing Automake system. I can provide you with any information you need, such as lists of installed files, etc. for verification.
Do you have KDE SVN access?
Thanks!
Tim
On Wednesday 01 September 2010 04:32:47 Timothy Pearson wrote:
On Tuesday 31 August 2010 13:57:26 Serghei Amelian wrote: [...]
PS Maybe is better ideea to switch entire trinity project to cmake build system?
I created a minimal cmake script, which is able to compile and install tqt.
Thanks!
For testing/using it, put CMakeLists.txt in root of tqtinterface, then run follow commands:
cmake -DCMAKE_INSTALL_PREFIX=/usr make make install DESTDIR=/tmp/test
For verbose mode, you must run "make VERBOSE=1"
Note that i do not tested if the resulted library is correctly built (yet).
Please find the list of files it should create and install attached. Note that this is from the SVN HEAD revision, so it may contain a few more files than your Cmake script created.
Feedback are welcome.
Good first steps!
If you decide that you want to convert all of Trinity to Cmake (which would be *much* appreciated by the developers here! ), converting arts and kdelibs next would be my suggestion. When you convert each module to Cmake, I will add the new Cmake files to each module in parallel with the existing Automake system.
This is big task, but i will try :) The good thing is that cmake have builtin support for Qt3 and KDE3, this will help a lot.
I can provide you with any information you need, such as lists of installed files, etc. for verification.
Do you have KDE SVN access?
I'm in sync with svn repo with "svn co svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface", I'm not sure if is correct.
Thanks!
Tim
PS You want keep qtq headers directly in /usr/include? I prefer to separate it from system headers, like /usr/include/qtq
This is big task, but i will try :) The good thing is that cmake have builtin support for Qt3 and KDE3, this will help a lot.
Thanks!
I'm in sync with svn repo with "svn co svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface", I'm not sure if is correct.
I was referring to write access, but it is also good that you are keeping your local copy in sync with the server.
PS You want keep qtq headers directly in /usr/include? I prefer to separate it from system headers, like /usr/include/qtq
That should probably be /usr/include/tqt, and yes, if you can make the other CMake-enabled modules detect and use the TQT headers in /usr/include/tqt, it would be preferable to install the headers to that directory.
Tim
On Wednesday 01 September 2010 18:46:35 Timothy Pearson wrote: [...]
PS You want keep qtq headers directly in /usr/include? I prefer to separate it from system headers, like /usr/include/qtq
That should probably be /usr/include/tqt, and yes, if you can make the other CMake-enabled modules detect and use the TQT headers in /usr/include/tqt, it would be preferable to install the headers to that directory.
For this purpose I think we can use pkg-config, I will try to play a little with it. In any case, in current version of cmake script we have few variables for install locations, BIN_INSTALL_DIR, LIB_INSTALL_DIR, and INCLUDE_INSTALL_DIR.
Also, i think that tqt-replace must be renamed to tqt-replace.in and tqt-replace-stream to tqt-replace-stream.in
<snip>
/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../crtn.o -Wl,-soname -Wl,libtqt.so.4 -o .libs/libtqt.so.4.2.0 /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lqt-mt
I guess this happens because QT library path are not passed to the linker. I cannot figure out how to fix this.
That should not be happening at all; what flags (if any) are you passing to the configure script? Also, can you send me the location of the libqt-mt.so file on your system?
PS Maybe is better ideea to switch entire trinity project to cmake build system?
That is not a bad idea; would you be willing to start that process? As I mentioned before I am swamped with other tasks, so the automake/autoconf stuff has been badly neglected.
Thanks!
Tim
On Wednesday 01 September 2010 04:01:02 Timothy Pearson wrote:
<snip>
/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../crtn.o -Wl,-soname -Wl,libtqt.so.4 -o .libs/libtqt.so.4.2.0 /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld : cannot find -lqt-mt
I guess this happens because QT library path are not passed to the linker. I cannot figure out how to fix this.
That should not be happening at all; what flags (if any) are you passing to the configure script? Also, can you send me the location of the libqt-mt.so file on your system?
I run plain configure, without parameters. On gentoo, Qt3 shared libraries are located in /usr/qt/3/lib/
[...]
On Wednesday 01 September 2010 04:01:02 Timothy Pearson wrote:
<snip>
/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../crtn.o -Wl,-soname -Wl,libtqt.so.4 -o .libs/libtqt.so.4.2.0 /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld : cannot find -lqt-mt
I guess this happens because QT library path are not passed to the linker. I cannot figure out how to fix this.
That should not be happening at all; what flags (if any) are you passing to the configure script? Also, can you send me the location of the libqt-mt.so file on your system?
I run plain configure, without parameters. On gentoo, Qt3 shared libraries are located in /usr/qt/3/lib/
Which is not in the Trinity autoconf list of directories to search, hence the failure. This point may be moot anyway as you are porting the build system to CMake. I will be glad to be rid of Autoconf once and for all. ;-)
Tim