Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

EID Belgium - How to get it working ?

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
Pol
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 113
Joined: Thu May 01, 2003 8:43 am

EID Belgium - How to get it working ?

  • Quote

Post by Pol » Fri Oct 28, 2005 8:04 am

Hello,

Here in Belgium, population get a brand new electronic identity card.

It looks like: http://img489.imageshack.us/img489/8158 ... ebelge.jpg

We also received a run time library for windows and Linux avaiable here: http://www.belgium.be/zip/eid_datacapture_fr.html

I'm trying to compile the Linux version but I'm having alot of problem:

Code: Select all

pol@fujitsu1 ~/Desktop/eIDSource_2_3_13/ObjectsMultiPlatform/Platforms/Linux/Base $ make -f MakeFile

gcc -xc++ -Wall -Dlinux -I../../../Include -c -o Thread.o ../../../Src/Base/Thread.cpp
../../../Src/Base/Thread.cpp: In member function `void CThread::Kill()':
../../../Src/Base/Thread.cpp:224: error: `pthread_kill' undeclared (first use this function)
../../../Src/Base/Thread.cpp:224: error: (Each undeclared identifier is reported only once for each function it appears in.)
make: *** [Thread.o] Error 1

pol@fujitsu1 ~/Desktop/eIDSource_2_3_13/ObjectsMultiPlatform/Platforms/Linux/Base $
I'm compiling this to make a software that will allow people to register themselves automatically in a website(php+mysql+java)... I hope it is possible with that ...

If someone know something that could help me...it would be gratefull !

Thanks
Top
pjv
Guru
Guru
User avatar
Posts: 353
Joined: Wed Jul 02, 2003 12:51 pm
Location: Belgium

  • Quote

Post by pjv » Thu Jun 29, 2006 5:37 pm

I hope this still helps you: www.godot.be
Top
Pol
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 113
Joined: Thu May 01, 2003 8:43 am

  • Quote

Post by Pol » Thu Jun 29, 2006 5:47 pm

Thanks alot ;)
Top
pjv
Guru
Guru
User avatar
Posts: 353
Joined: Wed Jul 02, 2003 12:51 pm
Location: Belgium

  • Quote

Post by pjv » Mon Aug 14, 2006 4:50 pm

It's possible to get the eID card to work, like this (sorry Pol I'm kinda hijacking your thread):

Normally you should be able to test you smartcard reader + eID card without any software via www.godot.be 's java applets (i.e. http://homes.esat.kuleuven.be/~decockd/ ... UtilityTOC). There are also a lot of links that will bring you to anything that's eID related.

Download the middleware from http://www.belgium.be/zip/Belgian_Ident ... .9.tar.bz2. Unpack it and follow the guide (also an online one). The only problem I had was that I have Qt4 and so qt-mt for Qt3.3 was not detected properly. To solve this comment out the relevant lines in SConstruct, like so:

Code: Select all

 
    # QT
    # FIXME what if QT 4.x installed !?
#    if not conf.CheckPKG('qt-mt >= 3.3.3'):
#        print 'qt-mt >= 3.3.3 not found.'
#        Exit(1)
There is also a typo in the README. This:

Code: Select all

/usr/local/bin/beid-pkcs11-tool -t -l --module /usr/local/lib/beidpkcs11.so
should be this:

Code: Select all

/usr/local/bin/beid-pkcs11-tool -t -l --module /usr/local/lib/libbeidpkcs11.so
.

The init scripts don't seem to work, they will need a conversion to the init system used on gentoo. But ofcourse you could also load he tools manually each time.

Finally, you also need to make Firefox (or another browser) use the smartcard, again see the online guides. Both Evolution (but Thunderbird has) and Openoffice don't have support for PKCS#11 yet in linux, but this will probably change soon.

If you have any questions ask me though I'm totally not an expert.
Top
potens
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 76
Joined: Fri Oct 17, 2003 2:52 pm
Location: Belgium, world's asshole

  • Quote

Post by potens » Wed Dec 20, 2006 4:27 pm

Hi !
I'm trying to compile the beid-2.5.9 on gentoo but I get an g++ error in the compilation process :

Code: Select all

g++ -o src/eidlib/OpenSCReader.os -c -Dlinux -pipe -DQT_THREAD_SUPPORT -D_REENTRANT -fPIC -O -DNDEBUG -DNO_DEBUG -I/usr/qt/3/include -I/usr/include/PCSC -Isrc/eidlib -Isrc/newpkcs11/src/include src/eidlib/OpenSCReader.cpp
src/eidlib/OpenSCReader.cpp: In member function `virtual long int COpenSCReader::ReadFile(const unsigned char*, int, unsigned char*, long unsigned int*, BEID_Status*)':
src/eidlib/OpenSCReader.cpp:186: error: cannot convert `unsigned int*' to `size_t*' for argument `4' to `int sc_pkcs15_read_file2(sc_pkcs15_card*, const sc_path*, u8*, size_t*, sc_file**)'
scons: *** [src/eidlib/OpenSCReader.os] Error 1
scons: building terminated because of errors.
make: *** [all] Erreur 2
I've tried to compile it in 32bit mode (I'm in 64bit), 64 bit, whith g++ 3.4.6 and g++ 4.1.1

It seem's you succeed in compiling it, how do you made it ? Did you have to modify the c++ code ?
I have done modification to the SConsctruct file but I don't know anything about C++.
Any help ?

Nicolas
Top
pjv
Guru
Guru
User avatar
Posts: 353
Joined: Wed Jul 02, 2003 12:51 pm
Location: Belgium

  • Quote

Post by pjv » Wed Dec 20, 2006 11:01 pm

It still compiles here, I'm not doing anything different then you are I suppose. I get:

Code: Select all

g++ -Dlinux -pipe -DQT_THREAD_SUPPORT -D_REENTRANT -fPIC -O -DNDEBUG -DNO_DEBUG -I/usr/qt/3/include -I/usr/include/PCSC -Isrc/eidlib -Isrc/newpkcs11/src/include -c -o src/eidlib/OpenSCReader.os src/eidlib/OpenSCReader.cpp
This is my ./configure:

Code: Select all

Checking for Python               :  /usr/bin/python
Checking for SCons                :  /usr/bin/scons
calling scons configure with parameters
scons: Reading SConscript files ...
Checking for pkg-config... ok
Checking for libpcsclite >= 1.2.9... ok
Checking for openssl >= 0.9.7... ok
Checking for QApplication qapp(0,0) in C++ library qt-mt... yes
Checking for SSLeay() in C library crypto... yes
Checking for SSL_library_init() in C library ssl... yes
Checking for main() in C library wx_gtk-2.4... no
Checking for main() in C library wx_gtk2u_core-2.6... yes
Checking for C header file openssl/bio.h... yes
Checking for C header file openssl/conf.h... yes
Checking for C header file openssl/ocsp.h... yes
Checking for C header file openssl/ssl.h... yes
Checking for C header file pcsclite.h... yes
Checking for C header file assert.h... yes
Checking for C header file ctype.h... yes
Checking for C header file float.h... yes
Checking for C header file stdarg.h... yes
Checking for C header file stdio.h... yes
Checking for C header file stdlib.h... yes
Checking for C header file string.h... yes
Checking for C++ header file algorithm... yes
Checking for C++ header file map... yes
Checking for C++ header file string... yes
Checking for C++ header file vector... yes
Checking for C header file jni.h... yes
My g++ version is:

Code: Select all

gcc versie 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
This is the md5sum of the tarball, compare it:

Code: Select all

md5sum Belgian_Identity_Card_Run-time2.5.9.tar.bz2
00de5e4680ee1508e99ebe3c551ce0a2  Belgian_Identity_Card_Run-time2.5.9.tar.bz2
It might have something to do with you being 64-bit, try to get hold of a 32-bit system to compare.

I also noticed the link for the tarball above is dead: but it should be somewhere on eid.belgium.be, maybe even a newer version??

Good luck!
Top
potens
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 76
Joined: Fri Oct 17, 2003 2:52 pm
Location: Belgium, world's asshole

  • Quote

Post by potens » Wed Dec 20, 2006 11:18 pm

Thanks for your answer.

my ./configure give me an output different from yours :

where you get

Code: Select all

Checking for main() in C library wx_gtk-2.4... no
Checking for main() in C library wx_gtk2u_core-2.6... yes 
I get :

Code: Select all

