GithubHelp home page GithubHelp logo

gdmenu's Issues

Makefile on Ubuntu throws "undefined reference" errors

Looks like Makefile is not picking up glib properly. Below is the default output:

 # make
cc -Os -pipe -march=native -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/mirclient -I/usr/include/mircore -I/usr/include/mircookie -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -s -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lglib-2.0  gdmenu.c   -o gdmenu
/tmp/cceMpPaU.o: In function `select_row.part.0':
gdmenu.c:(.text+0x7): undefined reference to `gtk_tree_path_new_from_indices'
gdmenu.c:(.text+0x19): undefined reference to `gtk_tree_selection_select_path'
/tmp/cceMpPaU.o: In function `selected_row':
gdmenu.c:(.text+0x52): undefined reference to `gtk_tree_selection_get_selected'
gdmenu.c:(.text+0x5b): undefined reference to `gtk_tree_model_get_type'
gdmenu.c:(.text+0x6a): undefined reference to `g_type_check_instance_cast'
gdmenu.c:(.text+0x75): undefined reference to `gtk_tree_model_get_path'
gdmenu.c:(.text+0x80): undefined reference to `gtk_tree_path_get_indices'
gdmenu.c:(.text+0x8a): undefined reference to `gtk_tree_path_free'

Error is about GTK but when I started adding headers one by one it all was about Glib

At the same time manual workaround works fine:

cc -Os -pipe -march=native  `pkg-config --cflags glib-2.0` `pkg-config --cflags gtk+-3.0` gdmenu.c `pkg-config --libs glib-2.0` `pkg-config --libs gtk+-3.0` -o gdmenu

cp gdmenu /usr/local/bin/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.