On 02/22/2014 02:39 PM, David C. Rankin wrote:
On 02/22/2014 02:13 PM, François Andriot wrote:
Le 22/02/2014 20:46, David C. Rankin a écrit :
On 02/22/2014 01:31 PM, François Andriot wrote:
It's really common with these old programes
that there are missing linker flags
in the Makefile.
It looks like nowaday's compiler are much stricter, we must specify every
library to link, there is no auto-detection at all.
On some distribution (like Mageia :-) ) the error message that I get from the
linker tells exactly what library is required, whereas yours only shows the
missing symbol, which is not really helpful.
I'll try to build this tool and see what is wrong here.
Francois
Thank you Francios!
Bug report 1955 updated.
These are the changes that allowed kxmleditor to build:
# ~/tde/tde/experimental/qt3-tqt3/convert_existing_qt3_app_to_tqt3
# ~/tde/tde/experimental/kde-tde/convert_existing_kde3_app_to_tde
# cp -r ~/tde/tde/main/common/admin .
# sed -i 's/LIB_KFILE/LIB_TDEFILE/' kxmleditor/kxmleditor/Makefile.am
# sed -i 's/LIB_KFILE/LIB_TDEFILE/' kxmleditor/part/Makefile.am
# sed -i 's/LIB_KFILE/LIB_TDEFILE/' kxmleditor/part/Makefile.in
# kxmleditor/Makefile.am: kxmleditor_LDFLAGS = $(all_libraries) $(KDE_RPATH)
$(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx
Basically, I copied the libraries from kdiff3. I think the only one that was
missing was -lDCOP. I'm just glad it builds. I'll test Francios patch too.
I have the diff if you want it, but just following the steps above work.
Updated bug 1955:
Works Great!
http://www.3111skyline.com/dl/dt/trinity/ss/kxmleditor.jpg
When you push the source to the git-tree, we will need to update the kmenu
location. It currently installs to:
kmenu/Utilities/KDE3/Editors
we need to patch it to install at
kmenu/Utilities/Editors
We should also move or duplicate
kmenu/Utilities/File/kHexEdit
in
kmenu/Utilities/Editors.
That way ALL of the editors (text, hex and xml) are all available under
Editors.
--
David C. Rankin, J.D.,P.E.