-
Notifications
You must be signed in to change notification settings - Fork 16
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
Does this library actually work? #3
Comments
Hello, let me first provide build logs for different platforms, so that we can justify yours and other's errors. |
MacOS (builds successfully):
|
Ubuntu 18.04: yes, you are right, there are some issues fixed in 7dd6cb9 , please give it a try:
|
Windows 10: yes, the rest of issues you reported are valid, and are fixed in 096bac7 . Below is the successful build log:
|
@KamijoToma Thank you for this report. Could you please confirm the errors are gone with commit 096bac7 ? I will close the issue for now. Should the errors persist, please reopen the issue. |
Fix for legacy appindicator
When I tried to compile this library with command
cmake ..
, it reported aCMP0002
error:CMake Error at CMakeLists.txt:50 (add_library): add_library cannot create target "tray" because another target with the same name already exists. The existing target is an interface library created in source directory "[Project Root Dir]". See documentation for policy CMP0002 for more details.
However, after I renamed the
tray
library to another name, a huge amount of errors came when I runninja
,showing that there maybe some wrong in the code.
These errors contain:
This is something like
tray_windows.c:42:15: error: invalid use of undefined type 'struct tray_menu''
,This kind of errors is solved after I added
#include "tray.h"
on the top oftray_windows.c
(This problems may also exist in tray_linux.c and tray_darwin.m)Something like
example.c:(.text+0x11d): undefined reference to
tray_exit'It comes out that methods defined in
tray_windows.care static methods, so that
example.c` cannot call them.According to those I explained above, I don't understand why those errors happen in this library.
Thank you for answering my question.
Apologize for my poor English.
The text was updated successfully, but these errors were encountered: