From: Karsten O. <wid...@t-...> - 2016-04-20 14:12:33
|
Hi Kim, Try to modify the file types.h: #ifndef _WIN32 #include <PCSC/wintypes.h> *#define **LPCTSTR LPCSTR* #endif ** There is already the section: #ifndef _WIN32 #include <PCSC/wintypes.h>** #endif Add *#define **LPCTSTR LPCSTR*to it like indicated above and see if it helps.If this helps I will commit it.* *Best Regards,* *Karsten* * Am 20.04.2016 um 11:17 schrieb juya Kim: > Dear Karsten, > > I am now working to compile globalplatform but, compile error is shown > and I do not really what the problem is. > > Platform : Mac OS X El Capitan > Cmake : ver 2.8.12.2 > zlib : used pre-installed lib from Mac > openssl : > This is compile error as below > > Thanks for your help in advance! > BR > > -- The C compiler identification is Clang 7.0.0 > -- Check for working C compiler: /usr/bin/cc > -- Check for working C compiler: /usr/bin/cc -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Found Doxygen: /Applications/Doxygen.app/Contents/Resources/doxygen > (found version "1.8.10") > -- Found DOXYFILE_IN: > /Users/juyakim/Downloads/globalplatform-code-471-branches-libglobalplatform_cmake/Doxyfile.in > > -- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29") > -- checking for module 'libpcsclite' > -- found libpcsclite, version 1.8.16 > -- Found PCSC: pcsclite > -- Found OpenSSL: > /usr/local/lib/libssl.dylib;/usr/local/lib/libcrypto.dylib (found > version "1.1.0-pre4") > -- Found ZLIB: /usr/local/lib/libz.dylib (found version "1.2.8") > -- Configuring done > -- Generating done > -- Build files have been written to: > /Users/juyakim/Downloads/globalplatform-code-471-branches-libglobalplatform_cmake > Marcs-MacBook-Pro:globalplatform-code-471-branches-libglobalplatform_cmake > juyakim$ make > *Scanning dependencies of target globalplatform* > [ 10%] Building C object src/CMakeFiles/globalplatform.dir/connection.c.o > In file included from > /Users/juyakim/Downloads/globalplatform-code-471-branches-libglobalplatform_cmake/src/connection.c:19: > */Users/juyakim/Downloads/globalplatform-code-471-branches-libglobalplatform_cmake/src/dyn_generic.h:42:57: > **error: **unknown type name 'LPCTSTR'; did you mean 'LPCSTR'?* > OPGP_ERROR_STATUS DYN_LoadLibrary(PVOID *libraryHandle, LPCTSTR > libraryName, LPCTSTR version); > * ^~~~~~~* > LPCSTR > */usr/local/include/PCSC/wintypes.h:69:25: note: *'LPCSTR' declared here > typedef const char *LPCSTR; > * ^* > In file included from > /Users/juyakim/Downloads/globalplatform-code-471-branches-libglobalplatform_cmake/src/connection.c:19: > */Users/juyakim/Downloads/globalplatform-code-471-branches-libglobalplatform_cmake/src/dyn_generic.h:42:78: > **error: **unknown type name 'LPCTSTR'; did you mean 'LPCSTR'?* > OPGP_ERROR_STATUS DYN_LoadLibrary(PVOID *libraryHandle, LPCTSTR > libraryName, LPCTSTR version); > * > ^~~~~~~* > > LPCSTR > */usr/local/include/PCSC/wintypes.h:69:25: note: *'LPCSTR' declared here > typedef const char *LPCSTR; > * ^* > In file included from > /Users/juyakim/Downloads/globalplatform-code-471-branches-libglobalplatform_cmake/src/connection.c:19: > */Users/juyakim/Downloads/globalplatform-code-471-branches-libglobalplatform_cmake/src/dyn_generic.h:50:78: > **error: **unknown type name 'LPCTSTR'; did you mean 'LPCSTR'?* > OPGP_ERROR_STATUS DYN_GetAddress(PVOID libraryHandle, PVOID > *functionHandle, LPCTSTR functionName); > * > ^~~~~~~* > > LPCSTR > */usr/local/include/PCSC/wintypes.h:69:25: note: *'LPCSTR' declared here > typedef const char *LPCSTR; > * ^* > */Users/juyakim/Downloads/globalplatform-code-471-branches-libglobalplatform_cmake/src/connection.c:61:70: > **error: **expected ')'* > errorStatus = DYN_LoadLibrary(&cardContext->libraryHandle, > (LPCTSTR)cardContext->libraryName, (LPCTSTR)cardContext->libraryVersion); > * > ^* > */Users/juyakim/Downloads/globalplatform-code-471-branches-libglobalplatform_cmake/src/connection.c:61:31: > note: *to match this '(' > errorStatus = DYN_LoadLibrary(&cardContext->libraryHandle, > (LPCTSTR)cardContext->libraryName, (LPCTSTR)cardContext->libraryVersion); > * ^* > 4 errors generated. > make[2]: *** [src/CMakeFiles/globalplatform.dir/connection.c.o] Error 1 > make[1]: *** [src/CMakeFiles/globalplatform.dir/all] Error 2 > > > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > > > _______________________________________________ > Globalplatform-developers mailing list > Glo...@li... > https://lists.sourceforge.net/lists/listinfo/globalplatform-developers |