~/scratch/proteus-core/ProteusCore/core$ git push
error: Cannot access URL
https://github.com/BruceDLong/ProteusCore.git/, return code 22
fatal: git-http-push failed
Note that I didn't implement conditional compilation if readline is
not available on your system, because I'm not very familiar with how
to do it with cmake. Note also that I didn't do it on a cross-platform
way either (it'll probably fail on windows, you might want to check it
- for this reason I left a couple of informative prints).
To install readline, on debian-like, you'll have to do a:
sudo apt-get install libreadline-dev
Cheers,
Davide
The mingw32 compilation tools and a boilerplate cmake file (attached)
build clip.exe for Windows if I revert the readline commit.
Interestingly enough, there is some special sauce inside Win32 that
provides readline-like functionality (i.e. up-arrow history works
automagically). An ifdef wrapper makes sense.
This points at the larger question of cross-compilation. Building
Proteus for Win32 is pretty straightforward with stock tools.
Including SDL libraries will be the main obstacle to cross-compiling
on Windows, but it is relatively easy to add SDL to a mingw build
environment.
On that note, should things like the attached cmake file go into the
git repository, or should build-related detritus live somewhere else
entirely?
dvd
Reading material: http://www.itk.org/Wiki/CmakeMingw
So I guess the question is: what are our goals at this time? Possible answers:
- Do we want to build a fully-fledged cross-platform application? If
so, I would recommend to use a cross-platform framework (which would
ruin the "keeping dependencies to the bare minimum and possibly have
the thing compile in an embedded system" goal)
- Do we want to build a sort of functional, but more proof-of-concept
thing? Then just forget about windows. I would forget about MacOS too,
but maybe it's not too hard/messy to support it, so we should keep it
in the loop.
I believe there is room to do something in between these two extremes,
but it goes back to the housekeeping and keeping the code very clean,
which I'm not sure is a major goal at this time.
Let's see what Bruce says,
Davide
I believe there is room to do something in between these two extremes,
but it goes back to the housekeeping and keeping the code very clean,
which I'm not sure is a major goal at this time.