This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] RSSNOW - how to force it to fetch feeds

Tags: None
(comma "," separated)
User avatar
grew
Registered Member
Posts
8
Karma
0
Hello,

I would like to have shiny RSS plasmoid - RSSNOW (it comes from kdereview right now). I have compiled it without complications (on Gentoo with KDE 4.1.2), but it is "Fetching feeds" and nothing happened.

In .xsession-errors I see:

Code: Select all
 plasma(23104) News::connectToEngine: Connect to source: "http://planetkde.org/rss20.xml"


Anyone knows how to force it to fetch some feeds? I saw on this cast it is possible :-)


grew, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Do you have the "rss" dataengine installed? Without it RSSNOW is going to just be a pretty paper weight.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
grew
Registered Member
Posts
8
Karma
0
bcooksley wrote:Do you have the "rss" dataengine installed? Without it RSSNOW is going to just be a pretty paper weight.


How could I check if I have it?


grew, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Open krunner ( Alt + F2 ) or konsole, and type plasmaengineexplorer.
A dialog should come up with a dropdown. look under that dropdown for "rss". I don't have it installed, but then again i don't have an RSS plasmoids installed.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
grew
Registered Member
Posts
8
Karma
0
bcooksley wrote:Open krunner ( Alt + F2 ) or konsole, and type plasmaengineexplorer.
A dialog should come up with a dropdown. look under that dropdown for "rss". I don't have it installed, but then again i don't have an RSS plasmoids installed.


OK, thank you for this tip. Now I know direct reason - lack of rss dataengine.

Next step/question is: how to compile rss dataengine from trunk into kde 4.1.2 installation (if it is possible)?

btw. nice technical documentation about dataengines could be found here.

Last edited by grew on Mon Oct 13, 2008 9:33 am, edited 1 time in total.


grew, proud to be a member of KDE forums since 2008-Oct.
User avatar
aseigo
KDE Developer
Posts
124
Karma
2
The rss DataEngine is now in kdebase/workspace/plasma/dataengines/ in trunk. You could grab just that directory, add something like this to the CMakeLists.txt:

find_package(KDE4 REQUIRED)
include (KDE4Defaults)
include (MacroLibrary)
include(MacroOptionalAddSubdirectory)
include(MacroOptionalDependPackage)

and build it as a standalone.


aseigo, proud to be a member of KDE forums since 2008-Oct.
User avatar
grew
Registered Member
Posts
8
Karma
0
Thank you, Aaron. I have added also this to CMakeLists.txt:

Code: Select all
include_directories(
   ${CMAKE_SOURCE_DIR}
   ${CMAKE_BINARY_DIR}
   ${KDE4_INCLUDES}
   )


But, it won't compile:

Code: Select all
Linking CXX shared module lib/plasma_engine_rss.so
CMakeFiles/plasma_engine_rss.dir/rss.o: In function `RssEngine::updateSourceEvent(QString const&)':
/soft/dataengines/rss/rss.cpp:89: undefined reference to `Syndication::Loader::create()'
/soft/dataengines/rss/rss.cpp:99: undefined reference to `Syndication::Loader::loadFrom(KUrl const&)'
collect2: ld returned 1 exit status
make[2]: *** [lib/plasma_engine_rss.so] Error 1
make[1]: *** [CMakeFiles/plasma_engine_rss.dir/all] Error 2
make: *** [all] Error 2


Maybe there were some changes in syndication library between 4.1.2 and trunk?


grew, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
There weren't. I got it to build after some major mods to the CMakeLists.txt file. You can find the one that just worked for me below ( can't post attachements here )

Code: Select all
find_package(KDE4 REQUIRED)
find_package(Plasma REQUIRED)
find_package(KdepimLibs REQUIRED)
include (KDE4Defaults)
include (MacroLibrary)
include(MacroOptionalAddSubdirectory)
include(MacroOptionalDependPackage)

find_package(Boost REQUIRED)

add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -DHAVE_CONFIG_H=1)
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${Boost_INCLUDE_DIR})

set(rss_engine_SRCS
    rss.cpp
)

kde4_add_plugin(plasma_engine_rss ${rss_engine_SRCS})
target_link_libraries(plasma_engine_rss plasma ${KDE4_KDECORE_LIBS} ${KDE4_SYNDICATION_LIBS})

install(TARGETS plasma_engine_rss DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES plasma-dataengine-rss.desktop DESTINATION ${SERVICES_INSTALL_DIR})


Last edited by bcooksley on Tue Oct 14, 2008 6:41 am, edited 1 time in total.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
grew
Registered Member
Posts
8
Karma
0
Yes, now it is compiled. Nice :-)

I have installed rss dataengine, but (after restart KDE session) I still can't see 'rss' in plasmaengineexplorer. Files are installed in correct places (like other dataengines):
/usr/lib/kde4/plasma_engine_rss.so
/usr/share/kde4/services/plasma-dataengine-rss.desktop

Of course, RSSNOW still "fetching feeds" without success... Any ideas?


grew, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I got it to appear in plasmaengineexplorer by editing the "plasma-dataengine-rss.desktop" file.

Change: ServiceTypes to X-KDE-ServiceTypes
And add: X-Plasma-EngineName=rss

I just installed RSSNOW, and it is working. You may have to run sudo make install in the rss dataengine build folder after the modification to make it update the file.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
grew
Registered Member
Posts
8
Karma
0
Yes, great! It works!

Let me summarize:
1. Grab sources and compile rss dataengine.
- svn co svn://anonsvn.kde.org/home/kde/trunk/KD ... ngines/rss
- create brand-new CMakeLists.txt (post #8)
- edit plasma-dataengine-rss.desktop and change: ServiceTypes to X-KDE-ServiceTypes, add line: X-Plasma-EngineName=rss
- mkdir build; cd build; cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
- make
- su; make install

2. Grab RSSNOW sources and compile it.
- svn co svn://anonsvn.kde.org/home/kde/trunk/kd ... ets/rssnow
- mkdir build; cd build; cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
- make
- su; make install

3. Logout & Login (or simply restart plasma)
4. Add RSSNOW widget, have fun :-)

Thank you bcooksley and aseigo!


grew, proud to be a member of KDE forums since 2008-Oct.
User avatar
whashnez
Registered Member
Posts
88
Karma
0
OS
grew wrote:Yes, great! It works!

Let me summarize:
1. Grab sources and compile rss dataengine.
- svn co svn://anonsvn.kde.org/home/kde/trunk/KD ... ngines/rss
- create brand-new CMakeLists.txt (post #8)
- edit plasma-dataengine-rss.desktop and change: ServiceTypes to X-KDE-ServiceTypes, add line: X-Plasma-EngineName=rss
- mkdir build; cd build; cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
- make
- su; make install

2. Grab RSSNOW sources and compile it.
- svn co svn://anonsvn.kde.org/home/kde/trunk/kd ... ets/rssnow
- mkdir build; cd build; cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
- make
- su; make install

3. Logout & Login (or simply restart plasma)
4. Add RSSNOW widget, have fun :-)

Thank you bcooksley and aseigo!


Hello!Please I have a problem building the machine, can you help me?Here's my post:

http://bbs.archlinux.org/viewtopic.php?pid=441867#p441867


Well good job Einstein, why don't we build a rocket in the meantime...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Restarting plasma is not needed. Just run kbuildsycoca4 :-)


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
GearHead
Registered Member
Posts
2
Karma
0
Aristoteles
Registered Member
Posts
8
Karma
0
Hello. I am new to this forum so i want to say hello to all.
I got rssnow with KDE 4.2 so i didn't have to do all that u wrote above. It was just ready after installation. Anyway it is not working. Neither Rssnow nor news widget. I see all the time fetching feed. After clicking on it i got konqueror opened showing my Documents.
Any idea how to fix it??


Aristoteles, proud to be a member of KDE forums since 2008-Dec.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kesang, Sogou [Bot], Yahoo [Bot]