On 2010-06-22 00:43+1000 Sisyphus wrote:
> For some strange reason that I haven't yet fathomed, specifying the name of
> the C++ compiler (which is 'x86_64-w64-mingw32-g++.exe' )
> using -DCMAKE_CXX_COMPILER fails to work. I get:
>
> -- The CXX compiler identification is unknown
> -- Check for working CXX compiler: g++.exe
>
> ... groan ... but then, I don't really give a rat's arse about C++ :-)
> (I will, however, out of curiosity, try to find out what's going on there.)
Assuming x86_64-w64-mingw32-g++.exe is on your PATH, my guess is the "++" is
causing problems in the name of the executable. You may need to quote it
('++') or even escape it inside quotes ('\+\+') before cmake can find that
executable for itself. There is probably special code within CMake to
find g++.exe (with no prefix) without further help, but that is probably
not true of x86_64-w64-mingw32-g++.exe.
> Haven't yet worked out how I'm supposed to tell the process that 'ar.exe' is
> really named 'x86_64-w64-mingw32-ar.exe' . Anyone know ?
What do you get for CMAKE_AR:FILEPATH in your CMakeCache.txt file? If that
is not the correct value, I think you should be able to override it with
-DCMAKE_AR:FILEPATH=\whatever\path\to\ar\x86_64-w64-mingw32-ar.exe
Often, looking at results in CMakeCache.txt and deploying a corresponding -D
option to change values is the only step you will need to solve problems
like this where you are (apparently) dealing with a new platform that CMake
is not aware of yet so that essential platform constants are not set
correctly.
Of course, the proper way to set platform-dependent constants is with a new
or modified file in (e.g., $prefix/share/cmake-2.8/Modules/Platform/.
However, platform files are sometimes a difficult topic, so I would report
what constants you need to set with -D to the CMake developers at the
[email protected] mailing list with an exact description of your platform so
they can figure out what platform file changes need to be done to
make the experience for the next user of your platform much smoother.
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general