Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling in linux #44

Open
Joilnen opened this issue Apr 6, 2021 · 1 comment
Open

Error compiling in linux #44

Joilnen opened this issue Apr 6, 2021 · 1 comment

Comments

@Joilnen
Copy link

Joilnen commented Apr 6, 2021

I got this compiling error in Linux

c++ (GCC) 10.2.0
libc 2.33

[ 8%] Building CXX object k3dsdk/CMakeFiles/k3dsdk.dir/primitive_validation.cpp.o
[ 8%] Building CXX object k3dsdk/CMakeFiles/k3dsdk.dir/property.cpp.o
[ 8%] Building CXX object k3dsdk/CMakeFiles/k3dsdk.dir/property_collection.cpp.o
/home/joilnen/k3d/k3dsdk/property_collection.cpp: In member function ‘virtual void k3d::property_collection::register_property(k3d::iproperty&)’:
/home/joilnen/k3d/k3dsdk/property_collection.cpp:50:51: error: cannot convert ‘std::vectork3d::iproperty*::iterator’ to ‘const char*’
50 | m_properties.erase(std::remove(m_properties.begin(), m_properties.end(), &Property), m_properties.end());
| ~~~~~~~~~~~~~~~~~~^~
| |
| std::vectork3d::iproperty*::iterator
In file included from /usr/include/c++/10.2.0/cstdio:42,
from /usr/include/c++/10.2.0/ext/string_conversions.h:43,
from /usr/include/c++/10.2.0/bits/basic_string.h:6535,
from /usr/include/c++/10.2.0/string:55,
from /usr/include/c++/10.2.0/bits/locale_classes.h:40,
from /usr/include/c++/10.2.0/bits/ios_base.h:41,
from /usr/include/c++/10.2.0/ios:42,
from /usr/include/c++/10.2.0/ostream:38,
from /usr/include/c++/10.2.0/iostream:39,
from /home/joilnen/k3d/k3dsdk/Half/half.h:89,
from /home/joilnen/k3d/k3dsdk/types.h:28,
from /home/joilnen/k3d/k3dsdk/iproperty.h:29,
from /home/joilnen/k3d/k3dsdk/property_collection.cpp:24:
/usr/include/stdio.h:146:32: note: initializing argument 1 of ‘int remove(const char*)’
146 | extern int remove (const char __filename) __THROW;
| ~~~~~~~~~~~~^~~~~~~~~~
/home/joilnen/k3d/k3dsdk/property_collection.cpp: In member function ‘virtual void k3d::property_collection::register_properties(const properties_t&)’:
/home/joilnen/k3d/k3dsdk/property_collection.cpp:59:52: error: cannot convert ‘std::vectork3d::iproperty*::iterator’ to ‘const char

59 | m_properties.erase(std::remove(m_properties.begin(), m_properties.end(), property), m_properties.end());
| ~~~~~~~~~~~~~~~~~~^~
| |
| std::vectork3d::iproperty*::iterator
In file included from /usr/include/c++/10.2.0/cstdio:42,
from /usr/include/c++/10.2.0/ext/string_conversions.h:43,
from /usr/include/c++/10.2.0/bits/basic_string.h:6535,
from /usr/include/c++/10.2.0/string:55,
from /usr/include/c++/10.2.0/bits/locale_classes.h:40,
from /usr/include/c++/10.2.0/bits/ios_base.h:41,
from /usr/include/c++/10.2.0/ios:42,
from /usr/include/c++/10.2.0/ostream:38,
from /usr/include/c++/10.2.0/iostream:39,
from /home/joilnen/k3d/k3dsdk/Half/half.h:89,
from /home/joilnen/k3d/k3dsdk/types.h:28,
from /home/joilnen/k3d/k3dsdk/iproperty.h:29,
from /home/joilnen/k3d/k3dsdk/property_collection.cpp:24:
/usr/include/stdio.h:146:32: note: initializing argument 1 of ‘int remove(const char
)’
146 | extern int remove (const char __filename) __THROW;
| ~~~~~~~~~~~~^~~~~~~~~~
/home/joilnen/k3d/k3dsdk/property_collection.cpp:62:51: error: cannot convert ‘std::vectork3d::iproperty*::iterator’ to ‘const char

