On Monday 20 July 2015 11:48:33 pm Timothy Pearson wrote:
Hello,
TDevelop has helped me set up a /Development directory in my home. I
put
the qmake and tde.h header file in the directory. I still get errors, so
some
advice to get one set up will be appreciated.
Thanks
If you can post the error messages it would give us a better idea of what is failing where and how to fix it.
mainwindow.cpp:1:23: fatal error: tdelocale.h: No such file or directory
This first message was solved by configuring TDevelop to use /Development as the default directory. I thought it did when I already set it up. I had already placed tdelocale.h in the header directory and placed it in the /Development root. So that works.
mainwidget.cpp:2:21: fatal error: qlayout.h: No such file or directory
Now this one I can't find the header file. So if you know where it's at, that would help.
You need to change that to include 'ntqlayout.h' instead of 'qlayout.h'. mainwidget.cpp may be generated from a .ui file (likely mainwidget.ui), in which case the change needs to be made to the .ui file instead of the .cpp file.
Once you have an application ported, let us know -- we might be willing to officially support it!
Tim
On Tuesday 21 July 2015 06:45:25 pm Timothy Pearson wrote:
mainwindow.cpp:1:23: fatal error: tdelocale.h: No such file or directory
This first message was solved by configuring TDevelop to use /Development as the default directory. I thought it did when I already set it up. I had already placed tdelocale.h in the header directory and placed it in the /Development root. So that works.
mainwidget.cpp:2:21: fatal error: qlayout.h: No such file or directory
Now this one I can't find the header file. So if you know where it's at, that would help.
You need to change that to include 'ntqlayout.h' instead of 'qlayout.h'. mainwidget.cpp may be generated from a .ui file (likely mainwidget.ui), in which case the change needs to be made to the .ui file instead of the .cpp file.
Once you have an application ported, let us know -- we might be willing to officially support it!
Ok, can I dump ALL the include files from /r14.0.0/tqtinterface into my /Development/include directory?
Also, another error (actually a bunch of the same kind)
./tqregion.h:54:24: fatal error: Qt/qregion.h: No such file or directory
where I go back and look at the code and it looks like it's trying to run QT4 stuff.
Hello,
How do I make TDevelop "SEE" the Include directory? I have spent 2 days of Building, "can't find such and such header file", coping over said header to the main directory, and redo... This is getting old. I searched online, but the online thing I come up with was Linux automatically pointed to ALL headers and if an IDE couldn't find headers, it was a bug. Any help would be appreciated.
Bro. Michael Henry wrote:
Hello,
How do I make TDevelop "SEE" the Include directory? I have spent 2 days of Building, "can't find such and such header file", coping over said header to the main directory, and redo... This is getting old. I searched online, but the online thing I come up with was Linux automatically pointed to ALL headers and if an IDE couldn't find headers, it was a bug. Any help would be appreciated.
Hi going back to the original question:
I would like to convert some KDE3 apps/QT3 apps to TDE/TQT
I had absolutely no issue converting a KDE3 app to TDE recently by following Timothy's advise in the thread
"how to setup environment for compiling older KDE3 packages on TDE r14"
Here is his answer again:
"There are two scripts in the TDE source archive (experimental/qt3-tqt3/convert_existing_qt3_app_to_tqt3 and experimental/kde-tde/convert_existing_kde3_app_to_tde). Look at those scripts, make any modifications needed for your system, and run them from within the original source archive.
If you want to help by adding a new application to TDE, you could first import the original sources to a new GIT repository, then clean up the old Makefile.in and configure files and commit that as a cleanup commit. After that run the conversion scripts, verify buildability, and commit the converted sources before pushing the entire repository up to GitHub or similar.
Note that you will probably want to delete the old admin module and replace it with the current TDE admin submodule. You can do that from within your converted source directory as follows: rm -rf admin git submodule add http://system@scm.trinitydesktop.org/scm/git/tde-common-admin admin git submodule add http://system@scm.trinitydesktop.org/scm/git/tde-common-cmake cmake git submodule update --init git commit -a -m "Added common directories" git push origin master
Hope this helps!
Tim"
====== In my case I had to apply some customization to the automake build scripts and fix this and that.
#libtoolize
cat /usr/share/aclocal/libtool.m4 /usr/share/aclocal/ltoptions.m4 /usr/share/aclocal/ltversion.m4 /usr/share/aclocal/ltsugar.m4 /usr/share/aclocal/lt~obsolete.m4
aclocal.m4
perl -pi -e 's:&kwin:TDE Window:g' doc/*/howto-bug-reporting.docbook perl -pi -e 's:theKProcessController:theTDEProcessController:g' kplayer/kplayerprocess.cpp
# fixed in admin/acinclude.m4.in #perl -pi -e 's:LIBSM\ =\ -lSM\ -lICE:LIBSM\ =\ -lSM\ -lICE\ -lDCOP\ -ltdeio:' kplayer/Makefile #LIBSM=""
//extern TQDragManager* qt_dnd_manager; kplayer/kplayernodeview.cpp
bash ../../../kplayer-0.6.3-myconfig
dh_make -s \ -c gpl2 \ -e deloptes@deloptes.org \ -f ../kplayer_0.6.3.orig.tar.bz2 \ --packagename kplayer-trinity
# after make maintainer-clean
rm -v Makefile.in admin/config.guess admin/config.guess.cdbs-orig admin/config.guess.dh-orig admin/config.sub admin/config.sub.cdbs-orig admin/config.sub.dh-orig config.h.in doc/Makefile.in doc/da/Makefile.in doc/en/Makefile.in doc/es/Makefile.in doc/it/Makefile.in doc/pt/Makefile.in doc/sv/Makefile.in icons/Makefile.in kplayer/Makefile.in po/Makefile.in aclocal.m4 stamp-h.in configure
====== and the content of the myconfig file is like this. I think you need to try something that fits your build env. I also think the admin scripts for the automake are not fitting debian jessie the best.
export PREFIX=/opt/trinity export SYSCONFDIR=/etc/trinity export LIBDIR=/opt/trinity/lib export MANDIR=/opt/trinity/man export QTDIR=/usr/include/tqt/Qt export PATH=$QTDIR/bin:/usr/share/tqt3/bin:/opt/trinity/bin:$PATH #export LD_LIBRARY_PATH=$QTDIR/lib:/opt/trinity/lib:/opt/trinity/lib/trinity $LD_LIBRARY_PATH export PKG_CONFIG_PATH=:/opt/trinity/lib/pkgconfig:$QTDIR/lib/pkgconfig $PKG_CONFIG_PATH # Enable only one of the following: export DEBUG_AUTOTOOL_OPT="--disable-debug" #export DEBUG_CMAKE_OPT=""
export CFLAGS="$CPUOPT $CFLAGS -I/usr/include/tqt -I/usr/include/tqt3 -Wall" export CXXFLAGS="$CPUOPT $CXXFLAGS -I/usr/include/tqt -I/usr/include/tqt3 -Wall" export LDFLAGS="$LDFLAGS -L/opt/trinity/lib -L/usr/lib -Wall"
make -f admin/Makefile.common
dpkg-buildpackage -rfakeroot -b -us -uc -j8
======