muesli / telephant

A lightweight but modern Mastodon client for the desktop
MIT License
190 stars 14 forks source link

Add installing + configuring pkg-config to README instructions #9

Open robflop opened 5 years ago

robflop commented 5 years ago

When following the README compilation instructions without having Go or anything related already installed before, the last step (build) will fail because of a missing "pkg-config" installation, at least on Windows 10.

Error:

cmd="pkg-config --modversion Qt5Core" dir= env= error="exec: \"pkg-config\": executable file not found in %PATH%" name=cgo.LinuxPkgConfig_modVersion

Once downloaded and added to path it seems to complain about not finding the Qt5Core package here as well, not sure if that is just me doing something wrong (e.g. faulty Qt installation).

Error:

cmd="pkg-config --modversion Qt5Core" dir= env= error="exit status 1" name=cgo.LinuxPkgConfig_modVersion
Package Qt5Core was not found in the pkg-config search path.
Perhaps you should add the directory containing 'Qt5Core.pc' to the PKG_CONFIG_PATH environment variable
No package 'Qt5Core' found`

If this is not actually a user error made by me, then I recommend adding notes on how to avoid this to the readme.

muesli commented 4 years ago

Sadly, building on Windows is a bit more involved as there are various ways to install all the dependencies. I'll try to document the basic flow for all platforms in the near future.