Replies: 2 comments
-
Also switching to the initializer list does not help: /Users/stas/work/far2l/colorer/src/Colorer-library/src/colorer/base/XmlTagDefs.h:75:28: error: cannot initialize a variable of type 'const XMLCh' (aka 'const unsigned short') with an lvalue of type 'const char16_t[10]' To me the very idea of creating static initializers in a header is bogus, but I have to admit I am failing to track latest ideas of C++ development. |
Beta Was this translation helpful? Give feedback.
-
OK, problem solved. For those interested: I have both macports in /opt/local/ and brew in /opt/homebrew/. Build does not work with macports, so it needs to be removed from PATH before building far. |
Beta Was this translation helpful? Give feedback.
-
Guys, do you build it for mac? I used to build for my M2 (arm64), but it starts to fail since colorer upgrade in 2c2b6bb on April 21. I fail to understand the error message, this:
/Users/stas/work/far2l/colorer/src/Colorer-library/src/colorer/base/XmlTagDefs.h:75:13: error: array initializer must be an initializer list
const XMLCh hrcTagFilename[] = u"filename\0";
and this:
[9/240] Building CXX object Colorer-library/src/CMakeFiles/colorer_lib.dir/colorer/xml/LocalFileXmlInputSource.cpp.o
FAILED: Colorer-library/src/CMakeFiles/colorer_lib.dir/colorer/xml/LocalFileXmlInputSource.cpp.o
/Library/Developer/CommandLineTools/usr/bin/c++ -I/Users/stas/work/far2l/utils/include -I/Users/stas/work/far2l/colorer/src/Colorer-library/src -I/Users/stas/work/far2l/_build/Colorer-library/src -isystem /opt/local/include -Wall -fPIC -Wno-unused-function -D_FILE_OFFSET_BITS=64 -DWINPORT_REGISTRY -Wall -fPIC -Wno-unused-function -D_FILE_OFFSET_BITS=64 -O2 -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -fvisibility=hidden -fpermissive -Wall -Wextra -Wpedantic -Wsign-promo -Wnon-virtual-dtor -MD -MT Colorer-library/src/CMakeFiles/colorer_lib.dir/colorer/xml/LocalFileXmlInputSource.cpp.o -MF Colorer-library/src/CMakeFiles/colorer_lib.dir/colorer/xml/LocalFileXmlInputSource.cpp.o.d -o Colorer-library/src/CMakeFiles/colorer_lib.dir/colorer/xml/LocalFileXmlInputSource.cpp.o -c /Users/stas/work/far2l/colorer/src/Colorer-library/src/colorer/xml/LocalFileXmlInputSource.cpp
/Users/stas/work/far2l/colorer/src/Colorer-library/src/colorer/xml/LocalFileXmlInputSource.cpp:9:16: error: no matching conversion for functional-style cast from 'const XMLCh *' (aka 'const unsigned short *') to 'UnicodeString'
auto upath = UnicodeString(path);
^~~~~~~~~~~~~~~~~~
To me the syntax 'u"..."' is valid, but the cast to the variable type is not.
The compiler is clang 15.0, language standard is c++11 as written in the CMakeList. Switching to C++17 does not help. Effectively far2l does not build on a modern mac. I wish to fix it, I just do not know what.
I.e., debian support is nice, but it used to work on mac/arm as well before this patch. Should we add a mac builder as well on the github (I saw it working for some projects)?
Beta Was this translation helpful? Give feedback.
All reactions