<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transational//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
</HEAD>
<BODY>I find the problem it was the name of the library: libRcpp.so instead of libRCpp.so<br><br><br>
---- Message d'origine ----<br>
De : pasparis@noos.fr<br>
À : cmake@cmake.org<br>
Objet : [CMake] no rule to make target ' ' needed by- with RCpp and not mysql++<br>
Date : 24/01/2012 10:10:01 CET<br>
<br>
<br>Hello<br><br>sereral days ago I got from Eric in the mail list the way to link mysql++ in kdevelop with cmake. it works fine but as soon as<br>I want to do the same thing with RCpp and RInside two libraries which manage a link between C++ and the R software <br>when I compile the main prog I get<br>make[3]: *** No rule to make target `/usr/lib/R/site-library/Rcpp/lib/libRCpp.so', needed by `pkdr1'. Stop.<br><br>I don't understand why thanks in advance if someone could help me<br><br><br>CMakeList Library file (which uses msql++ and RInside)<br>project(pliba)<br><br>include_directories(/usr/include)<br>include_directories(/usr/include/mysql)<br>include_directories(/usr/include/mysql++)<br><br>include_directories(/usr/lib/R/site-library/Rcpp/include)<br>include_directories(/usr/lib/R/site-library/RInside/include)<br><br>include_directories(/home/pascal/pKDR1/pLibA/Include)<br><br>add_library(pliba STATIC test_RInside.cpp)<br><br>target_link_libraries(pliba /usr/lib/libmysqlpp.a)<br>target_link_libraries(pliba /usr/lib/libmysqlclient.a)<br>target_link_libraries(pliba /usr/lib/i386-linux-gnu/libz.so)<br><br>target_link_libraries(pliba /usr/lib/R/lib/libR.so)<br>target_link_libraries(pliba /usr/lib/R/site-library/Rcpp/lib/libRCpp.so)<br>target_link_libraries(pliba /usr/lib/R/site-library/RInside/lib/libRInside.so)<br><br><br>CMakeList program file which uses the library<br>cmake_minimum_required(VERSION 2.8)<br>project(pkdr1)<br>add_subdirectory(pLibA)<br>include_directories (${PROJA_SOURCE_DIR}/pLibA) <br>add_executable(pkdr1 main.cpp)<br>target_link_libraries(pkdr1 pliba)<br><br><br></BODY></HTML>