Skip to content

Instantly share code, notes, and snippets.

@dit7ya
Created September 18, 2020 15:37
Show Gist options
  • Save dit7ya/c14ae8e9bd911baf468e2a173741c3fc to your computer and use it in GitHub Desktop.
Save dit7ya/c14ae8e9bd911baf468e2a173741c3fc to your computer and use it in GitHub Desktop.
Touchegg compilation errors
[ 3%] Building CXX object CMakeFiles/touchegg.dir/src/actions/action-factory.cpp.o
[ 7%] Building CXX object CMakeFiles/touchegg.dir/src/actions/animated-action.cpp.o
[ 11%] Building CXX object CMakeFiles/touchegg.dir/src/actions/change-desktop.cpp.o
[ 14%] Building CXX object CMakeFiles/touchegg.dir/src/actions/close-window.cpp.o
[ 18%] Building CXX object CMakeFiles/touchegg.dir/src/actions/maximize-restore-window.cpp.o
[ 22%] Building CXX object CMakeFiles/touchegg.dir/src/actions/minimize-window.cpp.o
[ 25%] Building CXX object CMakeFiles/touchegg.dir/src/actions/run-command.cpp.o
[ 29%] Building CXX object CMakeFiles/touchegg.dir/src/actions/send-keys.cpp.o
[ 33%] Building CXX object CMakeFiles/touchegg.dir/src/actions/show-desktop.cpp.o
[ 37%] Building CXX object CMakeFiles/touchegg.dir/src/actions/tile-window.cpp.o
[ 40%] Building CXX object CMakeFiles/touchegg.dir/src/animations/change-desktop-animation.cpp.o
[ 44%] Building CXX object CMakeFiles/touchegg.dir/src/animations/close-window-animation.cpp.o
[ 48%] Building CXX object CMakeFiles/touchegg.dir/src/animations/maximize-window-animation.cpp.o
[ 51%] Building CXX object CMakeFiles/touchegg.dir/src/animations/minimize-window-animation.cpp.o
[ 55%] Building CXX object CMakeFiles/touchegg.dir/src/animations/restore-window-animation.cpp.o
[ 59%] Building CXX object CMakeFiles/touchegg.dir/src/animations/show-desktop-animation.cpp.o
[ 62%] Building CXX object CMakeFiles/touchegg.dir/src/animations/tile-window-animation.cpp.o
[ 66%] Building CXX object CMakeFiles/touchegg.dir/src/config/config.cpp.o
[ 70%] Building CXX object CMakeFiles/touchegg.dir/src/config/xml-config-loader.cpp.o
In file included from /home/sudraka/code/touchegg/src/config/xml-config-loader.h:26,
from /home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:18:
/home/sudraka/code/touchegg/src/utils/filesystem.h:30:48: error: ‘namespace std::filesystem = std::experimental::std::experimental::filesystem;’ conflicts with a previous declaration
30 | namespace filesystem = experimental::filesystem;
| ^
In file included from /usr/include/c++/10.2.0/experimental/bits/fs_fwd.h:39,
from /usr/include/c++/10.2.0/experimental/filesystem:37,
from /home/sudraka/code/touchegg/src/utils/filesystem.h:28,
from /home/sudraka/code/touchegg/src/config/xml-config-loader.h:26,
from /home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:18:
/usr/include/c++/10.2.0/chrono:54:13: note: previous declaration ‘namespace std::filesystem { }’
54 | namespace filesystem { struct __file_clock; };
| ^~~~~~~~~~
In file included from /home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:18:
/home/sudraka/code/touchegg/src/config/xml-config-loader.h:62:40: error: ‘path’ in namespace ‘std::filesystem’ does not name a type
62 | void parseXml(const std::filesystem::path &configPath);
| ^~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.h:80:41: error: ‘path’ in namespace ‘std::filesystem’ does not name a type
80 | void watchFile(const std::filesystem::path &configPath);
| ^~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.h:91:27: error: ‘path’ in namespace ‘std::filesystem’ does not name a type
91 | static std::filesystem::path getHomePath();
| ^~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp: In member function ‘void XmlConfigLoader::load()’:
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:54:26: error: ‘path’ in namespace ‘std::filesystem’ does not name a type
54 | const std::filesystem::path homePath = XmlConfigLoader::getHomePath();
| ^~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:55:26: error: ‘path’ in namespace ‘std::filesystem’ does not name a type
55 | const std::filesystem::path configPath =
| ^~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:58:18: error: ‘configPath’ was not declared in this scope; did you mean ‘config’?
58 | this->parseXml(configPath);
| ^~~~~~~~~~
| config
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp: At global scope:
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:62:55: error: ‘path’ in namespace ‘std::filesystem’ does not name a type
62 | void XmlConfigLoader::parseXml(const std::filesystem::path &configPath) {
| ^~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp: In member function ‘void XmlConfigLoader::parseXml(const int&)’:
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:64:72: error: request for member ‘c_str’ in ‘configPath’, which is of non-class type ‘const int’
64 | pugi::xml_parse_result parsedSuccessfully = doc.load_file(configPath.c_str());
| ^~~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp: At global scope:
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:115:56: error: ‘path’ in namespace ‘std::filesystem’ does not name a type
115 | void XmlConfigLoader::watchFile(const std::filesystem::path &configPath) {
| ^~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp: In member function ‘void XmlConfigLoader::watchFile(const int&)’:
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:129:45: error: request for member ‘c_str’ in ‘configPath’, which is of non-class type ‘const int’
129 | int wd = inotify_add_watch(fd, configPath.c_str(), IN_MODIFY | IN_CREATE);
| ^~~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp: In static member function ‘static void XmlConfigLoader::copyConfingIfNotPresent()’:
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:151:26: error: ‘path’ in namespace ‘std::filesystem’ does not name a type
151 | const std::filesystem::path homePath = XmlConfigLoader::getHomePath();
| ^~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:152:26: error: ‘path’ in namespace ‘std::filesystem’ does not name a type
152 | const std::filesystem::path homeConfigDir = homePath / HOME_CONFIG_DIR;
| ^~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:153:26: error: ‘path’ in namespace ‘std::filesystem’ does not name a type
153 | const std::filesystem::path homeConfigFile = homeConfigDir / CONFIG_FILE;
| ^~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:157:24: error: ‘exists’ is not a member of ‘std::filesystem’; did you mean ‘std::experimental::filesystem::v1::exists’?
157 | if (std::filesystem::exists(homeConfigFile)) {
| ^~~~~~
In file included from /usr/include/c++/10.2.0/experimental/filesystem:40,
from /home/sudraka/code/touchegg/src/utils/filesystem.h:28,
from /home/sudraka/code/touchegg/src/config/xml-config-loader.h:26,
from /home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:18:
/usr/include/c++/10.2.0/experimental/bits/fs_ops.h:130:3: note: ‘std::experimental::filesystem::v1::exists’ declared here
130 | exists(const path& __p, error_code& __ec) noexcept
| ^~~~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:157:31: error: ‘homeConfigFile’ was not declared in this scope
157 | if (std::filesystem::exists(homeConfigFile)) {
| ^~~~~~~~~~~~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:161:26: error: ‘path’ in namespace ‘std::filesystem’ does not name a type
161 | const std::filesystem::path usrConfigDir{USR_SHARE_CONFIG_DIR};
| ^~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:162:26: error: ‘path’ in namespace ‘std::filesystem’ does not name a type
162 | const std::filesystem::path usrConfigFile{usrConfigDir / CONFIG_FILE};
| ^~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:163:25: error: ‘exists’ is not a member of ‘std::filesystem’; did you mean ‘std::experimental::filesystem::v1::exists’?
163 | if (!std::filesystem::exists(usrConfigFile)) {
| ^~~~~~
In file included from /usr/include/c++/10.2.0/experimental/filesystem:40,
from /home/sudraka/code/touchegg/src/utils/filesystem.h:28,
from /home/sudraka/code/touchegg/src/config/xml-config-loader.h:26,
from /home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:18:
/usr/include/c++/10.2.0/experimental/bits/fs_ops.h:130:3: note: ‘std::experimental::filesystem::v1::exists’ declared here
130 | exists(const path& __p, error_code& __ec) noexcept
| ^~~~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:163:32: error: ‘usrConfigFile’ was not declared in this scope
163 | if (!std::filesystem::exists(usrConfigFile)) {
| ^~~~~~~~~~~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:169:20: error: ‘create_directories’ is not a member of ‘std::filesystem’; did you mean ‘std::experimental::filesystem::v1::create_directories’?
169 | std::filesystem::create_directories(homeConfigDir);
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/10.2.0/experimental/filesystem:40,
from /home/sudraka/code/touchegg/src/utils/filesystem.h:28,
from /home/sudraka/code/touchegg/src/config/xml-config-loader.h:26,
from /home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:18:
/usr/include/c++/10.2.0/experimental/bits/fs_ops.h:89:8: note: ‘std::experimental::filesystem::v1::create_directories’ declared here
89 | bool create_directories(const path& __p, error_code& __ec) noexcept;
| ^~~~~~~~~~~~~~~~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:169:39: error: ‘homeConfigDir’ was not declared in this scope
169 | std::filesystem::create_directories(homeConfigDir);
| ^~~~~~~~~~~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:170:20: error: ‘copy_file’ is not a member of ‘std::filesystem’; did you mean ‘std::experimental::filesystem::v1::copy_file’?
170 | std::filesystem::copy_file(usrConfigFile, homeConfigFile);
| ^~~~~~~~~
In file included from /usr/include/c++/10.2.0/experimental/filesystem:40,
from /home/sudraka/code/touchegg/src/utils/filesystem.h:28,
from /home/sudraka/code/touchegg/src/config/xml-config-loader.h:26,
from /home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:18:
/usr/include/c++/10.2.0/experimental/bits/fs_ops.h:77:3: note: ‘std::experimental::filesystem::v1::copy_file’ declared here
77 | copy_file(const path& __from, const path& __to, error_code& __ec) noexcept
| ^~~~~~~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:170:30: error: ‘usrConfigFile’ was not declared in this scope
170 | std::filesystem::copy_file(usrConfigFile, homeConfigFile);
| ^~~~~~~~~~~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:170:45: error: ‘homeConfigFile’ was not declared in this scope
170 | std::filesystem::copy_file(usrConfigFile, homeConfigFile);
| ^~~~~~~~~~~~~~
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp: At global scope:
/home/sudraka/code/touchegg/src/config/xml-config-loader.cpp:173:18: error: ‘path’ in namespace ‘std::filesystem’ does not name a type
173 | std::filesystem::path XmlConfigLoader::getHomePath() {
| ^~~~
make[2]: *** [CMakeFiles/touchegg.dir/build.make:316: CMakeFiles/touchegg.dir/src/config/xml-config-loader.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/touchegg.dir/all] Error 2
make: *** [Makefile:103: all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment