Sorry, I got the wrong repo (I took git://developer.intra2net.com/libftdi-1.0).
With correct repo ( git://developer.intra2net.com/libftdi) it does not
work neither - make install fails :
> make install
-- Build type: Debug
-- Building libftdi++
-- Building python bindings via swig. Will be installed under
/home/ddraskovic/libftdi-1.0/site-packages
-- Building example programs.
-- Building libftdi++ examples.
-- Looking for doxygen...
-- Looking for doxygen... - found /usr/bin/doxygen
-- Looking for dot tool...
-- Looking for dot tool... - found /usr/bin/dot
-- Doxygen found.
CMake Error: File
/home/ddraskovic/sandbox/libftdi-1.0/libftdi/doc/Doxyfile.in does not
exist.
CMake Error at CMakeLists.txt:112 (configure_file):
configure_file Problem configuring file
-- Generating API documentation with Doxygen
-- Configuring done
make: *** [cmake_check_build_system] Error 1
[1] 19010 exit 2 make install
On Wed, Mar 30, 2011 at 8:17 PM, Drasko DRASKOVIC
<drasko.draskovic@xxxxxxxxx> wrote:
> Hi Uwe,
> this patch is not working :
>
>> cmake -DCMAKE_INSTALL_PREFIX=/home/ddraskovic/libftdi-1.0 .
>
> -- The C compiler identification is GNU
> -- The CXX compiler identification is GNU
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Build type: Debug
> -- checking for module 'libusb-1.0'
> -- package 'libusb-1.0' not found
> -- Could NOT find LIBUSB
> -- Boost version: 1.34.1
> -- Found the following Boost libraries:
> -- Building libftdi++
> -- Found PythonLibs: /usr/lib/python2.5/config/libpython2.5.so
> -- Building python bindings via swig. Will be installed under
> /home/ddraskovic/libftdi-1.0/site-packages
> -- Building example programs.
> -- Building libftdi++ examples.
> -- Looking for doxygen...
> -- Looking for doxygen... - found /usr/bin/doxygen
> -- Looking for dot tool...
> -- Looking for dot tool... - found /usr/bin/dot
> -- Doxygen found.
> -- Generating API documentation with Doxygen
> CMake Error: The following variables are used in this project, but
> they are set to NOTFOUND.
> Please set them or make sure they are set and tested correctly in the
> CMake files:
> LIBUSB_INCLUDE_DIR (ADVANCED)
> used as include directory in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0
> used as include directory in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/src
> used as include directory in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/ftdipp
> used as include directory in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/bindings
> used as include directory in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/examples
> used as include directory in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/packages
> LIBUSB_LIBRARIES (ADVANCED)
> linked by target "ftdi" in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/src
> linked by target "ftdipp" in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/ftdipp
> linked by target "_ftdi" in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/bindings
> linked by target "baud_test" in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/examples
> linked by target "bitbang" in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/examples
> linked by target "bitbang2" in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/examples
> linked by target "bitbang_cbus" in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/examples
> linked by target "bitbang_ft2232" in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/examples
> linked by target "find_all" in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/examples
> linked by target "find_all_pp" in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/examples
> linked by target "serial_read" in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/examples
> linked by target "simple" in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/examples
> linked by target "stream_test" in directory
> /home/ddraskovic/sandbox/libftdi-1.0/libftdi-1.0/examples
>
> -- Configuring done
> [1] 18337 exit 1 cmake
> -DCMAKE_INSTALL_PREFIX=/home/ddraskovic/libftdi-1.0 .
>
> BR,
> Drasko
>
>
>
> On Wed, Mar 30, 2011 at 11:23 AM, Uwe Bonnes
> <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>>>>>>> "Drasko" == Drasko DRASKOVIC <drasko.draskovic@xxxxxxxxx> writes:
>>
>> Drasko> Hi all, I want to install git repo to a specific directory
>> Drasko> (adding --prefix).
>>
>> Drasko> How do we build repo ?
>>
>> Drasko> I tried :
>>
>> Drasko> 1) cmake -DCMAKE_INSTALL_PREFIX=/home/x/libftdi . 2) make 3)
>> Drasko> make install
>>
>> It seems that bindings/CMakeLists.txt doesn't honor
>> CMAKE_INSTALL_PREFIX. Could you please try with appended patch?
>>
>> Question to all: It this a valid solution?
>> --
>> Uwe Bonnes bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>
>> Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
>> --------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>> From 4a6540d3836b309d52ff45294aec7a8f580664d5 Mon Sep 17 00:00:00 2001
>> From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
>> Date: Wed, 30 Mar 2011 11:25:46 +0200
>> Subject: Honnor ${CMAKE_INSTALL_PREFIX} when installing bindings
>>
>> ---
>> bindings/CMakeLists.txt | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/bindings/CMakeLists.txt b/bindings/CMakeLists.txt
>> index 5333035..9873ccc 100644
>> --- a/bindings/CMakeLists.txt
>> +++ b/bindings/CMakeLists.txt
>> @@ -13,7 +13,7 @@ if(PYTHON_BINDINGS AND SWIG_FOUND AND PYTHONLIBS_FOUND)
>> SWIG_LINK_LIBRARIES(ftdi ftdi ${PYTHON_LIBRARIES})
>>
>> GET_FILENAME_COMPONENT(PYTHON_LIB_INSTALL ${PYTHON_LIBRARY} PATH)
>> - GET_FILENAME_COMPONENT(SITEPACKAGE
>> ${PYTHON_LIB_INSTALL}/../site-packages ABSOLUTE)
>> + GET_FILENAME_COMPONENT(SITEPACKAGE
>> ${CMAKE_INSTALL_PREFIX}/site-packages ABSOLUTE)
>>
>> INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/_ftdi.so DESTINATION
>> ${SITEPACKAGE})
>> INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/ftdi.py DESTINATION
>> ${SITEPACKAGE})
>> --
>> 1.7.1
>>
>>
>> --
>> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
>> To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
>>
>>
>
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|