
Source (link to git-repo or to original if based on someone elses unmodified work):
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.
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
Ratings & Comments
40 Comments
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
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?
Kubuntu 7.10 i checked /opt/ and /usr/ and neither have a kde folder in them.
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.
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?
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.
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.
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 ?
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
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...
I've nearly finished porting it to KDE4, and it is being included in the upcoming release of Ubuntu - Hardy (in KDE3 form).
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.
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
I have just installed the ebuild for libpar2 you indicated, however, I do not see any link to the ebuild for kpar2
ok I found on bugzilla, installed, etc. Runs fine. Thank you!
Good to hear, thanks for testing :)
along with an icon I think we need a make uninstall too
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.
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
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
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 !
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.
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
I have the same problem on an openSuSE 10.3 system. The thing is, and I updated my locate database, that there is no libpar2Config.cmake anywhere from the installation of both libpar2 rpm's (includes the dev rpm). Maybe I'm not including the correct format of "-D". Should it be: -Dlibpar2_DIR= or -DLIBPAR2_DIR=?
I have the same problem on an openSuSE 10.3 system. The thing is, and I updated my locate database, that there is no libpar2Config.cmake anywhere from the installation of both libpar2 rpm's (includes the dev rpm). Maybe I'm not including the correct format of "-D". Should it be: -Dlibpar2_DIR= or -DLIBPAR2_DIR=?