[Kget] [Bug 243950] kdenetwork 4.4.5 fails to build

Angel Tsankov bigman at abv.bg
Mon Jul 12 15:27:30 CEST 2010


https://bugs.kde.org/show_bug.cgi?id=243950





--- Comment #6 from Angel Tsankov <bigman abv bg>  2010-07-12 15:27:28 ---
(In reply to comment #5)
> Can you try changing in btsettingswidget.cpp " #include "kget_export.h" " to "
> " #include <kget_export.h>" "? If it works, please tell me and I will put it
> into KDE SVN...

With <kget_export.h> it does not work, either.  However, it does work with
"../../kget_export.h"  After this change, I found out that a lot of other
changes are needed, too.  They are all related to the way files are included. 
Here's a short shell script applying *some* of the needed changes:

sed 's|"\(kget_export.h\)"|"../../\1"|' -i\
  kget/transfer-plugins/bittorrent/btsettingswidget.cpp\
  kget/core/plugin/{plugin.h,transferfactory.h}\
  kget/core/transferdatasource.h
sed 's|<\(interfaces/trackerinterface.h\)>|"../libbtcore/\1"|' -i\
  kget/transfer-plugins/bittorrent/advanceddetails/trackermodel.h
sed 's|<\(btcore_export.h\)>|"../\1"|' -i\
  kget/transfer-plugins/bittorrent/libbtcore/btcore_export.h
sed 's|<\(util/constants.h\)>|"../libbtcore/\1"|' -i\
  kget/transfer-plugins/bittorrent/advanceddetails/webseedsmodel.h
sed 's|"\(core/plugin/transferfactory.h\)"|../../\1|' -i\
  kget/transfer-plugins/bittorrent/bttransferfactory.h
sed 's|"core/|"../|' -i\
  kget/core/plugin/transferfactory.h
sed 's|"core/|"|'\ -i\
  kget/core/scheduler.h
sed 's|"\(kget_export.h\)"|"../\1"|' -i\
  kget/core/{kget.h,transfergrouphandler.h}

Please note, that I have not yet run the above script and it may need some
(minor) fixes; I have only tried compiling kdenetwork with the changes
*implied* in the above script.

The information on the following page may be useful in tracking down this
issue:
http://gcc.gnu.org/onlinedocs/gcc-4.5.0/cpp/Include-Syntax.html#Include-Syntax

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kget mailing list