Registered Member
|
Hi!
I'm trying to compile kdenlive 0.7.5 on Ubuntu Jaunty 9.04 and follwed the instructions in INSTALL. After cmake .. I get this error: CMake Error at mimetypes/CMakeLists.txt:1 (find_package): Could not find module FindSharedMimeInfo.cmake or a configuration file for package SharedMimeInfo. Adjust CMAKE_MODULE_PATH to find FindSharedMimeInfo.cmake or set SharedMimeInfo_DIR to the directory containing a CMake configuration file for SharedMimeInfo. The file will have one of the following names: SharedMimeInfoConfig.cmake sharedmimeinfo-config.cmake CMake Error at mimetypes/CMakeLists.txt:3 (install): install FILES given no DESTINATION! CMake Error at mimetypes/CMakeLists.txt:4 (update_xdg_mimetypes): Unknown CMake command "update_xdg_mimetypes". Does anyone have an hint for me? thx! |
Moderator
|
hello john!
the file FindSharedMimeInfo.cmake should be installed by kdelibs 4.* please, reinstall the package (it should be something like kdelibs5... or kdelibs5-devel? please ubuntuers, help!) and look for the file in $KDE4_PREFIX/share/apps/cmake/modules ($KDE4_PREFIX should be /usr, or /opt/kde4... i don't know that) |
Registered Member
|
Hi xzhayon!
I reinstalled kdelibs5 and kdelibs5-dev, but still get the above error. What I found: FindSharedMimeInfo.cmake is in $KDE4_PREFIX/share/kde4/apps/cmake/modules (with $KDE4_PREFIX = /usr) not in $KDE4_PREFIX/share/apps/cmake/modules Could this cause the trouble? Thanks for your help! Jonathan |
Moderator
|
i can't say if that's correct, we have two different systems. probably it is
just add "-DCMAKE_MODULE_PATH:PATH=/usr/share/kde4/apps/cmake/modules" to the cmake command line |
Registered Member
|
By using
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_MODULE_PATH:PATH=/usr/share/kde4/apps/cmake/modules shared-mime-info is found, but: -- Found shared-mime-info version: 0.60 CMake Error at mimetypes/CMakeLists.txt:3 (install): install FILES given no DESTINATION! CMake Error at mimetypes/CMakeLists.txt:4 (update_xdg_mimetypes): UPDATE_XDG_MIMETYPES Macro invoked with incorrect arguments for macro named: UPDATE_XDG_MIMETYPES CMake Error at /usr/share/kde4/apps/cmake/modules/FindNepomuk.cmake:19 (macro_optional_find_package): Unknown CMake command "macro_optional_find_package". Call Stack (most recent call first): CMakeLists.txt:5 (find_package) Thanks for any help! |
Registered Member
|
Not sure this has anything to do with cmake module path... Can you check if you have the shared-mime-info package installed?
That might be the issue... |
Registered Member
|
Yes, shared-mime-info is installed (and reinstalled, to be sure)
Version: 0.60-1 |
Registered Member
|
Hmm, then I don't understand what is missing. I compiled on my laptop without problem (Kubuntu 9.04)...
Maybe you should try to delete the CMakeCache.txt in case some bad value is stored here, then try again... Another thing is the install prefix... I think Kdenlive also looks for modules in the install path, so maybe you should try adding: -DCMAKE_INSTALL_PATH=/usr Otherwise, let me know which kde4 version you have... |
Registered Member
|
I'm using Ubuntu (not Kubuntu) 9.04, but have installed all kde4 libs (on one pc manually, on another pc via apt-get build-dep -> same errors).
Here is my KDE-Version: # kde4-config --version Qt: 4.5.0 KDE: 4.2.2 (KDE 4.2.2) kde4-config: 1.0 I deleted the whole build-dir and tried again: cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_MODULE_PATH:PATH=/usr/share/kde4/apps/cmake/modules -DCMAKE_INSTALL_PATH=/usr CMake Error at mimetypes/CMakeLists.txt:3 (install): install FILES given no DESTINATION! CMake Error at mimetypes/CMakeLists.txt:4 (update_xdg_mimetypes): UPDATE_XDG_MIMETYPES Macro invoked with incorrect arguments for macro named: UPDATE_XDG_MIMETYPES CMake Error at /usr/share/kde4/apps/cmake/modules/FindNepomuk.cmake:19 (macro_optional_find_package): Unknown CMake command "macro_optional_find_package". Call Stack (most recent call first): CMakeLists.txt:5 (find_package) |
Registered Member
|
Could you try to edit the CMakeLists.txt that is in Kdenlive's base folder, and change line 6 like that:
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH}) (basically you just add: ${CMAKE_MODULE_PATH} near the end. Then try removing your CMakeCache.txt file and restart cmake... |
Registered Member
|
*** SOLVED ***
Sorry for stealing your time, guys... The file INSTALL states "To compile and install, go in the source directory" I did this - literally: cd src was my first step. So I was working in src/build ... Sorry again (but maybe one could change the text in INSTALL a bit for newbies like me) Jonathan |
Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]