AlexandrePTJ / kemai

Kimai desktop client
MIT License
94 stars 25 forks source link

Need help building #1

Closed kevinpapst closed 4 years ago

kevinpapst commented 4 years ago

Mac OS user here. Maybe you have an idea what is wrong?

$ cmake . -B build
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is AppleClang 11.0.0.11000033
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at src/client/CMakeLists.txt:3 (find_package):
  Could not find a package configuration file provided by "Qt5" with any of
  the following names:

    Qt5Config.cmake
    qt5-config.cmake

  Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
  to a directory containing one of the above files.  If "Qt5" provides a
  separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred!
See also "/Users/kevin/Development/kemai/build/CMakeFiles/CMakeOutput.log".

But QT5 is installed:

$ brew search qt5
==> Formulae
pyqt5                                                                     qt5 ✔

Edit: I have never used cmake or worked with C++

AlexandrePTJ commented 4 years ago

As Qt have been install through homebrew, you should use this command:

> cmake . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/usr/local/opt/qt
> cmake --build build --config Release
kevinpapst commented 4 years ago

Works!

Bildschirmfoto 2020-04-08 um 10 55 19

One build warning:

 65%] Building CXX object src/app/CMakeFiles/Kemai.dir/activitywidget.cpp.o
/Users/kevin/Development/kemai/src/app/activitywidget.cpp:79:19: warning: enumeration values 'Undefined' and 'Version' not handled in switch [-Wswitch]
    switch (reply.method())
                  ^
/Users/kevin/Development/kemai/src/app/activitywidget.cpp:79:19: note: add missing switch cases
    switch (reply.method())
                  ^
1 warning generated.
[ 70%] Building CXX object src/app/CMakeFiles/Kemai.dir/customerdialog.cpp.o

All fonts looks a bit blurry, but that might be problem of QT5.

Here is an image that you can use as app icon:

kimai_logo_bg_transparent
AlexandrePTJ commented 4 years ago

Thanks you for the feedback and for app icon. Is there anything to mention about using this icon ?

kevinpapst commented 4 years ago

No, its licensed under MIT like the ones here: https://github.com/kevinpapst/kimai2/tree/master/public I hope GitHub saved it with transparent background... if not, drop me an email.

AlexandrePTJ commented 4 years ago

png is fine. Also, now osx app is generated and deployed by appveyor. This will ease its try.

kevinpapst commented 4 years ago

I did a git pull and the two build commands again. The warning is gone, but the icon only updated in the system tray. The dock icon (and also the app icon in the finder) is still empty:

Bildschirmfoto 2020-04-08 um 14 38 42