Can't build nsis on Ubuntu
So I'm trying to compile something that only has an nsi file in the source folder, so I figure I need to install nsis. This is on my Ubuntu box by the by. Here's what happens when I try to scons it:
:~/Desktop/nsis-2.23-src$ scons
scons: Reading SConscript files ...
Delete("nsis-04-Feb-2007.cvs")
Delete(".instdist")
Delete(".test")
Using GNU tools configuration
Checking for linker flag $MAP_FLAG... (cached) yes
Checking for linker flag -s... (cached) yes
Checking for linker flag $MAP_FLAG... (cached) yes
Checking for linker flag -s... (cached) yes
Checking for memcpy requirement... (cached) yes
Checking for memset requirement... (cached) yes
Checking for linker flag -pthread... (cached) yes
Checking for __BIG_ENDIAN__... (cached) no
Checking for C library gdi32... (cached) no
Checking for C library user32... (cached) no
Checking for C library pthread... (cached) yes
Checking for C library stdc++... (cached) yes
Checking for C library iconv... (cached) no
Checking for C library dl... (cached) yes
Checking for C library gdi32... (cached) no
Checking for C library iconv... (cached) no
Checking for C library user32... (cached) no
Checking for C++ library cppunit... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
gcc -o build/release/AdvSplash/advsplash.o -c -Os -Wall Contrib/AdvSplash/advsplash.c
Contrib/AdvSplash/advsplash.c:4:21: error: windows.h: No such file or directory
Contrib/AdvSplash/advsplash.c:5:22: error: windowsx.h: No such file or directoryIn file included from Contrib/AdvSplash/advsplash.c:6:
Contrib/AdvSplash/../ExDLL/exdll.h:27: error: syntax error before 'popstring'
Contrib/AdvSplash/../ExDLL/exdll.h:27: warning: type defaults to 'int' in declaration of 'popstring'
Contrib/AdvSplash/../ExDLL/exdll.h:27: warning: data definition has no type or storage class
Contrib/AdvSplash/../ExDLL/exdll.h:28: error: syntax error before 'pushstring'
Contrib/AdvSplash/../ExDLL/exdll.h:28: warning: type defaults to 'int' in declaration of 'pushstring'
Contrib/AdvSplash/../ExDLL/exdll.h:28: warning: data definition has no type or storage class
Contrib/AdvSplash/../ExDLL/exdll.h:77: error: syntax error before '*' token
Contrib/AdvSplash/../ExDLL/exdll.h:77: warning: no semicolon at end of struct or union
Contrib/AdvSplash/../ExDLL/exdll.h:78: error: syntax error before '*' token
Contrib/AdvSplash/../ExDLL/exdll.h:79: warning: type defaults to 'int' in declaration of 'extra_parameters'
Contrib/AdvSplash/../ExDLL/exdll.h:79: warning: data definition has no type or storage class
Contrib/AdvSplash/../ExDLL/exdll.h:82: error: syntax error before 'popstring'
Contrib/AdvSplash/../ExDLL/exdll.h:83: warning: return type defaults to 'int'
Contrib/AdvSplash/../ExDLL/exdll.h: In function 'popstring':
Contrib/AdvSplash/../ExDLL/exdll.h:87: warning: implicit declaration of function 'lstrcpy'
Contrib/AdvSplash/../ExDLL/exdll.h:89: warning: implicit declaration of function 'GlobalFree'
Contrib/AdvSplash/../ExDLL/exdll.h:89: error: 'HGLOBAL' undeclared (first use in this function)
Contrib/AdvSplash/../ExDLL/exdll.h:89: error: (Each undeclared identifier is reported only once
Contrib/AdvSplash/../ExDLL/exdll.h:89: error: for each function it appears in.)
Contrib/AdvSplash/../ExDLL/exdll.h:89: error: syntax error before 'th'
Contrib/AdvSplash/../ExDLL/exdll.h: At top level:
Contrib/AdvSplash/../ExDLL/exdll.h:93: error: syntax error before 'pushstring'
Contrib/AdvSplash/../ExDLL/exdll.h:94: warning: return type defaults to 'int'
Contrib/AdvSplash/../ExDLL/exdll.h: In function 'pushstring':
Contrib/AdvSplash/../ExDLL/exdll.h:96: warning: 'return' with no value, in function returning non-void
Contrib/AdvSplash/../ExDLL/exdll.h:97: warning: implicit declaration of function 'GlobalAlloc'
Contrib/AdvSplash/../ExDLL/exdll.h:97: error: 'GPTR' undeclared (first use in this function)
Contrib/AdvSplash/../ExDLL/exdll.h:98: warning: implicit declaration of function 'lstrcpyn'
Contrib/AdvSplash/../ExDLL/exdll.h: At top level:
Contrib/AdvSplash/../ExDLL/exdll.h:103: error: syntax error before 'getuservariable'
Contrib/AdvSplash/../ExDLL/exdll.h:104: warning: return type defaults to 'int'
Contrib/AdvSplash/../ExDLL/exdll.h: In function 'getuservariable':
Contrib/AdvSplash/../ExDLL/exdll.h:105: error: 'NULL' undeclared (first use in this function)
Contrib/AdvSplash/../ExDLL/exdll.h:106: warning: return makes integer from pointer without a cast
Contrib/AdvSplash/../ExDLL/exdll.h: At top level:
Contrib/AdvSplash/../ExDLL/exdll.h:109: error: syntax error before 'setuservariable'
Contrib/AdvSplash/../ExDLL/exdll.h:110: warning: return type defaults to 'int'
Contrib/AdvSplash/../ExDLL/exdll.h: In function 'setuservariable':
Contrib/AdvSplash/../ExDLL/exdll.h:111: error: 'NULL' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c: At top level:
Contrib/AdvSplash/advsplash.c:8: error: syntax error before 'g_hInstance'
Contrib/AdvSplash/advsplash.c:8: warning: type defaults to 'int' in declaration of 'g_hInstance'
Contrib/AdvSplash/advsplash.c:8: warning: data definition has no type or storage class
Contrib/AdvSplash/advsplash.c:12: error: syntax error before 'bm'
Contrib/AdvSplash/advsplash.c:12: warning: type defaults to 'int' in declaration of 'bm'
Contrib/AdvSplash/advsplash.c:12: warning: data definition has no type or storage class
Contrib/AdvSplash/advsplash.c:13: error: syntax error before 'g_hbm'
Contrib/AdvSplash/advsplash.c:13: warning: type defaults to 'int' in declaration of 'g_hbm'
Contrib/AdvSplash/advsplash.c:13: warning: data definition has no type or storage class
Contrib/AdvSplash/advsplash.c:20: error: syntax error before '*' token
Contrib/AdvSplash/advsplash.c:20: error: syntax error before 'hwnd'
Contrib/AdvSplash/advsplash.c:24: warning: type defaults to 'int' in declaration of 'BOOL'
Contrib/AdvSplash/advsplash.c:24: error: 'BOOL' declared as function returning a function
Contrib/AdvSplash/advsplash.c:25: error: syntax error before 'SetLayeredWindowAttributesProc'
Contrib/AdvSplash/advsplash.c:25: warning: type defaults to 'int' in declaration of 'SetLayeredWindowAttributesProc'
Contrib/AdvSplash/advsplash.c:25: warning: data definition has no type or storage class
Contrib/AdvSplash/advsplash.c:27: error: syntax error before 'CALLBACK'
Contrib/AdvSplash/advsplash.c:27: error: syntax error before 'hwnd'
Contrib/AdvSplash/advsplash.c:29: warning: return type defaults to 'int'
Contrib/AdvSplash/advsplash.c: In function 'WndProc':
Contrib/AdvSplash/advsplash.c:30: error: 'PAINTSTRUCT' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:30: error: syntax error before 'ps'
Contrib/AdvSplash/advsplash.c:31: error: 'RECT' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:32: error: 'HDC' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:34: error: 'HBITMAP' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:36: error: 'uMsg' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:37: error: 'WM_CREATE' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:38: warning: implicit declaration of function 'SystemParametersInfo'
Contrib/AdvSplash/advsplash.c:38: error: 'SPI_GETWORKAREA' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:38: error: 'r' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:39: warning: implicit declaration of function 'SetWindowLong'
Contrib/AdvSplash/advsplash.c:39: error: 'hwnd' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:39: error: 'GWL_STYLE' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:40: warning: implicit declaration of function 'SetWindowPos'
Contrib/AdvSplash/advsplash.c:40: error: 'NULL' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:41: error: request for member 'bmWidth' in something not a structure or union
Contrib/AdvSplash/advsplash.c:42: error: request for member 'bmHeight' in something not a structure or union
Contrib/AdvSplash/advsplash.c:43: error: request for member 'bmWidth' in something not a structure or union
Contrib/AdvSplash/advsplash.c:43: error: request for member 'bmHeight' in something not a structure or union
Contrib/AdvSplash/advsplash.c:43: error: 'SWP_NOZORDER' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:43: error: 'SWP_SHOWWINDOW' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:46: error: 'WM_PAINT' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:47: error: 'curdc' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:47: warning: implicit declaration of function 'BeginPaint'
Contrib/AdvSplash/advsplash.c:47: error: 'ps' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:48: error: 'hdc' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:48: warning: implicit declaration of function 'CreateCompatibleDC'
Contrib/AdvSplash/advsplash.c:49: warning: implicit declaration of function 'GetClientRect'
Contrib/AdvSplash/advsplash.c:51: error: 'oldbm' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:51: warning: implicit declaration of function 'SelectObject'
Contrib/AdvSplash/advsplash.c:52: warning: implicit declaration of function 'BitBlt'
Contrib/AdvSplash/advsplash.c:53: error: 'SRCCOPY' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:56: warning: implicit declaration of function 'DeleteDC'
Contrib/AdvSplash/advsplash.c:57: warning: implicit declaration of function 'EndPaint'
Contrib/AdvSplash/advsplash.c:59: error: 'WM_CLOSE' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:62: error: 'WM_TIMER' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:63: error: 'WM_LBUTTONDOWN' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:65: warning: implicit declaration of function 'DestroyWindow'
Contrib/AdvSplash/advsplash.c:68: warning: implicit declaration of function 'DefWindowProc'
Contrib/AdvSplash/advsplash.c:68: error: 'wParam' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:68: error: 'lParam' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c: At top level:
Contrib/AdvSplash/advsplash.c:71: error: syntax error before 'myWnd'
Contrib/AdvSplash/advsplash.c: In function 'SetTransparentRegion':
Contrib/AdvSplash/advsplash.c:73: error: 'HDC' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:73: error: syntax error before 'dc'
Contrib/AdvSplash/advsplash.c:75: error: 'HRGN' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:75: error: syntax error before 'region'
Contrib/AdvSplash/advsplash.c:76: error: 'BITMAPINFO' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:77: error: request for member 'bmWidth' in something not a structure or union
Contrib/AdvSplash/advsplash.c:77: error: request for member 'bmHeight' in something not a structure or union
Contrib/AdvSplash/advsplash.c:78: error: 'GPTR' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:78: warning: initialization makes pointer from integer without a cast
Contrib/AdvSplash/advsplash.c:80: error: 'bmi' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:81: error: 'BI_RGB' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:82: error: request for member 'bmHeight' in something not a structure or union
Contrib/AdvSplash/advsplash.c:84: error: 'BITMAPINFOHEADER' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:85: error: request for member 'bmWidth' in something not a structure or union
Contrib/AdvSplash/advsplash.c:89: error: 'dc' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:89: error: 'NULL' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:92: warning: implicit declaration of function 'GetDIBits'
Contrib/AdvSplash/advsplash.c:92: error: request for member 'bmHeight' in something not a structure or union
Contrib/AdvSplash/advsplash.c:92: error: 'DIB_RGB_COLORS' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:94: error: 'region' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:94: warning: implicit declaration of function 'CreateRectRgn'
Contrib/AdvSplash/advsplash.c:94: error: request for member 'bmWidth' in something not a structure or union
Contrib/AdvSplash/advsplash.c:94: error: request for member 'bmHeight' in something not a structure or union
Contrib/AdvSplash/advsplash.c:97: error: request for member 'bmHeight' in something not a structure or union
Contrib/AdvSplash/advsplash.c:98: error: request for member 'bmWidth' in something not a structure or union
Contrib/AdvSplash/advsplash.c:101: error: request for member 'bmWidth' in something not a structure or union
Contrib/AdvSplash/advsplash.c:106: error: 'cutrgn' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:107: warning: implicit declaration of function 'CombineRgn'
Contrib/AdvSplash/advsplash.c:107: error: 'RGN_XOR' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:108: warning: implicit declaration of function 'DeleteObject'
Contrib/AdvSplash/advsplash.c:116: warning: implicit declaration of function 'SetWindowRgn'
Contrib/AdvSplash/advsplash.c:116: error: 'myWnd' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:116: error: 'TRUE' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c: At top level:
Contrib/AdvSplash/advsplash.c:122: error: syntax error before 'DllMain'
Contrib/AdvSplash/advsplash.c:122: error: syntax error before 'hInst'
Contrib/AdvSplash/advsplash.c:124: warning: return type defaults to 'int'
Contrib/AdvSplash/advsplash.c: In function 'DllMain':
Contrib/AdvSplash/advsplash.c:125: error: 'hInst' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:126: error: 'TRUE' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c: At top level:
Contrib/AdvSplash/advsplash.c:129: error: syntax error before 'TimeProc'
Contrib/AdvSplash/advsplash.c:129: error: syntax error before 'uID'
Contrib/AdvSplash/advsplash.c:131: warning: return type defaults to 'int'
Contrib/AdvSplash/advsplash.c: In function 'TimeProc':
Contrib/AdvSplash/advsplash.c:156: warning: implicit declaration of function 'PostMessage'
Contrib/AdvSplash/advsplash.c:156: error: 'HWND' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:156: error: syntax error before 'dwUser'
Contrib/AdvSplash/advsplash.c:157: warning: 'return' with no value, in function returning non-void
Contrib/AdvSplash/advsplash.c:165: error: syntax error before 'dwUser'
Contrib/AdvSplash/advsplash.c: At top level:
Contrib/AdvSplash/advsplash.c:174: error: syntax error before 'show'
Contrib/AdvSplash/advsplash.c:174: error: syntax error before 'hwndParent'
Contrib/AdvSplash/advsplash.c:176: warning: return type defaults to 'int'
Contrib/AdvSplash/advsplash.c: In function 'show':
Contrib/AdvSplash/advsplash.c:177: error: 'DEVMODE' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:177: error: syntax error before 'dm'
Contrib/AdvSplash/advsplash.c:178: error: 'MAX_PATH' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:184: error: 'string_size' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:184: error: 'stacktop' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:184: error: 'variables' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:196: error: 'dm' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:197: warning: implicit declaration of function 'EnumDisplaySettings'
Contrib/AdvSplash/advsplash.c:197: error: 'NULL' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:197: error: 'ENUM_CURRENT_SETTINGS' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:199: warning: implicit declaration of function 'LOBYTE'
Contrib/AdvSplash/advsplash.c:199: warning: implicit declaration of function 'LOWORD'
Contrib/AdvSplash/advsplash.c:199: warning: implicit declaration of function 'GetVersion'
Contrib/AdvSplash/advsplash.c:214: error: 'LWA_ALPHA' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:214: error: 'LWA_COLORKEY' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:221: error: 'MSG' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:221: error: syntax error before 'msg'
Contrib/AdvSplash/advsplash.c:222: error: syntax error before 'wc'
Contrib/AdvSplash/advsplash.c:223: error: 'wc' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:225: warning: implicit declaration of function 'LoadCursor'
Contrib/AdvSplash/advsplash.c:225: error: 'IDC_ARROW' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:227: warning: implicit declaration of function 'RegisterClass'
Contrib/AdvSplash/advsplash.c:230: warning: implicit declaration of function 'lstrcat'
Contrib/AdvSplash/advsplash.c:233: warning: implicit declaration of function 'LoadImage'
Contrib/AdvSplash/advsplash.c:233: error: 'IMAGE_BITMAP' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:234: error: 'LR_CREATEDIBSECTION' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:234: error: 'LR_LOADFROMFILE' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:236: error: 'HWND' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:236: error: syntax error before 'myWnd'
Contrib/AdvSplash/advsplash.c:237: error: 'UINT' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:240: warning: implicit declaration of function 'GetObject'
Contrib/AdvSplash/advsplash.c:240: error: 'LPSTR' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:242: error: 'myWnd' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:243: warning: implicit declaration of function 'CreateWindowEx'
Contrib/AdvSplash/advsplash.c:243: error: 'WS_EX_TOOLWINDOW' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:244: error: 'WS_EX_LAYERED' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:245: error: syntax error before 'hwndParent'
Contrib/AdvSplash/advsplash.c:251: error: 'HANDLE' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:251: error: syntax error before 'user32'
Contrib/AdvSplash/advsplash.c:253: error: '_tSetLayeredWindowAttributesProc' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:253: error: syntax error before 'GetProcAddress'
Contrib/AdvSplash/advsplash.c:258: error: called object 'SetLayeredWindowAttributesProc' is not a function
Contrib/AdvSplash/advsplash.c:264: warning: implicit declaration of function 'PlaySound'
Contrib/AdvSplash/advsplash.c:264: error: 'SND_ASYNC' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:264: error: 'SND_FILENAME' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:264: error: 'SND_NODEFAULT' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:268: error: 'timerEvent' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:269: warning: implicit declaration of function 'timeSetEvent'
Contrib/AdvSplash/advsplash.c:270: error: 'DWORD_PTR' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:270: error: syntax error before 'myWnd'
Contrib/AdvSplash/advsplash.c:272: warning: implicit declaration of function 'IsWindow'
Contrib/AdvSplash/advsplash.c:272: warning: implicit declaration of function 'GetMessage'
Contrib/AdvSplash/advsplash.c:272: error: 'msg' undeclared (first use in this function)
Contrib/AdvSplash/advsplash.c:273: warning: implicit declaration of function 'DispatchMessage'
Contrib/AdvSplash/advsplash.c:277: warning: implicit declaration of function 'timeKillEvent'
Contrib/AdvSplash/advsplash.c:285: warning: implicit declaration of function 'UnregisterClass'
Contrib/AdvSplash/advsplash.c:228: warning: unused variable 'fn2'
Contrib/AdvSplash/advsplash.c:288: warning: implicit declaration of function 'wsprintf'
Contrib/AdvSplash/advsplash.c:178: warning: unused variable 'fn'
scons: *** [build/release/AdvSplash/advsplash.o] Error 1
scons: building terminated because of errors.
I'm completely new at this whole building from source business. Thanks for any help you can give.