WatirCraft doesn't work on Mac
Subject: Does watircraft work on Mac OS?
Hi Bret,
I just tried to do a "gem install bret-watircraft" on my Mac, and I received a lot of win32/api errors. The Watir site says that it works for Mac OS (firefox, safari), but I didn't see any platform info on the Watircraft site. Can these be ignored?
Thanks, Cynthia Sadler
Reply on GitHub: http://github.com/inbox/72274#reply
Yes, I was trying to install watircraft to check out the new framework. This is after successfully installing firewatir.
cynthia-sadlers-macbook-pro:~ cynthia$ sudo gem install bret-watircraft
Password:
Building native extensions. This could take a while...
ERROR: Error installing bret-watircraft:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install bret-watircraft
checking for strncpy_s()... no
creating Makefile
make
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -c win32/api.c
win32/api.c:2:21: error: windows.h: No such file or directory
win32/api.c:33: error: syntax error before ‘HANDLE’
win32/api.c:33: warning: no semicolon at end of struct or union
win32/api.c:34: warning: data definition has no type or storage class
win32/api.c:37: error: syntax error before ‘}’ token
win32/api.c:37: warning: data definition has no type or storage class
win32/api.c:39: error: syntax error before ‘*’ token
win32/api.c: In function ‘api_free’:
win32/api.c:40: error: ‘ptr’ undeclared (first use in this function)
win32/api.c:40: error: (Each undeclared identifier is reported only once
win32/api.c:40: error: for each function it appears in.)
win32/api.c: In function ‘api_allocate’:
win32/api.c:48: error: ‘ptr’ undeclared (first use in this function)
win32/api.c: At top level:
win32/api.c:58: error: syntax error before ‘dwError’
win32/api.c: In function ‘StringError’:
win32/api.c:59: error: ‘LPVOID’ undeclared (first use in this function)
win32/api.c:59: error: syntax error before ‘lpMsgBuf’
win32/api.c:60: error: ‘MAX_PATH’ undeclared (first use in this function)
win32/api.c:61: error: ‘DWORD’ undeclared (first use in this function)
win32/api.c:61: error: syntax error before ‘dwLen’
win32/api.c:64: error: ‘dwLen’ undeclared (first use in this function)
win32/api.c:65: error: ‘FORMAT_MESSAGE_ALLOCATE_BUFFER’ undeclared (first use in this function)
win32/api.c:66: error: ‘FORMAT_MESSAGE_FROM_SYSTEM’ undeclared (first use in this function)
win32/api.c:67: error: ‘FORMAT_MESSAGE_IGNORE_INSERTS’ undeclared (first use in this function)
win32/api.c:69: error: ‘dwError’ undeclared (first use in this function)
win32/api.c:70: error: ‘LANG_ENGLISH’ undeclared (first use in this function)
win32/api.c:70: error: ‘SUBLANG_ENGLISH_US’ undeclared (first use in this function)
win32/api.c:71: error: ‘LPSTR’ undeclared (first use in this function)
win32/api.c:71: error: ‘lpMsgBuf’ undeclared (first use in this function)
win32/api.c: In function ‘callback_init’:
win32/api.c:163: error: ‘LPARAM’ undeclared (first use in this function)
win32/api.c:163: error: syntax error before ‘CallbackTable’
win32/api.c:2:21: error: windows.h: No such file or directory
win32/api.c:33: error: syntax error before ‘HANDLE’
win32/api.c:33: warning: no semicolon at end of struct or union
win32/api.c:34: warning: data definition has no type or storage class
win32/api.c:37: error: syntax error before ‘}’ token
win32/api.c:37: warning: data definition has no type or storage class
win32/api.c:39: error: syntax error before ‘*’ token
win32/api.c: In function ‘api_free’:
win32/api.c:40: error: ‘ptr’ undeclared (first use in this function)
win32/api.c:40: error: (Each undeclared identifier is reported only once
win32/api.c:40: error: for each function it appears in.)
win32/api.c: In function ‘api_allocate’:
win32/api.c:48: error: ‘ptr’ undeclared (first use in this function)
win32/api.c: At top level:
win32/api.c:58: error: syntax error before ‘dwError’
win32/api.c: In function ‘StringError’:
win32/api.c:59: error: ‘LPVOID’ undeclared (first use in this function)
win32/api.c:59: error: syntax error before ‘lpMsgBuf’
win32/api.c:60: error: ‘MAX_PATH’ undeclared (first use in this function)
win32/api.c:61: error: ‘DWORD’ undeclared (first use in this function)
win32/api.c:61: error: syntax error before ‘dwLen’
win32/api.c:64: error: ‘dwLen’ undeclared (first use in this function)
win32/api.c:65: error: ‘FORMAT_MESSAGE_ALLOCATE_BUFFER’ undeclared (first use in this function)
win32/api.c:66: error: ‘FORMAT_MESSAGE_FROM_SYSTEM’ undeclared (first use in this function)
win32/api.c:67: error: ‘FORMAT_MESSAGE_IGNORE_INSERTS’ undeclared (first use in this function)
win32/api.c: In function ‘api_init’:win32/api.c:69: error: ‘dwError’ undeclared (first use in this function)
win32/api.c:70: error: ‘LANG_ENGLISH’ undeclared (first use in this function)
win32/api.c:210: error: ‘HMODULE’ undeclared (first use in this function)
win32/api.c:70: error: ‘SUBLANG_ENGLISH_US’ undeclared (first use in this function)
win32/api.c:210: error: syntax error before ‘hLibrary’
win32/api.c:71: error: ‘LPSTR’ undeclared (first use in this function)
win32/api.c:211: error: ‘FARPROC’ undeclared (first use in this function)
win32/api.c:71: error: ‘lpMsgBuf’ undeclared (first use in this function)
win32/api.c:212: error: ‘ptr’ undeclared (first use in this function)
win32/api.c:220: error: syntax error before ‘)’ token
win32/api.c:247: error: ‘hLibrary’ undeclared (first use in this function)
win32/api.c:264: error: ‘fProc’ undeclared (first use in this function)
win32/api.c: In function ‘callback_init’:
win32/api.c:163: error: ‘LPARAM’ undeclared (first use in this function)
win32/api.c:163: error: syntax error before ‘CallbackTable’
win32/api.c: In function ‘api_init’:
win32/api.c:210: error: ‘HMODULE’ undeclared (first use in this function)
win32/api.c:210: error: syntax error before ‘hLibrary’
win32/api.c:211: error: ‘FARPROC’ undeclared (first use in this function)
win32/api.c:212: error: ‘ptr’ undeclared (first use in this function)
win32/api.c:220: error: syntax error before ‘)’ token
win32/api.c:247: error: ‘hLibrary’ undeclared (first use in this function)
win32/api.c:264: error: ‘fProc’ undeclared (first use in this function)
win32/api.c: In function ‘func_init’:
win32/api.c:407: error: ‘ptr’ undeclared (first use in this function)
win32/api.c:413: error: syntax error before ‘)’ token
win32/api.c:433: error: ‘FARPROC’ undeclared (first use in this function)
win32/api.c: At top level:
win32/api.c:505: error: syntax error before ‘DWORD’
win32/api.c:505: warning: no semicolon at end of struct or union
win32/api.c:506: warning: data definition has no type or storage class
win32/api.c: In function ‘func_init’:win32/api.c:509: error: syntax error before ‘CallbackFunction’
win32/api.c:407: error: ‘ptr’ undeclared (first use in this function)
win32/api.c:509: error: syntax error before ‘param’
win32/api.c:413: error: syntax error before ‘)’ token
win32/api.c: In function ‘CallbackFunction’:
win32/api.c:531: error: ‘param’ undeclared (first use in this function)
win32/api.c:433: error: ‘FARPROC’ undeclared (first use in this function)
win32/api.c:542: warning: cast to pointer from integer of different size
win32/api.c:553: error: ‘TRUE’ undeclared (first use in this function)
win32/api.c:555: error: ‘FALSE’ undeclared (first use in this function)
win32/api.c: At top level:
win32/api.c:505: error: syntax error before ‘DWORD’
win32/api.c:505: warning: no semicolon at end of struct or union
win32/api.c:506: warning: data definition has no type or storage class
win32/api.c:509: error: syntax error before ‘CallbackFunction’
win32/api.c:509: error: syntax error before ‘param’
win32/api.c: In function ‘CallbackFunction’:
win32/api.c:531: error: ‘param’ undeclared (first use in this function)
win32/api.c:542: warning: cast to pointer from integer of different size
win32/api.c:553: error: ‘TRUE’ undeclared (first use in this function)
win32/api.c:555: error: ‘FALSE’ undeclared (first use in this function)
win32/api.c: At top level:
win32/api.c:586: error: syntax error before ‘CALLBACK’
win32/api.c: In function ‘CallbackFunction0’:
win32/api.c:587: error: syntax error before ‘param’
win32/api.c: At top level:
win32/api.c:588: error: syntax error before ‘.’ token
win32/api.c:592: error: syntax error before ‘p1’
win32/api.c: In function ‘CallbackFunction1’:
win32/api.c:593: error: syntax error before ‘param’
win32/api.c: At top level:
win32/api.c:597: error: syntax error before ‘p1’
win32/api.c: At top level:
win32/api.c:586: error: syntax error before ‘CALLBACK’
win32/api.c: In function ‘CallbackFunction0’:
win32/api.c:587: error: syntax error before ‘param’
win32/api.c: At top level:
win32/api.c:588: error: syntax error before ‘.’ token
win32/api.c: In function ‘CallbackFunction2’:
win32/api.c:598: error: syntax error before ‘param’
win32/api.c:592: error: syntax error before ‘p1’
win32/api.c: In function ‘CallbackFunction1’:
win32/api.c: At top level:win32/api.c:593: error: syntax error before ‘param’
win32/api.c:602: error: syntax error before ‘p1’
win32/api.c: At top level:win32/api.c: In function ‘CallbackFunction3’:
win32/api.c:603: error: syntax error before ‘param’
win32/api.c:597: error: syntax error before ‘p1’
win32/api.c: At top level:
win32/api.c:607: error: syntax error before ‘p1’
win32/api.c: In function ‘CallbackFunction2’:
win32/api.c:598: error: syntax error before ‘param’
win32/api.c: In function ‘CallbackFunction4’:
win32/api.c:608: error: syntax error before ‘param’
win32/api.c: At top level:
win32/api.c:602: error: syntax error before ‘p1’
win32/api.c: At top level:
win32/api.c:613: error: syntax error before ‘p1’
win32/api.c: In function ‘CallbackFunction5’:
win32/api.c:616: error: syntax error before ‘param’
win32/api.c: In function ‘CallbackFunction3’:
win32/api.c: At top level:
win32/api.c:621: error: syntax error before ‘p1’
win32/api.c:603: error: syntax error before ‘param’
win32/api.c: In function ‘CallbackFunction6’:
win32/api.c:624: error: syntax error before ‘param’
win32/api.c: At top level:
win32/api.c:607: error: syntax error before ‘p1’win32/api.c: At top level:
win32/api.c:629: error: syntax error before ‘p1’
win32/api.c: In function ‘CallbackFunction4’:
win32/api.c: In function ‘CallbackFunction7’:
win32/api.c:608: error: syntax error before ‘param’
win32/api.c:631: error: syntax error before ‘param’
win32/api.c: At top level:win32/api.c: At top level:
win32/api.c:636: error: syntax error before ‘p1’win32/api.c:613: error: syntax error before ‘p1’
win32/api.c: In function ‘CallbackFunction5’:
win32/api.c: In function ‘CallbackFunction8’:
win32/api.c:640: error: syntax error before ‘param’
win32/api.c:616: error: syntax error before ‘param’
win32/api.c: At top level:
win32/api.c:645: error: syntax error before ‘p1’
win32/api.c: At top level:
win32/api.c:621: error: syntax error before ‘p1’
win32/api.c: In function ‘CallbackFunction9’:
win32/api.c:649: error: syntax error before ‘param’
win32/api.c: In function ‘CallbackFunction6’:
win32/api.c:624: error: syntax error before ‘param’
win32/api.c: At top level:
win32/api.c:629: error: syntax error before ‘p1’
win32/api.c: In function ‘CallbackFunction7’:
win32/api.c:631: error: syntax error before ‘param’
win32/api.c: At top level:
win32/api.c:636: error: syntax error before ‘p1’
win32/api.c: In function ‘CallbackFunction8’:
win32/api.c: In function ‘api_call’:win32/api.c:640: error: syntax error before ‘param’
win32/api.c:680: error: ‘ptr’ undeclared (first use in this function)
win32/api.c: At top level:
win32/api.c:645: error: syntax error before ‘p1’
win32/api.c: In function ‘CallbackFunction9’:
win32/api.c:649: error: syntax error before ‘param’
win32/api.c:689: error: syntax error before ‘)’ token
win32/api.c: In function ‘api_call’:
win32/api.c:680: error: ‘ptr’ undeclared (first use in this function)
win32/api.c:689: error: syntax error before ‘)’ token
win32/api.c:718: error: ‘TRUE’ undeclared (first use in this function)
win32/api.c:720: error: ‘FALSE’ undeclared (first use in this function)
win32/api.c:742: error: ‘LPARAM’ undeclared (first use in this function)
win32/api.c:742: error: syntax error before ‘CallbackTable’
win32/api.c:778: error: ‘TCHAR’ undeclared (first use in this function)
win32/api.c:778: error: syntax error before ‘)’ token
win32/api.c:783: error: syntax error before ‘)’ token
win32/api.c:718: error: ‘TRUE’ undeclared (first use in this function)
win32/api.c:720: error: ‘FALSE’ undeclared (first use in this function)
win32/api.c:794: error: syntax error before ‘)’ token
win32/api.c:799: error: syntax error before ‘)’ token
win32/api.c:742: error: ‘LPARAM’ undeclared (first use in this function)
win32/api.c:742: error: syntax error before ‘CallbackTable’
win32/api.c:778: error: ‘TCHAR’ undeclared (first use in this function)
win32/api.c:778: error: syntax error before ‘)’ token
win32/api.c:783: error: syntax error before ‘)’ token
win32/api.c:794: error: syntax error before ‘)’ token
win32/api.c:799: error: syntax error before ‘)’ token
lipo: can't open input file: /var/tmp//ccY6aCI0.out (No such file or directory)
make: *** [api.o] Error 1
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/win32-api-1.4.0 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/win32-api-1.4.0/ext/gem_make.out
cynthia-sadlers-macbook-pro:~ cynthia$
Reported by bret (at watircraft) · March 31st, 2009 @ 02:40 PM
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.