far2l
far2l copied to clipboard
far2l on the Centos7
I tried to compile it (all libraries are installed,. USEWX=no), got the error after13%:
file included from /home/ravil/far2l/WinPort/src/APIClipboard.cpp:15:0:
/home/ravil/far2l/WinPort/./WinPort.h:25:35: error: ‘<anonymous>’ has incomplete type
WINPORT_DECL(ForkConsole,HANDLE,(VOID));
^
/home/ravil/far2l/WinPort/./WinPort.h:14:69: note: in definition of macro ‘WINPORT_DECL’
#define WINPORT_DECL(NAME, RV, ARGS) SHAREDSYMBOL RV WINPORT_##NAME ARGS
^
/home/ravil/far2l/WinPort/./WinPort.h:25:39: error: invalid use of ‘VOID {aka void}’
WINPORT_DECL(ForkConsole,HANDLE,(VOID));
^
/home/ravil/far2l/WinPort/./WinPort.h:14:69: note: in definition of macro ‘WINPORT_DECL’
#define WINPORT_DECL(NAME, RV, ARGS) SHAREDSYMBOL RV WINPORT_##NAME ARGS
^
gmake[2]: *** [WinPort/CMakeFiles/WinPort.dir/src/APIClipboard.cpp.o] Error 1
gmake[1]: *** [WinPort/CMakeFiles/WinPort.dir/all] Error 2
Check please now
CMake cannot configure it now:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/home/ravil/far2l/colorer/XERCESC_INCLUDE_DIR
used as include directory in directory /home/ravil/far2l/colorer
/home/ravil/far2l/colorer/src/Colorer-library/src/XERCESC_INCLUDE_DIR
used as include directory in directory /home/ravil/far2l/colorer/src/Colorer-library/src
That area wasn't changed, try configuring from clean build sources.
- i returned the Centos from the backup, but didn't succeed in cmake far2l configuring
- i have downloaded the xerces sources then, recompiled and installed them
- now far2l cmake configuring went smoothly and compilation advanced up to 62%
- the latest errors are .here:
/home/ravil/far2l/colorer/src/pcolorer2/FarHrcSettings.cpp:11:1: error: ‘XERCES_CPP_NAMESPACE_USE’ does not name a type
XERCES_CPP_NAMESPACE_USE
^
/home/ravil/far2l/colorer/src/pcolorer2/FarHrcSettings.cpp: In member function ‘void FarHrcSettings::readXML(String*, bool)’:
/home/ravil/far2l/colorer/src/pcolorer2/FarHrcSettings.cpp:32:3: error: ‘XercesDOMParser’ was not declared in this scope
XercesDOMParser xml_parser;
^
/home/ravil/far2l/colorer/src/pcolorer2/FarHrcSettings.cpp:32:3: note: suggested alternative:
In file included from /home/ravil/far2l/colorer/src/pcolorer2/FarHrcSettings.cpp:6:0:
/usr/local/include/xercesc/parsers/XercesDOMParser.hpp:47:22: note: ‘xercesc_4_0::XercesDOMParser’
class PARSERS_EXPORT XercesDOMParser : public AbstractDOMParser
^
/home/ravil/far2l/colorer/src/pcolorer2/FarHrcSettings.cpp:32:19: error: expected ‘;’ before ‘xml_parser’
XercesDOMParser xml_parser;
^
/home/ravil/far2l/colorer/src/pcolorer2/FarHrcSettings.cpp:34:3: error: ‘xml_parser’ was not declared in this scope
xml_parser.setErrorHandler(&error_handler);
^
/home/ravil/far2l/colorer/src/pcolorer2/FarHrcSettings.cpp:43:3: error: ‘DOMDocument’ was not declared in this scope
DOMDocument* catalog = xml_parser.getDocument();
^
/home/ravil/far2l/colorer/src/pcolorer2/FarHrcSettings.cpp:43:3: note: suggested alternative:
In file included from /usr/local/include/xercesc/dom/DOM.hpp:34:0,
from /home/ravil/far2l/colorer/src/Colorer-library/src/colorer/parsers/HRCParserImpl.h:8,
from /home/ravil/far2l/colorer/src/Colorer-library/src/colorer/parsers/FileTypeImpl.h:7,
from /home/ravil/far2l/colorer/src/pcolorer2/FarHrcSettings.h:4,
from /home/ravil/far2l/colorer/src/pcolorer2/FarHrcSettings.cpp:1:
/usr/local/include/xercesc/dom/DOMDocument.hpp:64:19: note: ‘xercesc_4_0::DOMDocument’
class CDOM_EXPORT DOMDocument: public DOMDocumentRange,
^
/home/ravil/far2l/colorer/src/pcolorer2/FarHrcSettings.cpp:43:16: error: ‘catalog’ was not declared in this scope
DOMDocument* catalog = xml_parser.getDocument();
^
/home/ravil/far2l/colorer/src/pcolorer2/FarHrcSettings.cpp:44:3: error: ‘DOMElement’ was not declared in this scope
DOMElement* elem = catalog->getDocumentElement();
Я раньше собирал под Centos7 и соотв. Amazon Linux 2. И вопросы тут задавал, правда давненько это было...
Thanks god I moved to Centos8 and compiling now works perfect without any problem. But another problem has emerged, it runs fine only in the terminal window. If you try to run it through Nautilus it starts but no window is shown. The process actually exists but without window, killing and restarting it has no effect.
In https://github.com/elfmz/far2l/issues/647#issuecomment-1310838699 was steps for CentOS 7 and in https://github.com/elfmz/far2l/issues/647#issuecomment-1314072165 for CentOS stream 9
RPM packages you can find in https://copr.fedorainfracloud.org/coprs/polter/far2l or in https://download.opensuse.org/repositories/home:/viklequick/
You can try portable far2l from https://github.com/spvkgn/far2l-portable/releases
akruphi As I said before, the far now is easily compiled and works fine in the terminal, that's enough for me. I am just a little puzzled why it cannot be run directly.
With CentOS8 problem solved when I added USEWX=yes (I forget to add it when moved from CerntOS7). problem solved