GithubHelp home page GithubHelp logo

overlay-thing's Introduction

overlay thing for linux.

run mumble, run thing, enjoy

overlay-thing's People

Contributors

ben0x539 avatar

Stargazers

Tuxinal avatar Micon Frink ~ Lemur avatar

Watchers

 avatar  avatar

overlay-thing's Issues

make fails due to wrong order of linking flags

make fails with the following error:

$ make
cc  -c main.c
cc  -c mumble.c
cc  `pkg-config --cflags xcb xcb-shape` -c xcb.c
cc   `pkg-config --libs xcb xcb-shape` -lrt -o overlay-thing main.o mumble.o xcb.o
mumble.o: In function `open_mumble_shm':
mumble.c:(.text+0x8b2): undefined reference to `shm_open'
xcb.o: In function `setup_xcb':
xcb.c:(.text+0x56): undefined reference to `xcb_connect'
xcb.c:(.text+0xa3): undefined reference to `xcb_big_requests_enable'
xcb.c:(.text+0xaf): undefined reference to `xcb_shape_id'
xcb.c:(.text+0xb7): undefined reference to `xcb_get_extension_data'
xcb.c:(.text+0xfe): undefined reference to `xcb_get_setup'
xcb.c:(.text+0x106): undefined reference to `xcb_setup_roots_iterator'
xcb.c:(.text+0x152): undefined reference to `xcb_screen_next'
xcb.c:(.text+0x1ae): undefined reference to `xcb_generate_id'
xcb.c:(.text+0x1de): undefined reference to `xcb_create_colormap'
xcb.c:(.text+0x213): undefined reference to `xcb_generate_id'
xcb.c:(.text+0x286): undefined reference to `xcb_create_window'
xcb.c:(.text+0x299): undefined reference to `xcb_generate_id'
xcb.c:(.text+0x2ca): undefined reference to `xcb_create_gc'
xcb.c:(.text+0x302): undefined reference to `xcb_shape_rectangles'
xcb.c:(.text+0x315): undefined reference to `xcb_flush'
xcb.c:(.text+0x333): undefined reference to `xcb_get_file_descriptor'
xcb.o: In function `cleanup_xcb':
xcb.c:(.text+0x3c1): undefined reference to `xcb_destroy_window'
xcb.c:(.text+0x3e4): undefined reference to `xcb_free_gc'
xcb.c:(.text+0x407): undefined reference to `xcb_free_colormap'
xcb.c:(.text+0x416): undefined reference to `xcb_disconnect'
xcb.o: In function `move_resize':
xcb.c:(.text+0x474): undefined reference to `xcb_map_window'
xcb.c:(.text+0x4ce): undefined reference to `xcb_configure_window'
xcb.c:(.text+0x4e8): undefined reference to `xcb_unmap_window'
xcb.c:(.text+0x4f7): undefined reference to `xcb_flush'
xcb.o: In function `blit':
xcb.c:(.text+0x68f): undefined reference to `xcb_put_image'
xcb.c:(.text+0x6ae): undefined reference to `xcb_flush'
xcb.o: In function `get_rgba_visual':
xcb.c:(.text+0x6de): undefined reference to `xcb_screen_allowed_depths_iterator'
xcb.c:(.text+0x70a): undefined reference to `xcb_depth_visuals_iterator'
xcb.c:(.text+0x752): undefined reference to `xcb_visualtype_next'
xcb.c:(.text+0x772): undefined reference to `xcb_depth_next'
xcb.o: In function `on_xcb_read':
xcb.c:(.text+0x801): undefined reference to `xcb_poll_for_event'
xcb.c:(.text+0x81b): undefined reference to `xcb_connection_has_error'
collect2: error: ld returned 1 exit status
Makefile:6: recipe for target 'overlay-thing' failed
make: *** [overlay-thing] Error 1

Fixed by changing link flags to the end as below:

overlay-thing: main.o mumble.o xcb.o
        $(CC) $(CFLAGS) -o overlay-thing main.o mumble.o xcb.o $(LDFLAGS) -lrt `pkg-config --libs $(XCB_LIBS)`

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.