From: juya K. <sty...@gm...> - 2016-04-20 09:17:11
|
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 |