Skip to content

Not compiling under Ubuntu 16.10 (HERE IS A FIX) #5

@stephano33

Description

@stephano33

Compile gezia demo under Ubuntu 16.10:

1)))) clone the repository for gezira and nile with a common root directory (e.g., I clone both directories in ~/Downloads/). This is needed as gezira includes nile files with “../../nile”.

2)))) install and use clang compiler (otherwise there might be problems with -fPIC related to linking dynamic and not dynamic / shared libraries):
export CC=clang

3)))) change Makefile (gezira/c/demos/Makefile.gcc) to use Xlib regarding the LDFlags:
change the line "LDFLAGS += -lXext -lm -pthread" to this:
"LDFLAGS += -lX11 -lXext -lm -pthread "

Otherwise I got the error: “/usr/bin/ld: /tmp/snow-demo-bec74b.o: undefined reference to symbol 'XNextEvent'”

4)))) add prototype for “nile_Identity” in file “c/demos/utils/window.h” and “c/gezira-image.c”
In both files add as first line after the #include and #ifdef statements the following line:
nile_Process_t * nile_Identity (nile_Process_t *p, int quantum);

5)))) optional, check that you have Xorg dev packages install (but this is probably not needed):
sudo apt-get install xorg-dev

6)))) compile the snowflake demo
cd gezira/c/demos/
make -f Makefile.gcc snow-demo && ./snow-demo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions