У меня "brew install xmake" на моем Mac, и, имея файл .cpp, я запускаю xmake, и он генерирует xmake.lua в каталоге. Затем он сообщает:
error: cannot get program for cxx
Я установил clang (псевдоним g ++). Работает нормально. Я тогда:
$sudo ln -s /usr/bin/g++ /usr/local/bin/cxx
Хорошо, снова запустил xmake, но все равно выдает ту же ошибку:
error: cannot get program for cxx
Как справиться с этим? Спасибо
---------------------- Я пробовал это, не работает:
$xmake f -p cross
$xmake
error: cannot get program for cxx
$export CC=clang LD=clang++ xmake
$xmake
error: cannot get program for cxx
---------------------- См. Мою диагностику:
$xmake f -p cross -c
(In fact no output)
$xmake -r -v
configure
{
plat = cross
, arch = none
, ccache = true
, kind = static
, buildir = build
, host = macosx
, mode = release
, clean = true
}
checking for the g++ ... no
checking for the linker (ld: g++) ... no
checking for the gcc ... no
checking for the linker (ld: gcc) ... no
checking for the clang++ ... no
checking for the linker (ld: clang++) ... no
checking for the clang ... no
checking for the linker (ld: clang) ... no
error: cannot get program for ld
$which g++
/usr/bin/g++
$which clang
/usr/bin/clang