[CMake] Re: [Wengophone-devel] Feedback on CMake build system

Andreas Schneider mail at cynapses.org
Sat Feb 10 05:56:18 EST 2007


Lukas Oberhuber wrote:

Hi Lukas,

> I wanted to give some feedback on my experience of the CMake/OWBuild build
> system as far as using it to build wengophone 2.1 (I haven't done any
> editing of makefiles) on Windows XP and MSVC2005.
> 
>  
> 
> 1) I think the speed is great! Fantastic actually. Build times have improved
> dramatically, and the completeness of the build is great as well (language
> is included automatically, there's an install target).
> 
>  
> 
> 2) However, it is very fragile during the Makefile generation phase, the
> build_nmake phase. I get the feeling I can't get the same outcome twice when
> I run it.
> 
>  
> 
> 2a) A couple of experience points:
> 
> Finding boost appears to be a luck thing.
> 
> I downloaded (r9707) which I finally got to find boost (first by copying a
> version of FindBoost.cmake in as per this mailing list, and then other
> things which I can't remember). Now it works
> 
> Since then, I have downloaded (r9727) which at first I couldn't get to work
> (turns out I had the wrong command prompt open)
> 
>             - then I got the right command prompt, tried, couldn't find
> boost, deleted CMakeCache.txt, and still didn't work, deleted all the
> directories in the build directory and it still didn't work. Finally, I
> copied the working boost directory entries from r9707 into my CMakeCache.txt
> in this new directory, deleted all the sub directories, and now the
> build_nmake.bat and nmake work. Maybe it's just the finding of boost, maybe
> not.
> 
>  
> 
> 2b) During my boost saga I realized I couldn't have boost installed just
> anywhere, it had to be at either c:\boost or d:\boost.
> 
>  

Where did you install Boost? Could you send me the directory tree of
your Boost installation. Could you look if there is a registry entry for
the Boost path.

> 
> My humble suggestion:
> 
> Create a build_nmake_clean.bat, that resets everything to the beginning.
> That way there are no spare directories and files lying about that could
> confuse the situation and everyone starts from the baseline.
> 
> Then, ensure that build_nmake.bat works every time from that position, and
> if it doesn't, that it is because something is out of place in the
> environment, not because there is some aspect of the CMake system in an
> inconsistent state.
> 
> If something is out of place in the env, i.e. boost, it would be helpful for
> a message such as: "I'm looking for boost in c:\boost and d:\boost, and I
> can't find it. If it's somewhere else, please set the BOOST_ROOT env
> variable to that location so that I can find the damn thing." That way I
> know what is wrong, not just that something is wrong.
> 
>  

Please send me first the informations mentioned above. If nothing helps,
I will look what we can display as error message.

Btw. Windows sucks! ;)

> 
> Finally, I hope this helps, and that it doesn't sound like a rant or any
> such thing. It's hard to do a cross platform build system right, and a
> little bit more fit and finish on this will go a tremendously long way!
> 
>  
> 
> Thanks!
> 
>  
> 
> -Lukas
> 
>  
	-- andreas

> 
> Lukas Oberhuber
> 
> Founder | Sipalive
> 
> sip/email:lukas at sipalive.com | mobile:+44 7748 638393
> 
> 
> 
>  
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Wengophone-devel mailing list
> Wengophone-devel at lists.openwengo.com
> http://dev.openwengo.com/mailman/listinfo/wengophone-devel

-- 
http://www.cynapses.org/ - cybernetic synapses


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20070210/90b104eb/signature.pgp


More information about the CMake mailing list