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

Build fails, clixon/clixon.h: No such file or directory #1

Closed
troglobit opened this issue Sep 18, 2016 · 4 comments
Closed

Build fails, clixon/clixon.h: No such file or directory #1

troglobit opened this issue Sep 18, 2016 · 4 comments

Comments

@troglobit
Copy link
Contributor

After installing all dependencies, running ./configure && make, I get this error. Looks like it's looking for header file in the installed path?

bison -y -l -d -p clixon_json_parse clixon_json_parse.y # -t is debug
mv y.tab.c clixon_json_parse.tab.c
mv y.tab.h clixon_json_parse.tab.h
flex -Pclixon_json_parse clixon_json_parse.l # -d is debug
gcc -I.  -I../../lib/clixon -I../../include -I../.. -I/usr/local/include -DHAVE_CONFIG_H  -fPIC -O2 -Wall  -Wno-error -c lex.clixon_json_parse.c
gcc -I.  -I../../lib/clixon -I../../include -I../.. -I/usr/local/include -DHAVE_CONFIG_H  -fPIC -O2 -Wall  -c clixon_json_parse.tab.c
clixon_json_parse.tab.c:180:27: fatal error: clixon/clixon.h: No such file or directory
compilation terminated.
Makefile:145: recipe for target 'clixon_json_parse.tab.o' failed
make[2]: *** [clixon_json_parse.tab.o] Error 1
make[2]: Leaving directory '/home/jocke/tmp/clixon/lib/src'
Makefile:42: recipe for target 'src' failed
make[1]: *** [src] Error 2
make[1]: Leaving directory '/home/jocke/tmp/clixon/lib'
Makefile:49: recipe for target 'lib' failed
make: *** [lib] Error 2

I'm building on Ubuntu 16.04, x86_64.

@olofhagsand
Copy link
Member

Changed from system to cwd includes for internal .h. Committed and fixed. Thanks for the issue request.

@troglobit
Copy link
Contributor Author

Awesome, but now examples/ doesn't build 😕

$ cd example/
$ make
gcc -O2 -Wall -rdynamic -fPIC    -c -o routing_backend.o routing_backend.c
routing_backend.c:38:27: fatal error: clixon/clixon.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'routing_backend.o' failed
make: *** [routing_backend.o] Error 1

@olofhagsand
Copy link
Member

Probably not made the last step (sudo make- install-include) before cd example; make?
snap from README.md:

configure # Configure clixon to platform
> make # Compile
> sudo make install # Install libs, binaries, and config-files
> sudo make install-include # Install include files (for compiling)

@troglobit
Copy link
Contributor Author

troglobit commented Sep 19, 2016

That's it, thanks! 😃

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

2 participants