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

fixes linux build dependencies #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dev-rke
Copy link

@dev-rke dev-rke commented Feb 4, 2024

I had the issue that the current implementation causes several issues when creating a production build on Ubuntu 22.04.3 via v -prod ..

The first issue i experienced was the package appindicator3 didn't exist - it is called appindicator-0.1 on my distribution.
As i am not experienced very much with dependency hells in C programming language, i gave a check using

$ pkg-config --list-all | grep appindi
appindicator-0.1                    appindicator-0.1 - Application indicators
ayatana-appindicator3-0.1           ayatana-appindicator3-0.1 - Ayatana Application Indicators (for GTK-3+)

Switching to appindicator-0.1 caused

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libappindicator3.so: undefined reference to symbol 'gtk_menu_get_type'
/usr/bin/ld: /lib/x86_64-linux-gnu/libgtk-3.so.0: DSO missing from command line
collect2: error: ld returned 1 exit status
builder error: 
==================
C error. This should never happen.

I solved this by applying the flag -lgtk-3, which afterwards caused

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libappindicator3.so: undefined reference to symbol 'g_type_check_instance_cast'
/usr/bin/ld: /lib/x86_64-linux-gnu/libgobject-2.0.so.0: DSO missing from command line
collect2: error: ld returned 1 exit status
builder error: 
==================
C error. This should never happen.

Applying the flag -lgobject-2.0 finally solved the dependency hell.

If you see better approaches to create a stable production build, please feel free to optimize my proposal.

Thank you very much for this wrapper, having tray support is very helpful for tool creation.

Using gtk-3 to ensure compatibility with Debian based distributions
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

Successfully merging this pull request may close these issues.

None yet

1 participant