smartcardpp kompileerimine FreeBSD all

56 views
Skip to first unread message

toomas.aas

unread,
Jul 9, 2011, 6:29:08 AM7/9/11
to esteid-devel
Tekkis huvi proovida FreeBSD all brauseri pluginat kompileerida.


# uname -a
FreeBSD disco.kodu.lan 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Mon Apr 4
21:26:22 EEST 2011 toomas@:/usr/obj/usr/src/sys/DISCO i386

# gcc -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719 [FreeBSD]

Nagu aru saan, on eelduseks muuhulgas smartcardpp. Tõmbasin alla
smartcardpp-0.2.0.tar.bz2, pakkisin selle lahti ja tegin nii

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local
make

make aga annab igavesti pika veaväljundi:

[ 73%] Building CXX object CMakeFiles/smartcardpp.dir/
PCSCManager.cpp.o
In file included from /home/toomas/plugin/smartcardpp-0.2.0/
PCSCManager.cpp:17:
/home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
17:27: error: PCSC/wintypes.h: No such file or directory
/home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
18:27: error: PCSC/pcsclite.h: No such file or directory
/home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
19:27: error: PCSC/winscard.h: No such file or directory
In file included from /home/toomas/plugin/smartcardpp-0.2.0/
PCSCManager.cpp:17:
/home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
49: error: 'SCARDHANDLE' does not name a type
/home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
50: error: 'DWORD' does not name a type
/home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
51: error: 'DWORD' does not name a type
/home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
52: error: 'DWORD' does not name a type
/home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
53: error: 'DWORD' does not name a type
/home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
54: error: 'DWORD' does not name a type
/home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
55: error: 'DWORD' does not name a type
/home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
56: error: 'DWORD' does not name a type
/home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
61: error: 'SCARDHANDLE' has not been declared
/home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
61: error: 'DWORD' has not been declared
/home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
In constructor 'PCSCConnection::PCSCConnection(ManagerInterface&, int,
int)':
/home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
62: error: class 'PCSCConnection' does not have any field named
'hScard'
/home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
62: error: class 'PCSCConnection' does not have any field named
'proto'

[... tegelt on neid vigu veel aga ei hakka kõike siia pastema ...]

Mida ma valesti teen? Proovisin BSD make asemel ka GNU make'i, aga
tulemus sellest ei tundu muutuvat.

Kalev Lember

unread,
Jul 9, 2011, 1:31:38 PM7/9/11
to esteid...@googlegroups.com
On 07/09/2011 01:29 PM, toomas.aas wrote:
> [ 73%] Building CXX object CMakeFiles/smartcardpp.dir/
> PCSCManager.cpp.o
> In file included from /home/toomas/plugin/smartcardpp-0.2.0/
> PCSCManager.cpp:17:
> /home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
> 17:27: error: PCSC/wintypes.h: No such file or directory
> /home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
> 18:27: error: PCSC/pcsclite.h: No such file or directory
> /home/toomas/plugin/smartcardpp-0.2.0/build/smartcardpp/PCSCManager.h:
> 19:27: error: PCSC/winscard.h: No such file or directory

Proovi, kas PCSCManager.h failis #includedes PCSC/ �ra kustutamine teeb
midagi paremaks:

--- PCSCManager.h
+++ PCSCManager.h
@@ -14,9 +14,9 @@
typedef void *LPVOID;
#define __COREFOUNDATION_CFPLUGINCOM__
#endif
-#include <PCSC/wintypes.h>
-#include <PCSC/pcsclite.h>
-#include <PCSC/winscard.h>
+#include <wintypes.h>
+#include <pcsclite.h>
+#include <winscard.h>
#include <arpa/inet.h>
#else
#pragma warning(push)

--
Kalev

toomas.aas

unread,
Jul 9, 2011, 3:38:57 PM7/9/11
to esteid-devel


On Jul 9, 8:31 pm, Kalev Lember <kalevlem...@gmail.com> wrote:
> Proovi, kas PCSCManager.h failis #includedes PCSC/ ra kustutamine teeb
> midagi paremaks:

Aitäh, tegi tõesti paremaks - kompileerimise protsess jõudis võiduka
lõpuni.

Kalev Lember

unread,
Jul 10, 2011, 3:32:26 AM7/10/11
to esteid...@googlegroups.com
On 07/09/2011 10:38 PM, toomas.aas wrote:
>
>
> On Jul 9, 8:31 pm, Kalev Lember <kalevlem...@gmail.com> wrote:
>> Proovi, kas PCSCManager.h failis #includedes PCSC/ ra kustutamine teeb
>> midagi paremaks:
>
> Ait�h, tegi t�esti paremaks - kompileerimise protsess j�udis v�iduka
> l�puni.

Hea kuulda. Commitisin selle muudatuse ka svn-i:
http://code.google.com/p/esteid/source/detail?r=3871

--
Kalev

kaid...@gmail.com

unread,
Jul 13, 2013, 1:16:01 AM7/13/13
to esteid...@googlegroups.com, allveelaeva...@gmail.com
Mul tuli korra meelde kogu see värk ja googeldades leidsin siinse threadi.
Väga üllatunud et see koodibaas ikka veel elus on - häkke täis servast serva, halvad interfeisid ja vilets arhitektuur. Kellelgi pole aega ja tahtmist vahepeal full rewrite teha ? Palju paremini saaks ju.

-kert
Reply all
Reply to author
Forward
0 new messages