Comments (7)
Thanks for implementing this.
from cachelot.
Thank you for the bug report. I haven't tried to build cachelot using ninja yet.
Will try to address this issue ASAP.
from cachelot.
Can you please try to build cachelot from the root project directory (without switching to the __build)? It should work then.
Build out of root directory isn't supported really.
Please let me know if it would work for you or not.
from cachelot.
Building in the root works (only tried ninja).
-Isrc
(which in case of out-of-tree build becomes -I../src
) seems to be insufficient for out-of-tree builds.
I managed to build one of the sources by manually running the compilation command and adding -Isrc -Isrc/cachelot
before the -I../src
generated by CMake.
Perhaps common.h should #include "cachelot/config.h"
instead of just "config.h", and then only -I../src
would be needed.
from cachelot.
Building in the root works (only tried ninja).
Great news!
Perhaps common.h should #include "cachelot/config.h" instead of just "config.h"
Thank you for the suggestion. There was no reason to keep one include differently.
Changed in: 7c65900
I'm closing this issue.
from cachelot.
Unfortunately, this change is not enough. -Isrc
is needed (to find config.h under the build dir) in addition to the -I../src
currently generated by CMake.
from cachelot.
-Isrc is needed (to find config.h under the build dir) in addition to the -I../src currently generated by CMake.
I was not going to support out-of-tree builds, but here it is.
The reason of the compilation error was that config.h and version.h were created in the wrong place.
The fix is in the master.
from cachelot.
Related Issues (20)
- Provide a callback to notify which items were evicted HOT 4
- Question: Atomic operations HOT 1
- Ubuntu daemon can't work HOT 2
- test_c_api problem HOT 2
- Build for Freebsd HOT 6
- Docker image Error: bind: Address in use
- Distribute as conan.io package
- thread safe HOT 3
- Some questions about cache api (cache.h) in multi-threaded app HOT 3
- Unit test failure in test_int_to_str HOT 4
- Install Missing in cmake List HOT 4
- Will it build/work with android ecosystem ? HOT 1
- is this cachelot library thread-safe? HOT 3
- why not remove the boost dependency HOT 1
- Add CI/CD on Windows
- Improve cachelot.io website performance HOT 1
- Coverity integration
- Add libFuzzer integration
- cachelot C api library and documentation HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cachelot.