openframeworks / openframeworks/openFrameworks
Filesystem error when compiling project generator on arch
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
I have downloaded the of_v20220619_linux64gcc6_nightly version and i cant compile the project generator.
error: no matching function for call to 'absolute(__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type&, std::string&)'
450 | std::string dll = std::filesystem::absolute(addon.dllsToCopy[i], addon.addonPath).string();
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/12.1.0/filesystem:47,
from /home/sonic/Desktop/open/libs/openFrameworks/utils/ofConstants.h:537:
/usr/include/c++/12.1.0/bits/fs_ops.h:47:8: note: candidate: 'std::filesystem::__cxx11::path std::filesystem::absolute(const __cxx11::path&)'
47 | path absolute(const path& __p);
| ^~~~~~~~
/usr/include/c++/12.1.0/bits/fs_ops.h:47:8: note: candidate expects 1 argument, 2 provided
/usr/include/c++/12.1.0/bits/fs_ops.h:48:8: note: candidate: 'std::filesystem::__cxx11::path std::filesystem::absolute(const __cxx11::path&, std::error_code&)'
48 | path absolute(const path& __p, error_code& __ec);
| ^~~~~~~~
/usr/include/c++/12.1.0/bits/fs_ops.h:48:46: note: no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::error_code&'
48 | path absolute(const path& __p, error_code& __ec);
| ~~~~~~~~~~~~^~~~
Also when on qt creator i cant use the function shader.load("shadersGL3/shader"); Because it gives the error
error: undefined reference to 'ofShader::load(boost::filesystem::path const&)'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the project generator compilation on Arch with the reported Linux nightly and inspect libs/openFrameworks/utils/ofConstants.h around line 537 and the call at line 450. Then reproduce the Qt Creator shader.load("shadersGL3/shader") linker error. Done means both reported errors are resolved and the project generator compiles successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100