
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
KDE 3.5 frontend for libpar2. It depends (rather obviously) on libpar2 and sigc++ to be installed. You must install the developers packages on most distributions in order to be able to compile KPar2. They are called libpar2-dev sigc++2.0-dev and on Debian, and libpar2-devel and libsigc++2-devel on SuSe.
You need to compile it with the command cmake . -DCMAKE_INSTALL_PREFIX=`kde-config --prefix` && make install. If you are compiling and installing it as root you can just give the path to your KDE root directory (/opt/kde for example). If you are installing it as a user, say in a restricted environment (I do this at school for example) the point CMAKE_INSTALL_PREFIX to $HOME/.kde and add the command -DKPAR2_BIN_INSTALL_DIR=/path/to/bin to install the executable to a directory that you have added to your $PATH where you install binaries - for example, mine is /home/user/programs/bin at school. This allows you to install and run KPar2 in an environment where you don't have permission to install programs globally.
13 years ago
0.3.1
Misc. code cleanups.
Handbook complete.
Icons complete.
Fixed Konqueror status bug.
0.3
GUI restucturing. Moved configuration options into settings dialog.
Implemented configuration option in settings menu.
Cleaned up code, got rid of random crash due to Qt3 multithreading weirdness on Xorg.
Added handbook/user manual.
Added some more gui icons when loading PAR2 files.
0.2.6
Resolved licensing conflict. Thanks to Anthony Mercatante for the heads up. The license file distributed with KPar2 and the license I had released it under was the GPLv2, but I'd copied the template files from another project of mine which was GPLv3 and therefor the header comments in the *.h and *.cpp files referred to the GPLv3. This has now been corrected and the headers in the source files refer to the GPLv2 as well.
There have been a few very minor GUI improvements as well. I'm busy revamping the GUI and the options menu as well as adding systray support so that the app can be hidden in the system tray during long operations. I'll throw in some progress visualization support as well, in the style of Amarok so that you can see the progress bars just by hovering with the mouse on the system tray.
0.2.5
Changed icon. Added textboxes to the gui, and what'sThis text. Also made some changes to the progress bars.
0.2.4
Fixed some minor bugs. Added an icon - it's a mix of the package.png and ok.png from the Crystal Diamond KDE icon theme. Added more status bar messages.
Known issue - crashes sometimes due to issue with libxcb. Will be looking into it to see if a patch is forthcoming in either Xorg, Qt3 or if I need to add a workaround myself. The issue is very sporadic, so you may never encounter it.
0.2.3
Added status bar messages. Fixed bug where total progress was not updated if a file was damaged or missing.
0.2.2
Flocks of penguins died for this release. Well no, not really ;) But bugs did. Fixed some minor issues, and one pretty big one where if uses (like me) were using a customized version of KDE like kdemod (kdemod.ath.cx ) that used custom (SuSe) KIO slaves in konqueror ( system:/ prefix in the adress bar ) the embedded kpart couldn't process the files. Thanks to DevEagle on kde4-devel on freenode for help fixing that.
0.2.1
Bugfix release. Added search paths to Findlibpar2.cmake and Findlibsigc.cmake to fix compile errors on SuSe and Debian. Note that in order to be able to compile kpar2, you will need to have the development packages of libpar2 and sigc++2 installed. If you have only the user packages installed the build WILL fail.
0.2
Prettied it up. Now with a KListView with pretty icons and stuff. Recommended by hurds of GNU's...
0.1
Initial release. It just works TM
13 years ago
0.3.1
Misc. code cleanups.
Handbook complete.
Icons complete.
Fixed Konqueror status bug.
0.3
GUI restucturing. Moved configuration options into settings dialog.
Implemented configuration option in settings menu.
Cleaned up code, got rid of random crash due to Qt3 multithreading weirdness on Xorg.
Added handbook/user manual.
Added some more gui icons when loading PAR2 files.
0.2.6
Resolved licensing conflict. Thanks to Anthony Mercatante for the heads up. The license file distributed with KPar2 and the license I had released it under was the GPLv2, but I'd copied the template files from another project of mine which was GPLv3 and therefor the header comments in the *.h and *.cpp files referred to the GPLv3. This has now been corrected and the headers in the source files refer to the GPLv2 as well.
There have been a few very minor GUI improvements as well. I'm busy revamping the GUI and the options menu as well as adding systray support so that the app can be hidden in the system tray during long operations. I'll throw in some progress visualization support as well, in the style of Amarok so that you can see the progress bars just by hovering with the mouse on the system tray.
0.2.5
Changed icon. Added textboxes to the gui, and what'sThis text. Also made some changes to the progress bars.
0.2.4
Fixed some minor bugs. Added an icon - it's a mix of the package.png and ok.png from the Crystal Diamond KDE icon theme. Added more status bar messages.
Known issue - crashes sometimes due to issue with libxcb. Will be looking into it to see if a patch is forthcoming in either Xorg, Qt3 or if I need to add a workaround myself. The issue is very sporadic, so you may never encounter it.
0.2.3
Added status bar messages. Fixed bug where total progress was not updated if a file was damaged or missing.
0.2.2
Flocks of penguins died for this release. Well no, not really ;) But bugs did. Fixed some minor issues, and one pretty big one where if uses (like me) were using a customized version of KDE like kdemod (kdemod.ath.cx ) that used custom (SuSe) KIO slaves in konqueror ( system:/ prefix in the adress bar ) the embedded kpart couldn't process the files. Thanks to DevEagle on kde4-devel on freenode for help fixing that.
0.2.1
Bugfix release. Added search paths to Findlibpar2.cmake and Findlibsigc.cmake to fix compile errors on SuSe and Debian. Note that in order to be able to compile kpar2, you will need to have the development packages of libpar2 and sigc++2 installed. If you have only the user packages installed the build WILL fail.
0.2
Prettied it up. Now with a KListView with pretty icons and stuff. Recommended by hurds of GNU's...
0.1
Initial release. It just works TM
reeets
13 years ago
[email protected]:~/Desktop/kpar2-0.3.1$ cmake . -DCMAKE_INSTALL_PREFIX=/etc/kde3
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Didn't find KDE3 headers
-- Didn't find KDE3 core library
-- Didn't find the KDE3 dcopidl preprocessor
-- Didn't find the KDE3 dcopidl2cpp preprocessor
-- Found KDE3 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
CMake Error: Could NOT find everything required for compiling KDE 3 programs
-- Configuring done
Report
ChaosWars
13 years ago
You probably meant that to be /opt/kde or /opt/kde3 or perhaps /usr. What distribution are you using?
Report
reeets
13 years ago
i checked /opt/ and /usr/ and neither have a kde folder in them.
Report
ChaosWars
12 years ago
Confirm before running that that $KDEDIR is a valid variable - see what "echo $KDEDIR" outputs.
I'm not sure where Kubuntu installs KDE, possible simply in /usr if it is LSB compliant. That means that the KDE stuff ends up in /usr/{bin.lib,share} etc.
Report
reeets
12 years ago
-- Didn't find KDE3 headers
-- Didn't find KDE3 core library
-- Didn't find the KDE3 dcopidl preprocessor
-- Didn't find the KDE3 dcopidl2cpp preprocessor
-- Found KDE3 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
CMake Error: Could NOT find everything required for compiling KDE 3 programs
-- Configuring done
Tried:
/usr/bin
/usr/share
/usr/lib
/usr/include
/opt (folder is empty tho)
echo $KDEDIR returns a blank line and I checked for any other pointers that could point to the path but didn't see any.
Are there any packages I need to make sure are installed first?
Report
ChaosWars
12 years ago
I just found out that $KDEDIR is not set on all distributions. Try this syntax :
cmake . -DCMAKE_INSTALL_PREFIX=`kde-config --prefix`
Note that those are not quotation marks, they are the symbol most commonly found on your tilde (~) key.
Report
ChaosWars
12 years ago
Report
tonypizza
13 years ago
I noticed that when you launch Kpar2 in Konqueror (right mouse button / Preview with Kpar2) the messages in the status bar (such as "Sources files verified" or "files repaired") remain after you press the Konqueror's "back" button.
You have to close to the current tab and reopen one to have the normal Konqueror's status bar messages restored.
Except this small disturbance, Kpar2 is really cool. Any plan to develop a KDE 4 version ?
Report
ChaosWars
13 years ago
I am planning to port it to KDE4. It will take some work, but in the end the code will be cleaner as a result of Qt4's better multithreading. I would have written it for KDE4 straight away but my girlfriend needed it now :p
Report
Superstoned
13 years ago
Great work on this... Looking forward to it. Imho it should become part of KDE 4 by default, either integrated in Ark or as a standalone util...
Report
ChaosWars
13 years ago
Report
tonypizza
13 years ago
I found that when listing files that are being checked, KPar2 does not show information about damages files such as 'Found 63 of 69 data blocks.'.
Is is possible to display this info in the list?
Thanks.
Report
ChaosWars
13 years ago
You will need the libpar2 ebuild available from the gentoo bugzilla as well, since libpar2 isn't in Portage for some weird reason :
http://bugs.gentoo.org/show_bug.cgi?id=124625
Report
psilocybe
13 years ago
Report
psilocybe
13 years ago
Runs fine. Thank you!
Report
ChaosWars
13 years ago
Report
psilocybe
13 years ago
Report
ChaosWars
13 years ago
Report
ChaosWars
13 years ago
Report
ChaosWars
13 years ago
Report
tonypizza
13 years ago
Now i can live without Konsole and the par2repair commandline.
Thanks !
Report
ChaosWars
13 years ago
If someone who runs Debian/SuSe would like to make packages for the distributions, I'd be happy to host them.
Report
454casull
13 years ago
CMake Error: libpar2_DIR is not set. It must be set to the directory containing libpar2Config.cmake in order to use libpar2.
-- Configuring done
libpar2 was installed with synaptic
Report
ChaosWars
13 years ago
Where does SuSe install the libpar2 packet? Could someone maybe email me the output of YaST/YUM or post it here?
It looks like it is being installed in a very non-standard place at any rate. If you are not going to use the cmake -i wizard (which I strongly recommend, that way you will encounter all the advanced variables which NEED to be set in order for the compile to work - they will be the last 6 variables in the wizard ) then you need to set the following variables for it to work :
-DLIBPAR2_INCLUDE_DIR=/path/to/include/libpar2 (the directory where libpar2.h is located)
-DLIBPAR2_LIB_INCLUDE_DIR=/path/to/lib/libpar2/include (the config.h file that the libpar2 packet installs)
-DLIBPAR2_LIBRARY=/path/to/lib/libpar2.so
If all three of these variables are set then libpar2 is marked as found and you should get no more errors about it.
The libpar2Config.cmake file does not exist, I had to write my own Findlibpar2.cmake file, which obviously doesn't work on SuSe. The error cmake spits out about it is confusing, but in effect it's just trying to say that it can't find the Findlibpar2.cmake file. I would suggest doing an out-of-source build in this case, that can be done by creating a directory named "build" in the same directory you unpack/download the source in, and then do a "cd build && cmake ../kpar2-0.2 && make install". Add whatever -D<cmake option> flags you need to to that command to get it to work obviously.
Report
454casull
13 years ago
I think I will just stick to clicking on a par2 file and having it automatically open in a konsole and do the repair. All with a single click and no typing. Even thats only in the odd chance that hellanzb cant do it for me.
Thanks for the effort.
:)
Report