Checking for main() in C library wx_gtk-2.4... (cached) yes
Very strange, the md5sum is good, must be a 64bit problem (bad luck :'( ), I should try to find
how to mimic a full 32bit env
EDIT: you where right, if I try :

Code: Select all

 gcc32 -Dlinux -pipe -DQT_THREAD_SUPPORT -D_REENTRANT -fPIC -O -DNDEBUG -DNO_DEBUG -I/usr/qt/3/include -I/usr/include/PCSC -Isrc/eidlib -Isrc/newpkcs11/src/include -c -o src/eidlib/OpenSCReader.os src/eidlib/OpenSCReader.cpp
It seems to work. Now, I've to find how to set it for all the compilation.

There is no new version but the old is there :
http://www.belgium.be/zip/Belgian_Ident ... .9.tar.bz2

Tanks a lot,
Nicolas
Top
rhican
n00b
n00b
Posts: 9
Joined: Tue Aug 01, 2006 8:04 am

  • Quote

Post by rhican » Mon Dec 25, 2006 3:33 pm

i can't entirely follow the current status of the thread, but i got it running on my 32bit system without any apparant troubles, took me a while before it saw wx_gtk but that's all solved now. so if there is any info you need let me know

kinda fun to see it working ..
Top
kurtsmaze
n00b
n00b
User avatar
Posts: 5
Joined: Fri Jun 11, 2004 1:39 pm
Location: Gent, Belgium
Contact:
Contact kurtsmaze
Website

  • Quote

Post by kurtsmaze » Sat Mar 01, 2008 4:53 pm

hello,

these were my steps to read my Belgian eID card:

Code: Select all

emerge -av ccid
revdep-rebuild --library libpcsclite.so.0
tar -xvf Belgian_Identity_Card_Run-time2.5.9.tar
edit file SConstruct: put QT stuff in comments (otherwise ./configure says qt-mt not found)
edit file src/newpkcs11/src/libopensc/reader-pcsc.c: put #define SCARD_SCOPE_GLOBAL.. in comment, and on line 509, change first parameter of function SCardEstablishContext to : SCARD_SCOPE_USER (otherwise compiler error)

Code: Select all

./configure
make
su
make install
exit
sudo /etc/init.d/pcscd start
beidgui &
finally insert your ID card!

regards,
Kurt
Top
pivertd
Apprentice
Apprentice
User avatar
Posts: 185
Joined: Sun Feb 08, 2004 1:10 pm
Location: Arlon, Belgium

  • Quote

Post by pivertd » Wed Jun 11, 2008 8:16 pm

Bonsoir,

Il semble que l'on ne trouve plus le fichier Belgian_Identity_Card_Run-time2.5.9.tar

En revanche, on trouve beid-2.6.0

Mais il ne trouve pas qt-mt :

Code: Select all

bart beid-2.6.0 # ./configure
Checking for Python               :  /usr/bin/python
Checking for SCons                :  /usr/bin/scons
calling scons configure with parameters
scons: Reading SConscript files ...
Checking for pkg-config... yes
Checking for qt-mt >= 3.3.3... no
qt-mt >= 3.3.3 not found.
bart beid-2.6.0 # tail config.log
file /home/pivert/Download/beid-2.6.0/SConstruct,line 60:
        Configure(confdir = .sconf_temp)
scons: Configure: Checking for pkg-config...
pkg-config --atleast-pkgconfig-version=0.15.0
scons: Configure: yes

scons: Configure: Checking for qt-mt >= 3.3.3...
pkg-config --exists 'qt-mt >= 3.3.3'
scons: Configure: no

bart beid-2.6.0 # ls -lh /usr/qt/3/lib/libqt*
-rwxr-xr-x 1 root root  799 nov 26  2007 /usr/qt/3/lib/libqt-mt.la
-rw-r--r-- 1 root root  805 nov 26  2007 /usr/qt/3/lib/libqt-mt.prl
lrwxrwxrwx 1 root root   13 déc 30 19:18 /usr/qt/3/lib/libqt-mt.so -> libqt-mt.so.3
lrwxrwxrwx 1 root root   15 déc 30 19:18 /usr/qt/3/lib/libqt-mt.so.3 -> libqt-mt.so.3.3
lrwxrwxrwx 1 root root   17 déc 30 19:18 /usr/qt/3/lib/libqt-mt.so.3.3 -> libqt-mt.so.3.3.8
-rwxr-xr-x 1 root root 7,0M nov 26  2007 /usr/qt/3/lib/libqt-mt.so.3.3.8
lrwxrwxrwx 1 root root   11 déc 30 19:18 /usr/qt/3/lib/libqt.so -> libqt-mt.so
lrwxrwxrwx 1 root root   13 déc 30 19:18 /usr/qt/3/lib/libqt.so.3 -> libqt-mt.so.3
lrwxrwxrwx 1 root root   15 déc 30 19:18 /usr/qt/3/lib/libqt.so.3.3 -> libqt-mt.so.3.3
lrwxrwxrwx 1 root root   17 déc 30 19:18 /usr/qt/3/lib/libqt.so.3.3.8 -> libqt-mt.so.3.3.8
Any idea ?
Top
kurtsmaze
n00b
n00b
User avatar
Posts: 5
Joined: Fri Jun 11, 2004 1:39 pm
Location: Gent, Belgium
Contact:
Contact kurtsmaze
Website

  • Quote

Post by kurtsmaze » Thu Jun 12, 2008 5:44 pm

in file beid-2.6.0/SConstruct, you have to put these three lines in comment:

Code: Select all

#    if not conf.CheckPKG('qt-mt >= 3.3.3'):
#        print 'qt-mt >= 3.3.3 not found.'
#        Exit(1)
Top
pjv
Guru
Guru
User avatar
Posts: 353
Joined: Wed Jul 02, 2003 12:51 pm
Location: Belgium

  • Quote

Post by pjv » Tue Jul 15, 2008 3:52 pm

There is a similar thread in Dutch: http://forums.gentoo.org/viewtopic.php? ... 54#4749554 And there is a (by this time slightly old) ebuild on bugs.gentoo.org. Just crossreferencing.
Top
Post Reply

12 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy