ucpp icon indicating copy to clipboard operation
ucpp copied to clipboard

cygwin don't assume that windriver is installed

Open ghost opened this issue 13 years ago • 2 comments

i'm too tired to look into making this check for the existence of the windriver installation and download the compiler like it does on linux if it's not there. at the very least, the readme should mention that windriver is expected to be installed if running on ms windows.

ozzloy@ozz-vista ~/src/cpp_simple_template
$ git status
# On branch no-ucpp
# Untracked files:
#   (use "git add ..." to include in what will be committed)
#
#       .ucpp
#       Makefile
#       PPC603gnu/
nothing added to commit but untracked files present (use "git add" to track)

ozzloy@ozz-vista ~/src/cpp_simple_template
$ rm -rf .ucpp Makefile PPC603gnu/

ozzloy@ozz-vista ~/src/cpp_simple_template
$ rm -rf ~/.ucpp

ozzloy@ozz-vista ~/src/cpp_simple_template
$ ucpp setup -t 1
-----> Detecting python ...
-----> Python 2 found at: /usr/bin/python [DONE]

ozzloy@ozz-vista ~/src/cpp_simple_template
$ ucpp init
Initialized UCPP project "cpp_simple_template"
  Project root directory  /home/ozzloy/src/cpp_simple_template
  Workspace directory     /home/ozzloy/src
  Code deployment IP      10.0.1.2

ozzloy@ozz-vista ~/src/cpp_simple_template
$ ucpp configure
Manually generating Windows Makefile... Done

ozzloy@ozz-vista ~/src/cpp_simple_template
$ make
cd PPC603gnu && exec /cygdrive/c/WindRiver/workbench-3.0/x86-win32/bin/make.exe -f Makefile
/bin/sh: /cygdrive/c/WindRiver/workbench-3.0/x86-win32/bin/make.exe: No such file or directory
/bin/sh: line 0: exec: /cygdrive/c/WindRiver/workbench-3.0/x86-win32/bin/make.exe: cannot execute: No such file or directory
Makefile:5: recipe for target `all' failed
make: *** [all] Error 126

ozzloy@ozz-vista ~/src/cpp_simple_template
$

ghost avatar Jan 08 '12 06:01 ghost

When I was writing the scripts for Windows, I had assumed that people would have WindRiver installed. WindRiver comes packaged with a number of essential unix commands, so I decided to use those instead of figuring out how to get people to install them on their own. Since all I'm using are the linux commands and the compiler, they're not affected by the license expiring.

I could probably just as easily use gccdist (though that would require replacing workbench-3.0/ with workbench-2.5). The problem is that I'm not sure Cygwin and Git bash will have wget installed... which is the whole reason I'm using WindRiver unix commands.

I added a warning for now. Someone will have to verify that it works even with WindRiver installed - I have a nagging suspicion that it will fail because this year's WindRiver workbench is version 3.3, not 3.0

nikitakit avatar Jan 08 '12 20:01 nikitakit

I can fix this if there's a demand for it, but I think most people would be fine with using MSYSgit on Windows instead of Cygwin.

nikitakit avatar Jan 08 '13 04:01 nikitakit