62 | m_properties.erase(std::remove(m_properties.begin(), m_properties.end(), static_cast<iproperty*>(0)), m_properties.end());
| ~~~~~~~~~~~~~~~~~~^~
| |
| std::vectork3d::iproperty*::iterator
In file included from /usr/include/c++/10.2.0/cstdio:42,
from /usr/include/c++/10.2.0/ext/string_conversions.h:43,
from /usr/include/c++/10.2.0/bits/basic_string.h:6535,
from /usr/include/c++/10.2.0/string:55,
from /usr/include/c++/10.2.0/bits/locale_classes.h:40,
from /usr/include/c++/10.2.0/bits/ios_base.h:41,
from /usr/include/c++/10.2.0/ios:42,
from /usr/include/c++/10.2.0/ostream:38,
from /usr/include/c++/10.2.0/iostream:39,
from /home/joilnen/k3d/k3dsdk/Half/half.h:89,
from /home/joilnen/k3d/k3dsdk/types.h:28,
from /home/joilnen/k3d/k3dsdk/iproperty.h:29,
from /home/joilnen/k3d/k3dsdk/property_collection.cpp:24:
/usr/include/stdio.h:146:32: note: initializing argument 1 of ‘int remove(const char*)’
146 | extern int remove (const char __filename) __THROW;
| ~~~~~~~~~~~~^~~~~~~~~~
/home/joilnen/k3d/k3dsdk/property_collection.cpp: In member function ‘virtual void k3d::property_collection::unregister_property(k3d::iproperty&)’:
/home/joilnen/k3d/k3dsdk/property_collection.cpp:69:51: error: cannot convert ‘std::vectork3d::iproperty*::iterator’ to ‘const char

69 | m_properties.erase(std::remove(m_properties.begin(), m_properties.end(), &Property), m_properties.end());
| ~~~~~~~~~~~~~~~~~~^~
| |
| std::vectork3d::iproperty*::iterator
In file included from /usr/include/c++/10.2.0/cstdio:42,
from /usr/include/c++/10.2.0/ext/string_conversions.h:43,
from /usr/include/c++/10.2.0/bits/basic_string.h:6535,
from /usr/include/c++/10.2.0/string:55,
from /usr/include/c++/10.2.0/bits/locale_classes.h:40,
from /usr/include/c++/10.2.0/bits/ios_base.h:41,
from /usr/include/c++/10.2.0/ios:42,
from /usr/include/c++/10.2.0/ostream:38,
from /usr/include/c++/10.2.0/iostream:39,
from /home/joilnen/k3d/k3dsdk/Half/half.h:89,
from /home/joilnen/k3d/k3dsdk/types.h:28,
from /home/joilnen/k3d/k3dsdk/iproperty.h:29,
from /home/joilnen/k3d/k3dsdk/property_collection.cpp:24:
/usr/include/stdio.h:146:32: note: initializing argument 1 of ‘int remove(const char*)’
146 | extern int remove (const char __filename) __THROW;
| ~~~~~~~~~~~~^~~~~~~~~~
/home/joilnen/k3d/k3dsdk/property_collection.cpp: In member function ‘virtual void k3d::property_collection::unregister_properties(const properties_t&)’:
/home/joilnen/k3d/k3dsdk/property_collection.cpp:76:52: error: cannot convert ‘std::vectork3d::iproperty*::iterator’ to ‘const char

76 | m_properties.erase(std::remove(m_properties.begin(), m_properties.end(), property), m_properties.end());
| ~~~~~~~~~~~~~~~~~~^~
| |
| std::vectork3d::iproperty*::iterator
In file included from /usr/include/c++/10.2.0/cstdio:42,
from /usr/include/c++/10.2.0/ext/string_conversions.h:43,
from /usr/include/c++/10.2.0/bits/basic_string.h:6535,
from /usr/include/c++/10.2.0/string:55,
from /usr/include/c++/10.2.0/bits/locale_classes.h:40,
from /usr/include/c++/10.2.0/bits/ios_base.h:41,
from /usr/include/c++/10.2.0/ios:42,
from /usr/include/c++/10.2.0/ostream:38,
from /usr/include/c++/10.2.0/iostream:39,
from /home/joilnen/k3d/k3dsdk/Half/half.h:89,
from /home/joilnen/k3d/k3dsdk/types.h:28,
from /home/joilnen/k3d/k3dsdk/iproperty.h:29,
from /home/joilnen/k3d/k3dsdk/property_collection.cpp:24:
/usr/include/stdio.h:146:32: note: initializing argument 1 of ‘int remove(const char
)’
146 | extern int remove (const char *__filename) __THROW;
| ~~~~~~~~~~~~^~~~~~~~~~
make[2]: *** [k3dsdk/CMakeFiles/k3dsdk.dir/build.make:1057: k3dsdk/CMakeFiles/k3dsdk.dir/property_collection.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:3638: k3dsdk/CMakeFiles/k3dsdk.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

@sevu
Copy link

sevu commented Jun 9, 2021

That's the same as #42, and it has a solution.

To see all patches / workarounds to build k3d, you can look at the Archlinux package:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=k3d-git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants