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

ldb_config.h file missing #228

Open
sanjaybharadwaj opened this issue Jun 9, 2017 · 1 comment
Open

ldb_config.h file missing #228

sanjaybharadwaj opened this issue Jun 9, 2017 · 1 comment

Comments

@sanjaybharadwaj
Copy link

sanjaybharadwaj commented Jun 9, 2017

I am trying to build the package using Mingw64 on windows. Since the system is similar to Linux, I modified the build_system_detect to return Linux configurations also for Mingw64 compiler.

When I build the system, I get the following error

In file included from ./util/refobject_base.h:33:0,
from ./include/leveldb/expiry.h:30,
from ./include/leveldb/options.h:59,
from ./include/leveldb/iterator.h:20,
from ./include/leveldb/db.h:10,
from ./db/dbformat.h:10,
from ./db/builder.h:9,
from db/builder.cc:8:
./port/port.h:9:32: fatal error: leveldb/ldb_config.h: No such file or directory
#include "leveldb/ldb_config.h"

I do not find the file ldb_config.h present anywhere in the system, I used the Master and the latest 2.1.3 version. What can be the problem?

@matthewvon
Copy link
Contributor

(apologies for the delayed reply. Basho is effectively dead. All developers were laid off March 15, 2017. I have not been watching this repository closely since then.)

ldb_config.h is created at build time by the build_detect_platform script. Here is a sample from a Mac OS X build:

/** This file is generated by build_detect_platform.

  • It saves the state of compile flags. This benefits the reuse
  • of internal include files outside of a leveldb build.
    */

#ifndef OS_MACOSX
#define OS_MACOSX
#endif

#ifndef LEVELDB_PLATFORM_POSIX
#define LEVELDB_PLATFORM_POSIX
#endif

I suspect you will be able to quickly mock one up for your environment.

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