[Kstars-devel] Porting KStars to KF5

Samikshan Bairagya samikshan at gmail.com
Tue Jul 15 07:01:30 UTC 2014


On Mon, Jul 14, 2014 at 8:21 PM, Jasem Mutlaq <mutlaqja at ikarustech.com> wrote:
> Hello,
>
> I'm not sure on Fedora, but on Kubuntu, you can just use project-neon5 PPA,
> and just use neon5-env to setup the environment variables, and then it
> should build cleanly. It won't run yet, but at least it compiles and a lot
> of files/directories are disabled still.
>
>
> On Mon, Jul 14, 2014 at 10:15 AM, Samikshan Bairagya <samikshan at gmail.com>
> wrote:
>>
>> Hi,
>>
>> I checked out the frameworks branch and tried building KStars. However,
>> I can't figure out what all packages I need to install in order to get
>> rid of the
>> following cmake error:
>>
>> sbairagy at dhcp193-120 ~/k/b/kstars-build [1]> cmake
>> -DCMAKE_INSTALL_PREFIX=../../usr/ -DCMAKE_BUILD_TYPE=Debug
>> ../../src/kstars/
>> CMake Error at CMakeLists.txt:27 (find_package):
>>   By not providing "FindKF5.cmake" in CMAKE_MODULE_PATH this project has
>>   asked CMake to find a package configuration file provided by "KF5", but
>>   CMake did not find one.
>>
>>   Could not find a package configuration file provided by "KF5" with any
>> of
>>   the following names:
>>
>>     KF5Config.cmake
>>     kf5-config.cmake
>>
>>   Add the installation prefix of "KF5" to CMAKE_PREFIX_PATH or set
>> "KF5_DIR"
>>   to a directory containing one of the above files.  If "KF5" provides a
>>   separate development package or SDK, be sure it has been installed.
>>
>>
>> -- Configuring incomplete, errors occurred!
>> See also
>> "/home/sbairagy/kde/build/kstars-build/CMakeFiles/CMakeOutput.log".
>> See also
>> "/home/sbairagy/kde/build/kstars-build/CMakeFiles/CMakeError.log".
>>
>> ----

I have been able to get cmake to work for frameworks branch. For Fedora 20,
I followed http://copr.fedoraproject.org/coprs/dvratil/kde-frameworks/ to get
the necessary packages. But I added the --skip-broken flag with yum to get
rid of problems arising from the conflicting packages.

But now I am getting the following error wrt to kde_file.h:

/home/sbairagy/kde/src/kstars/kstars/skycomponents/starcomponent.cpp:49:22:
fatal error: kde_file.h: No such file or directory
 #include <kde_file.h>
                      ^
compilation terminated.
/home/sbairagy/kde/src/kstars/kstars/skycomponents/deepstarcomponent.cpp:39:22:
fatal error: kde_file.h: No such file or directory
 #include <kde_file.h>
                      ^
compilation terminated.
make[2]: *** [kstars/CMakeFiles/KStarsLib.dir/skycomponents/starcomponent.cpp.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [kstars/CMakeFiles/KStarsLib.dir/skycomponents/deepstarcomponent.cpp.o]
Error 1
make[1]: *** [kstars/CMakeFiles/KStarsLib.dir/all] Error 2
make: *** [all] Error 2

========

I can't figure out what I might be missing here.

Regards,
-- 
Samikshan


More information about the Kstars-devel mailing list