Skip to content

TiffDecode.h build error on Windows with MSVS - #697

Closed
jamesra wants to merge 1 commit into
python-pillow:2.3.xfrom
jamesra:2.3.x
Closed

jamesra wants to merge 1 commit into
python-pillow:2.3.xfrom
jamesra:2.3.x

Conversation

@jamesra

@jamesra jamesra commented Jun 9, 2014

Copy link
Copy Markdown

To build Pillow in Windows with MSVC I had to include io.h instead of unistd.h. unistd.h should work for mingw builds. How this change effects other platforms is unknown. The change was requested in Issue #672 (#672)

The fix I found was to use io.h when building with msvc.  unistd.h should be for unix or mingw builds.
@aclark4life

Copy link
Copy Markdown
Member

CC: @cgohlke

@cgohlke

cgohlke commented Jun 9, 2014

Copy link
Copy Markdown
Contributor

I didn't notice since I have an empty unistd.h in the global include directory...

@wiredfool

Copy link
Copy Markdown
Member

Does this have any relation to the changes that were recently included for windows builds in #652?

@aclark4life -- be careful on the merge, this isn't against master.

@aclark4life

Copy link
Copy Markdown
Member

I'm not sure why we'd want this if not for master…

@jamesra

jamesra commented Jun 9, 2014

Copy link
Copy Markdown
Author

Sorry, I didn’t realize the push should go to master. Should I redo the pull request and target master? I thought 2.3.x would be a dev branch and master was official release.

I’ll test what happens if I eliminate the #include block all together since Gohlke said his include file is empty.

From: wiredfool [mailto:[email protected]]
Sent: Monday, June 09, 2014 11:10 AM
To: python-pillow/Pillow
Cc: James Anderson
Subject: Re: [Pillow] TiffDecode.h build error on Windows with MSVS (#697)

Does this have any relation to the changes that were recently included for windows builds in #652#652?

@aclark4lifehttps://github.com/aclark4life -- be careful on the merge, this isn't against master.

—
Reply to this email directly or view it on GitHubhttps://github.com//pull/697#issuecomment-45523466.

@aclark4life

Copy link
Copy Markdown
Member

@jamesra Yes please resubmit to master

@wiredfool

Copy link
Copy Markdown
Member

2.3.x is an old release (though it's the one that's in the Ubuntu LTS.), 2.4 is the current released version, and master is steaming towards 2.5.

You may want to recheck that you need this based on the current state of master.

@jamesra

jamesra commented Jun 9, 2014

Copy link
Copy Markdown
Author

OK, I originally tested on the master branch and switched when a pull request was wanted.

I’ll switch to master, test removing the #include entirely, and then resubmit whatever works.

From: wiredfool [mailto:[email protected]]
Sent: Monday, June 09, 2014 11:20 AM
To: python-pillow/Pillow
Cc: James Anderson
Subject: Re: [Pillow] TiffDecode.h build error on Windows with MSVS (#697)

2.3.x is an old release (though it's the one that's in the Ubuntu LTS.), 2.4 is the current released version, and master is steaming towards 2.5.

You may want to recheck that you need this based on the current state of master.

—
Reply to this email directly or view it on GitHubhttps://github.com//pull/697#issuecomment-45524731.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants