Loading...

libftdi@developer.intra2net.com

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: mac osx build of libftdi xantares 09 Wed Feb 01 02:00:13 2012

>BTW, I am not so sure if /usr/local/lib64 is the
>proper place to install the libraries. MacPorts
>and Apple's libraries (32/64bit universal or
>64bit only) are located in /opt/local/lib
>and /usr/lib, not /opt/local/lib64 or /usr/lib64.
>
>I am wondering if lib64 needs to be changed to lib.
>
>Install the project...
>-- Install configuration: "Release"
>-- Up-to-date: /usr/local/lib64/pkgconfig/libftdi.pc
>-- Up-to-date: /usr/local/lib64/pkgconfig/libftdipp.pc
>-- Up-to-date: /usr/local/bin/libftdi-config
>-- Installing: /usr/local/lib64/libftdi.1.99.0.dylib
>-- Up-to-date: /usr/local/lib64/libftdi.1.dylib
>-- Up-to-date: /usr/local/lib64/libftdi.dylib
>-- Installing: /usr/local/lib64/libftdi.a
>-- Up-to-date: /usr/local/include/libftdi/ftdi.h
>-- Installing: /usr/local/lib64/libftdipp.1.99.0.dylib
>-- Up-to-date: /usr/local/lib64/libftdipp.1.dylib
>-- Up-to-date: /usr/local/lib64/libftdipp.dylib
>-- Installing: /usr/local/lib64/libftdipp.a
>-- Up-to-date: /usr/local/include/libftdi/ftdi.hpp
>-- Installing: /usr/local/lib64/python2.7/site-packages/_ftdi.so
>-- Installing: /usr/local/lib64/python2.7/site-packages/ftdi.py
>
>-- 
>Xiaofan

Hi,

I may be responsible for this mistake in the libsuffix patch posted few weeks 
ago
Here is a patch :

index c6a823f..67f0c22 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,14 +43,14 @@ set(CPACK_COMPONENT_SHAREDLIBS_GROUP "Development")
 set(CPACK_COMPONENT_STATICLIBS_GROUP "Development")
 set(CPACK_COMPONENT_HEADERS_GROUP    "Development")
 
-if(UNIX AND NOT CMAKE_CROSSCOMPILING AND NOT EXISTS "/etc/debian_version")
-  if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT LIB_SUFFIX)
-    set(LIB_SUFFIX "64")
-  endif()
-endif()
+# automatically set lib suffix
+if ( UNIX AND NOT APPLE AND NOT CMAKE_CROSSCOMPILING AND NOT EXISTS 
"/etc/debian_version" )
+  if ( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT LIB_SUFFIX )
+    set ( LIB_SUFFIX 64 )
+  endif ()
+endif ()
 
 if(NOT APPLE)
-  # Create suffix to eventually install in lib64
   if(CMAKE_SIZEOF_VOID_P EQUAL 4)
       SET(PACK_ARCH "")
     else(CMAKE_SIZEOF_VOID_P EQUAL 8)

Regards,
x.


                                          

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [EMAIL PROTECTED]