Re: Call for Windows contributors
Oh yeah, I could create also libnfc-1.5.1-win32.exe setup package.
Oh nice!
Could you explain how to proceed ?
Public platform independent Near Field Communication (NFC) library
You are not logged in. Please login or register.
Oh yeah, I could create also libnfc-1.5.1-win32.exe setup package.
Oh nice!
Could you explain how to proceed ?
Romuald, I remember that in previous versions it was possible build a setup package launching:
mingw32-make package
I tried to launch it but I got this error:
[...]
CPack: - Run preinstall target for: libnfc
CPack: - Install project: libnfc
CPack: - Install component: Unspecified
CMake Error at c:/Program Files/CMake 2.8/share/cmake-2.8/Modules/BundleUtilities.cmake:657 (message):
error: fixup_bundle: not a valid bundle
Call Stack (most recent call first):
C:/libnfc-1.2.1-vs2005/svn/libnfc-read-only/bin/utils/FixBundle.cmake:11 (fixup_bundle)
C:/libnfc-1.2.1-vs2005/svn/libnfc-read-only/bin/utils/cmake_install.cmake:91 (INCLUDE)
C:/libnfc-1.2.1-vs2005/svn/libnfc-read-only/bin/cmake_install.cmake:34 (INCLUDE)
CMake Error at c:/Program Files/CMake 2.8/share/cmake-2.8/Modules/BundleUtilities.cmake:657 (message):
error: fixup_bundle: not a valid bundle
Call Stack (most recent call first):
C:/libnfc-1.2.1-vs2005/svn/libnfc-read-only/bin/examples/FixBundle.cmake:11 (fixup_bundle)
C:/libnfc-1.2.1-vs2005/svn/libnfc-read-only/bin/examples/cmake_install.cmake:101 (INCLUDE)
C:/libnfc-1.2.1-vs2005/svn/libnfc-read-only/bin/cmake_install.cmake:35 (INCLUDE)
CPack Error: Error when generating package: libnfc
So I opened Makefile to understand what operations were lauched and I discovered that the process which tries to create setup package is
cpack --config CPackConfig.cmake
so I opened it and I found this line
SET(CPACK_COMPONENTS_ALL "Undefined;examples;headers;libraries;utils")
it was not so clear to me the mean of Undefined value so I tried to remove it and the new line became
SET(CPACK_COMPONENTS_ALL "examples;headers;libraries;utils")
Now I could compile and I got my setup package.
Installing it on my pc it seems to be ok, I have bin files, include files, examples and library file.
@rleo79 I need NSIS for the "mingw32-make package" ?
Yes according that page : http://www.vtk.org/Wiki/CMake:CPackPack s_settings you need NSIS installed to create packages
Leo
I'm currently getting the following snippet when trying to compile nfc.dll under windows 7 64bit.
In file included from C:\tools\libnfcro\libnfc\buses\uart.c:41:0:
C:\tools\libnfcro\libnfc\buses\uart_win32.c: In function 'uart_receive':
C:\tools\libnfcro\libnfc\buses\uart_win32.c:159:12: error: 'ECOMIO' undeclared (first use in this function)
C:\tools\libnfcro\libnfc\buses\uart_win32.c:159:12: note: each undeclared identifier is reported only once for each function it appears in
C:\tools\libnfcro\libnfc\buses\uart_win32.c:179:11: error: 'ECOMTIMEOUT' undeclared (first use in this function)
C:\tools\libnfcro\libnfc\buses\uart_win32.c:187:14: error: 'EOPABORT' undeclared (first use in this function)
C:\tools\libnfcro\libnfc\buses\uart_win32.c: In function 'uart_send':
C:\tools\libnfcro\libnfc\buses\uart_win32.c:208:12: error: 'ECOMIO' undeclared (first use in this function)
C:\tools\libnfcro\libnfc\buses\uart.c: In function 'uart_receive':
C:\tools\libnfcro\libnfc\buses\uart_win32.c:193:1: warning: control reaches end of non-void function [-Wreturn-type]
mingw32-make[2]: *** [libnfc/CMakeFiles/nfc.dir/buses/uart.c.obj] Error 1
mingw32-make[2]: Leaving directory `C:/tools/libnfcro'
mingw32-make[1]: *** [libnfc/CMakeFiles/nfc.dir/all] Error 2
mingw32-make[1]: Leaving directory `C:/tools/libnfcro'
mingw32-make: *** [all] Error 2Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 2 official extensions. Copyright © 2003–2009 PunBB.