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

fatal error: utf8cpp/utf8.h: No such file or directory #153

Closed
Belamat opened this issue Jul 16, 2023 · 8 comments
Closed

fatal error: utf8cpp/utf8.h: No such file or directory #153

Belamat opened this issue Jul 16, 2023 · 8 comments

Comments

@Belamat
Copy link

Belamat commented Jul 16, 2023

Hi, Im on Fedora 37 and this error occurred, not sure how to proceed.
Appreciate your help.
Thanks.

[ 81%] Building CXX object CMakeFiles/dwarfs.dir/src/dwarfs/util.cpp.o
/home/ton/dwarfs/util.cpp:26:10: fatal error: utf8cpp/utf8.h: No such file or directory
26 | #include <utf8cpp/utf8.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/dwarfs.dir/build.make:594: CMakeFiles/dwarfs.dir/src/dwarfs/util.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:439: CMakeFiles/dwarfs.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

@mhx
Copy link
Owner

mhx commented Jul 16, 2023

Hi there!

You're missing a dependency: utfcpp. On Debian/Ubuntu this is available as libutfcpp-dev, not sure about Fedora, though. It should be fairly easy to install even without a pre-built package.

Your other alternative is to just use the pre-built binaries from the Releases page.

@mhx
Copy link
Owner

mhx commented Jul 16, 2023

Feel free to reopen the issue if you still have problems.

@mhx mhx closed this as completed Jul 16, 2023
@tpwrules
Copy link

Should this be added to the CMake files so that a more relevant error is given and the version is checked?

@mhx
Copy link
Owner

mhx commented Jul 23, 2023

Should this be added to the CMake files so that a more relevant error is given and the version is checked?

Possibly. I don't think there's any way to perform a version check for utfcpp, though. Happy to accept a PR :)

@tpwrules
Copy link

tpwrules commented Jul 23, 2023

Ah, I assumed the utf8cpp shipped with a .pc file in which case this would be easy, but evidently not.

@mhx
Copy link
Owner

mhx commented Jul 23, 2023

Nah, it comes with a (pretty much useless) CMake config, but that's it. As far as I can tell, even the headers themselves don't have any version information.

@gudenau
Copy link

gudenau commented Nov 29, 2023

I have version 4.0.1 installed and CMake can't find it for me.

@mhx
Copy link
Owner

mhx commented Nov 30, 2023

I have version 4.0.1 installed and CMake can't find it for me.

Yeah, sorry, the utfcpp header files were moved to a different install location with the 4.x releases. There's a bug report, but that got closed without the actual issue being fixed. I've just sent a pull request. Until then, can you downgrade to a 3.x version of utfcpp?

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

4 participants