On 1 November 2011 12:02, Andrew Hill <and...@thefrog.net> wrote:
> * long lasting code projects — because you'll switch to Xcode eventually (;
I might hit you up for an Xcode blurb soon. People keep trying to get
me to switch.
> * GNU Autotools (autoconf, libtool) — i believe limited in how portable they
> are?
Yes. Autotools is tied to POSIX and even non-POSIX Linux extensions :(
> * SCons
SCons is like Make, but with a different format for Makefiles. It has
some cool things like hashing your targets so it will know not to
rebuild things that depend on them if a rebuild of them does not
actually change the hash. The last version of it that we used at work
still had significant bugs (exactly what you don't want from a build
system...), but it seems to be quite popular in the embedded
community. I assume because of its flexibility.
> Can you run make under your kernel? If so, you might be able to get CMake to
> generate a Makefile project (from another OS) and then build that project
> under your kernel?
Nope. This would literally be ripping out (or instrumenting) things
like file system calls and replacing them with the relevant
mechanisms.
> Alternatively, if you have build chain tools (compiler, linker, archiver,
> ...) that run on POSIX/win32, then you can build targets for your OS
> entirely from the POSIX/win32 system (though I get this isn't really what
> you're after).
> What build tools do you have?
Nil. All current dev and compiling is done on a different (Linux) host
and then bootstrapped onto the device you're working on. This is a bit
of a pipe dream for me at the moment, but one of my todos is
configuring this kernel for my laptop and porting some useful bits
like vim, so it would be cool if I could actually build projects on
there as well.
>
> Also, here's my Xcode blurb
> just go here, there's no way i can do a better job than them at selling it
> http://developer.apple.com/technologies/tools/ (xcode + various related dev
> tools)
> http://developer.apple.com/technologies/tools/whats-new.html (or just xcode
> specifically)
These tell me why I should be super psyched about Xcode if I'm
developing for OSX or iOS, but I am doing neither. It's a general IDE,
yes? I can use it for things other than C/C++ and call a compiler
other than LLVM?
On 3 November 2011 16:41, Andrew Hill <and...@thefrog.net> wrote:Not very...
> If your kernel isn't compatible with POSIX or Win32 then I'd guess you're
> not going to be able to run CMake under your kernel.
> I've no idea how easy it'd be to port across, probably depends how
> POSIX-like your kernel is...
Nope. This would literally be ripping out (or instrumenting) things
> Can you run make under your kernel? If so, you might be able to get CMake to
> generate a Makefile project (from another OS) and then build that project
> under your kernel?
like file system calls and replacing them with the relevant
mechanisms.
> Alternatively, if you have build chain tools (compiler, linker, archiver,Nil. All current dev and compiling is done on a different (Linux) host
> ...) that run on POSIX/win32, then you can build targets for your OS
> entirely from the POSIX/win32 system (though I get this isn't really what
> you're after).
> What build tools do you have?
and then bootstrapped onto the device you're working on. This is a bit
of a pipe dream for me at the moment, but one of my todos is
configuring this kernel for my laptop and porting some useful bits
like vim, so it would be cool if I could actually build projects on
there as well.
>These tell me why I should be super psyched about Xcode if I'm
> Also, here's my Xcode blurb
> just go here, there's no way i can do a better job than them at selling it
> http://developer.apple.com/technologies/tools/ (xcode + various related dev
> tools)
> http://developer.apple.com/technologies/tools/whats-new.html (or just xcode
> specifically)
developing for OSX or iOS, but I am doing neither. It's a general IDE,
yes? I can use it for things other than C/C++ and call a compiler
other than LLVM?
> Yep, it's an IDE and you can specify arbitrary build targets — a build
> target in Xcode, just like any other IDE, just boils down to a command to
> run.
> Actually CMake makes it very easy to specify the compiler, linker, etc if
> you don't want gcc/llvm, and I believe you can make fairly arbitrary
> scripted targets too for things that aren't compiling at all.
> The built in custom targets are things like "install", "uninstall",
> "package" (ie make an executable installer package). And then there's unit
> testing. The unit testing system uses CTest (part of CMake) and is a "build
> target", but instead of running a compiler, it runs a script that calls each
> test, and outputs the results (or posts them to a CDash server).
> You've probably done the same thing with Makefiles, setting up arbitrary
> commands to run when you do
> "make test" or "make package"
> right?
Indeed. It does sound like CMake handles this much better. Will
definitely try that out. Xcode on the other hand looks Mac only, which
is a bit of a deal breaker for me. Then again, it should be legal to
run OSX in a VM on Apple hardware right? Maybe I can try it that way.
Honestly, Visual Studio is still probably the best IDE, so if you're
doing all this for Xcode, you could equally do so for VS.
You can quite legally run 10.7 in a VM. Or 10.6 server if you have that.
On 03/11/2011, at 6:10 PM, Matthew Fernandez
---------- Forwarded message ----------
From: David Wood <d.w...@ocularrobotics.com>
Date: 4 November 2011 10:59
Subject: Re: [tools] CMake (aka Cross-Platform Make)
To: code-p...@googlegroups.com
In my current position I'm using CMake and VS to do pretty much
everything. My VS Project build will not only build the source, but
run Doxygen over it to export all our release documentation to TeX
source, then PDFTeXify a larger project of which the Doxy TeX is a
component, then include that PDF output along with all the text
applications and the library into a windows installer package....
I didn't actually set the existing system up, so I'm still trying to
figure out just how the hell all this works, but as soon as I've
gotten my head around it I'd be happy to whip up some sort of
contrived example (I somehow doubt my boss wants me to hand out all
our source to my mates...). Maybe put me down for doing one of these
things in a month or so.
-- DKW
--
Cheers,
Dr David Wood
Product Development Engineer
Ocular Robotics
www.ocularrobotics.com
--
-- DKW
> source, then PDFTeXify a larger project of which the Doxy TeX is a
Does PDFTeXify do what I think it does? I.e. same as pdflatex?
> our source to my mates...). Maybe put me down for doing one of these
> things in a month or so.
Thanks! Will do :)