2012-04-06 114 views
1

在Mac上cmake-libjreen時遇到以下消息。cmake錯誤:找不到QCA2

$ cmake .. 
-- checking for module 'qca2' 
-- package 'qca2' not found 
CMake Error at /opt/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE): 
    Could NOT find QCA2 (missing: QCA2_LIBRARIES QCA2_INCLUDE_DIR) 
Call Stack (most recent call first): 
    /opt/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE) 
    cmake/FindQCA2.cmake:44 (find_package_handle_standard_args) 
    CMakeLists.txt:22 (FIND_PACKAGE) 

-- Configuring incomplete, errors occurred! 

如何繼續安裝qca2?

更新我已經通過macports安裝qca沒有任何運氣。看來我需要libqca2-devel,它不存在於macports上。我如何安裝libqca2-devel?

回答

0

嗯,這個解決了。 我不得不從源碼安裝qca2,以便cmake可以將其撿起來