KPar2

System Software

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

0
5.0
Description:

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.
Last changelog:

11 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

11 years ago

Anyone know what this error means?

dave@dave-desktop:~/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

C

ChaosWars

11 years ago

I think I can guarantee you that KDE is NOT installed in /etc on your system :p

You probably meant that to be /opt/kde or /opt/kde3 or perhaps /usr. What distribution are you using?

Report

reeets

11 years ago

Kubuntu 7.10

i checked /opt/ and /usr/ and neither have a kde folder in them.

Report

C

ChaosWars

11 years ago

Try a "cmake . -DCMAKE_INSTALL_PREFIX=$KDEDIR"

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

11 years ago

This is what I get when I try certain paths:

-- 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

C

ChaosWars

11 years ago

No, as long as you have KDE 3.x and Qt 3.8 installed you will be fine.

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

C

ChaosWars

11 years ago

Err, forgot for a moment that you also obviously need the development versions of libpar2 and libsigc++2.0 installed, but that is already mentioned in the information at the top of the page.

Report

tonypizza

11 years ago

Hi

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

C

ChaosWars

11 years ago

I'll look into fixing that bug, thanks for reporting it.

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

11 years ago

LOL

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

C

ChaosWars

11 years ago

I've nearly finished porting it to KDE4, and it is being included in the upcoming release of Ubuntu - Hardy (in KDE3 form).

Report

tonypizza

11 years ago

good for the status bar bug and the KDE 4 release.

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

C

ChaosWars

11 years ago

I have added a Gentoo ebuild, but since I can't test it I would appreciate it if someone running Gentoo could try it and if possible correct it if it doesn't work.

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

11 years ago

I have just installed the ebuild for libpar2 you indicated, however, I do not see any link to the ebuild for kpar2

Report

psilocybe

11 years ago

ok I found on bugzilla, installed, etc.

Runs fine. Thank you!

Report

C

ChaosWars

11 years ago

Good to hear, thanks for testing :)

Report

psilocybe

11 years ago

along with an icon I think we need a make uninstall too

Report

C

ChaosWars

11 years ago

CMake can't provide a make uninstall. I would suggest making an installation package for your distro or file a bug report asking for one on your distro bugzilla. I have provided PKGBUILD's for Arch Linux.

Report

C

ChaosWars

11 years ago

I need an icon for this app now, and also one for the .par2 file mimetype. If anyone would like to make them they'll get a mention in the Help->About :D

Report

C

ChaosWars

11 years ago

I need an icon for this app now, and also one for the .par2 file mimetype. If anyone would like to make them they'll get a mention in the Help->About :D

Report

tonypizza

11 years ago

Hey I didn't understood at first Kpar2 was integrated in Konqueror as a 'Kpart' : it simply rocks !

Now i can live without Konsole and the par2repair commandline.

Thanks !

Report

C

ChaosWars

11 years ago

I managed to find a package database on the internet ( http://rpmseek.com/ ) and updated the *.cmake files to reflect the different install paths on SuSe and Debian. This has the added bonus that I also included paths for x86_64 architecture, so the package should compile now on 64-bit machines. Let me know if there are still errors or if the compile issues go away now.

If someone who runs Debian/SuSe would like to make packages for the distributions, I'd be happy to host them.

Report

454casull

11 years ago

cmake -DCMAKE_INSTALL_PREFIX=/usr/local/kde3 -DLIBPAR2_LIBRARY=usr/lib/libpar2.so



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

C

ChaosWars

11 years ago

You are missing a "/" before "usr" after -DLIBPAR2_LIBRARY. That's assuming what you posted is verbatim.

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

11 years ago

Nevermind, Its not worth the effort. I simply wanted to check out your program.

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

11 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

12345678910
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.3.1
updated Jan 07 2008
added Nov 19 2007
downloads today
0
page views today 7
System Tags app software