Thread subject: sK1 Project :: Install on Windows

Posted by lharby on 04-08-2011 15:10
#1

Hello

I am trying to build sk1 on Windows. I have read through various discussions (installed Microsoft Visual Studio 2008 and tried to install missing lcms.h file from http://www.littlecms.com/ however I seem to have lcms2.h in my install, maybe I need an older version)?

Also getting an error for the cl.exe in Visual Studio:

Can anyone help?

[code]Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\luke>cd c:\python27\Lib\site-packages\sk1\lib

C:\Python27\Lib\site-packages\sk1\lib>python setup.py build
running build
running build_py
running build_ext
building 'sk1libs.pycms._pycms' extension
C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W
3 /GS- /DNDEBUG -DMAJOR_VERSION=1 -DMINOR_VERSION=0 -IC:\Python27\include -IC:\P
ython27\PC /Tcsrc/pycms/_pycms.c /Fobuild\temp.win32-2.7\Release\src/pycms/_pycm
s.obj -Wall
_pycms.c
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\io.h(60) : warning C4820
: '_finddata32i64_t' : '4' bytes padding added after data member 'name'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\io.h(64) : warning C4820
: '_finddata64i32_t' : '4' bytes padding added after data member 'attrib'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\io.h(73) : warning C4820
: '__finddata64_t' : '4' bytes padding added after data member 'attrib'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\io.h(78) : warning C4820
: '__finddata64_t' : '4' bytes padding added after data member 'name'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\io.h(126) : warning C482
0: '_wfinddata64i32_t' : '4' bytes padding added after data member 'attrib'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\io.h(131) : warning C482
0: '_wfinddata64i32_t' : '4' bytes padding added after data member 'name'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\io.h(135) : warning C482
0: '_wfinddata64_t' : '4' bytes padding added after data member 'attrib'
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(114) : warning C
4668: '__midl' is not defined as a preprocessor macro, replacing with '0' for '#
if/#elif'
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(424) : warning C
4668: '_WIN32_WINNT' is not defined as a preprocessor macro, replacing with '0'
for '#if/#elif'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(381) : warning C
4255: '_get_printf_count_output' : no function prototype given: converting '()'
to '(void)'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\stdlib.h(215) : warning
C4255: '_get_purecall_handler' : no function prototype given: converting '()' to
'(void)'
c:\python27\include\pyport.h(193) : warning C4668: 'SIZEOF_PID_T' is not defined
as a preprocessor macro, replacing with '0' for '#if/#elif'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sys/stat.h(111) : warnin
g C4820: '_stat32' : '2' bytes padding added after data member 'st_gid'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sys/stat.h(127) : warnin
g C4820: 'stat' : '2' bytes padding added after data member 'st_gid'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sys/stat.h(143) : warnin
g C4820: '_stat32i64' : '2' bytes padding added after data member 'st_gid'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sys/stat.h(144) : warnin
g C4820: '_stat32i64' : '4' bytes padding added after data member 'st_rdev'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sys/stat.h(148) : warnin
g C4820: '_stat32i64' : '4' bytes padding added after data member 'st_ctime'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sys/stat.h(157) : warnin
g C4820: '_stat64i32' : '2' bytes padding added after data member 'st_gid'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sys/stat.h(171) : warnin
g C4820: '_stat64' : '2' bytes padding added after data member 'st_gid'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sys/stat.h(172) : warnin
g C4820: '_stat64' : '4' bytes padding added after data member 'st_rdev'
c:\python27\include\stringobject.h(49) : warning C4820: '<unnamed-tag>' : '3' by
tes padding added after data member 'ob_sval'
src/pycms/_pycms.c(21) : fatal error C1083: Cannot open include file: 'lcms.h':
No such file or directory
error: command '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' fa
iled with exit status 2

.

Posted by igor on 05-08-2011 07:12
#2

Hi!

Unfortunately it's impossible to build sK1 on Windows platform because application depends on Xlib functionality. We are currently working on a solution to this problem. I hope the result will be available in nearest future.

Edited by igor on 05-08-2011 08:21

Posted by Victor on 20-09-2011 19:42
#3

Hi guys,
Actually X11 is not so critical isue, there is a few X11 servers implementation for windows exist. For example http://x.cygwin.com/ or http://sourceforge.net/projects/xming/ So propably it is possible to build sk1 for windows. But I a fried that performance of the resulting application will be very bad.

Posted by Victor on 20-09-2011 19:48
#4

lharby wrote:
Hello

I am trying to build sk1 on Windows. I have read through various discussions (installed Microsoft Visual Studio 2008 and tried to install missing lcms.h file from http://www.littlecms.com/ however I seem to have lcms2.h in my install, maybe I need an older version)?

Also getting an error for the cl.exe in Visual Studio:

Can anyone help?

[code]Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\luke>cd c:\python27\Lib\site-packages\sk1\lib

C:\Python27\Lib\site-packages\sk1\lib>python setup.py build
running build
running build_py
running build_ext
building 'sk1libs.pycms._pycms' extension
........................................................................................
src/pycms/_pycms.c(21) : fatal error C1083: Cannot open include file: 'lcms.h':
No such file or directory
error: command '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' fa
iled with exit status 2

.

It is looks like you put lcms.h in some place, which is not visible for build system. You can put it into C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\ it is not a nice solution but should work.

Posted by igor on 21-09-2011 17:48
#5

Hi Victor,

sK1 is deprecated. Take a look on conference announce:

http://www.foss-s...ezagruzka/

My next presentation is scheduled on OSDN 2011 conference (Kiev). For more details you can either participate in this event or just call me ;)

Edited by igor on 21-09-2011 17:56

Posted by PCherie on 19-10-2011 14:33
#6

Thanks so much for the tips and information!

Edited by igor on 19-10-2011 18:12