This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] cmake: sharedmimeinfo -- error

Tags: None
(comma "," separated)
Jonathan Haug
Registered Member
Posts
18
Karma
0
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!
avilla
Moderator
Posts
79
Karma
0
OS

Re: cmake: sharedmimeinfo -- error

Fri Aug 28, 2009 10:51 pm
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)
Jonathan Haug
Registered Member
Posts
18
Karma
0

Re: cmake: sharedmimeinfo -- error

Sat Aug 29, 2009 9:22 am
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
avilla
Moderator
Posts
79
Karma
0
OS

Re: cmake: sharedmimeinfo -- error

Sat Aug 29, 2009 9:37 am
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
Jonathan Haug
Registered Member
Posts
18
Karma
0

Re: cmake: sharedmimeinfo -- error

Sat Aug 29, 2009 11:52 am
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!
j-b-m
Registered Member
Posts
804
Karma
1

Re: cmake: sharedmimeinfo -- error

Sat Aug 29, 2009 12:12 pm
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...
Jonathan Haug
Registered Member
Posts
18
Karma
0

Re: cmake: sharedmimeinfo -- error

Sat Aug 29, 2009 1:11 pm
Yes, shared-mime-info is installed (and reinstalled, to be sure)
Version: 0.60-1
j-b-m
Registered Member
Posts
804
Karma
1

Re: cmake: sharedmimeinfo -- error

Sat Aug 29, 2009 4:18 pm
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...
Jonathan Haug
Registered Member
Posts
18
Karma
0

Re: cmake: sharedmimeinfo -- error

Sat Aug 29, 2009 5:28 pm
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)
j-b-m
Registered Member
Posts
804
Karma
1

Re: cmake: sharedmimeinfo -- error

Sat Aug 29, 2009 5:47 pm
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...
Jonathan Haug
Registered Member
Posts
18
Karma
0
*** 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


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]