adobe-flash / crossbridge

Welcome to visit the homepage!
http://www.crossbridge.io
542 stars 196 forks source link

Cannot build master branch on Windows platform using Cygwin #50

Closed vpmedia closed 10 years ago

vpmedia commented 10 years ago

I need help to be able to build crossbridge sdk (master branch) on windows with cygwin.

I've ran make with -i flag to ignore errors, the following file contains all of the build logs: https://dl.dropboxusercontent.com/u/1375050/crossbridge-logs-win-1.zip

I think it would help contribution if the development would be not restricted to mac only (I do NOT own one)

I've updated the docs for windows users about what I'd figured out: https://github.com/vpmedia/crossbridge/blob/master/BUILDING.md https://github.com/vpmedia/crossbridge/blob/master/CHANGES.md

pleclech commented 10 years ago

While i'm trying also to build on cygwin or debian, i have modified the python script a while ago the problem lies in the read syscall that didn't take into account \r\n or \n only ending. Here is the commited file : https://github.com/pleclech/crossbridge/blob/12c1ada65b71a6d6ccbd7eb23cc4bb671f0fe641/posix/gensyscalls.py

vpmedia commented 10 years ago

Thank! I've got minimal python experience but yesterday I've figured this out after putting some print statements in the code, anyway i've solved this using simply removing the multi-line delimiters (not so elegant solution) - but'll switch to your change later (I'm planning deleting my fork and recreating with a single commit which is more eligable for a patch - if windows build succeeds).

pleclech commented 10 years ago

Le 09/04/2014 19:22, Andras Csizmadia a écrit :

Currently I'm stuck with this phase (building with bmake which seems ok): Failed to build: stdlibs bmake[4]: "/cygdrive/f/crossbridge/build/win/lib/share/mk/bsd.own.mk" line 189: Need an operator .... bmake[4]: "/cygdrive/f/crossbridge/build/win/lib/share/mk/bsd.own.mk" line 298: Need an operator

— Reply to this email directly or view it on GitHub https://github.com/adobe-flash/crossbridge/issues/50#issuecomment-39991476.

Hi,

It seems to be related also on crlf, what i did on my cygwin install was to replace all crlf to unix one with the command

find -name ..mk | xargs dos2unix

vpmedia commented 10 years ago

Thanks, I've figured out the same.. Currently i'm updating some of the NON touched dependency libs like cmake, bmake because it looks like they handle cygwin more out-of-the-box.

vpmedia commented 10 years ago

The windows (cygwin) build is almost working... https://github.com/vpmedia/crossbridge/blob/master/devguides/BUILDING_WIN.md

If some MacOSX user would be so kind and test my fork for any build related issue: https://github.com/vpmedia/crossbridge/

Changelist: https://github.com/vpmedia/crossbridge/blob/master/CHANGES.md (I've forgot to add some additional makefile changes which were related to CR/LF, I'll do a diff soon) Thanks!

vpmedia commented 10 years ago

closing this, switched to futures branch.