Difference between revisions of "Talk:Script for enabling the fingerprint reader with BioAPI"

From ThinkWiki
Jump to: navigation, search
(FC5 merged)
(Recreated patch and added nicely formatting)
Line 12: Line 12:
 
Also, you need to add a patch for the bioapi to get it to compile on fc5 with gcc4.1:
 
Also, you need to add a patch for the bioapi to get it to compile on fc5 with gcc4.1:
  
---cut--
+
diff -ur bioapi-1.2.2.org/addins/dl/mds/dal_classes.h bioapi-1.2.2/addins/dl/mds/dal_classes.h
diff -Nur bioapi-1.2.2.orig/addins/dl/mds/dal_classes.h bioapi-1.2.2/addins/dl/mds/dal_classes.h
+
--- bioapi-1.2.2.org/addins/dl/mds/dal_classes.h       2006-09-05 21:31:11.000000000 +0200
--- bioapi-1.2.2.orig/addins/dl/mds/dal_classes.h       2005-06-09 18:35:44.000000000 -0600
+
+++ bioapi-1.2.2/addins/dl/mds/dal_classes.h    2006-09-05 21:31:29.000000000 +0200
+++ bioapi-1.2.2/addins/dl/mds/dal_classes.h    2006-03-28 17:21:49.000000000 -0700
+
@@ -455,7 +455,7 @@
@@ -455,7 +455,7 @@
+
                DAL_DATABASE_INFO_REF_PTR &prefDatabase,
                DAL_DATABASE_INFO_REF_PTR &prefDatabase,
+
          PORT_MUTEX_HANDLE &Mutex);
        PORT_MUTEX_HANDLE &Mutex);
+
 
 
+
-      CSSM_RETURN DAL_DATABASE_INFO_LIST::GetDBNamesAndParameters(
-      CSSM_RETURN DAL_DATABASE_INFO_LIST::GetDBNamesAndParameters(
+
+      CSSM_RETURN GetDBNamesAndParameters(
+      CSSM_RETURN GetDBNamesAndParameters(
+
                                CSSM_DL_DB_HANDLE DLDBHandle,
                                CSSM_DL_DB_HANDLE DLDBHandle,
+
                                DAL_DB_OPEN_PARAM_PTR pParam);
                                DAL_DB_OPEN_PARAM_PTR pParam);
+
  };
};
 
--cut--
 
  
 
I added a line to apply this patch:  
 
I added a line to apply this patch:  

Revision as of 22:04, 5 September 2006

With only 2 minor changes this script works on fc5 as well...

You need to change the line that says:

grep -q 'Fedora Core release 4' /etc/redhat-release || { echo \

to say:

grep -q 'Fedora Core release 5' /etc/redhat-release || { echo \


Also, you need to add a patch for the bioapi to get it to compile on fc5 with gcc4.1:

diff -ur bioapi-1.2.2.org/addins/dl/mds/dal_classes.h bioapi-1.2.2/addins/dl/mds/dal_classes.h
--- bioapi-1.2.2.org/addins/dl/mds/dal_classes.h        2006-09-05 21:31:11.000000000 +0200
+++ bioapi-1.2.2/addins/dl/mds/dal_classes.h    2006-09-05 21:31:29.000000000 +0200
@@ -455,7 +455,7 @@
                DAL_DATABASE_INFO_REF_PTR &prefDatabase,
         PORT_MUTEX_HANDLE &Mutex);
 
-       CSSM_RETURN DAL_DATABASE_INFO_LIST::GetDBNamesAndParameters(
+       CSSM_RETURN GetDBNamesAndParameters(
                                CSSM_DL_DB_HANDLE DLDBHandle,
                                DAL_DB_OPEN_PARAM_PTR pParam);
 };

I added a line to apply this patch:

... tar xjf bioapi-latest.tar.bz2 pushd bioapi-1.2.2 patch -p1 < ../bioapi-gcc41.patch ./configure --with-Qt-dir=no --prefix=$WHERE ...

Can anyone else confirm that works and perhaps merge into the main script?


Merged.

--Thinker 02:55, 30 April 2006 (CEST)