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

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

Open
stephano33 opened this issue Oct 18, 2017 · 0 comments
Open

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

stephano33 opened this issue Oct 18, 2017 · 0 comments

Comments

@stephano33
Copy link

stephano33 commented Oct 18, 2017

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

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

No branches or pull requests

1 participant