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

Compilation issues using Cygwin under Windows 7 #87

Closed
cmumford opened this issue Sep 9, 2014 · 2 comments
Closed

Compilation issues using Cygwin under Windows 7 #87

cmumford opened this issue Sep 9, 2014 · 2 comments
Assignees

Comments

@cmumford
Copy link
Contributor

cmumford commented Sep 9, 2014

Original issue 81 created by luke.glader on 2012-04-04T09:37:28.000Z:

What steps will reproduce the problem?

  1. Install Cygwin on a Windows 7 system
  2. Checkout/create an Android application under $APP so that AndroidManifest.xml is visible in that directory.
  3. Follow the installation instructions (download NDK to $NDK, levelDB to $APP/jni so that Android.mk is directly visible in that directory).
  4. in Cygwin, cd to $APP
  5. run $NDK/ndk-build

What is the expected output? What do you see instead?

Expected: some proper output somewhere around $APP or $APP/jni

Happened: Compilation errors (small sample below)

Compile++ thumb : leveldb <= builder.cc

In file included from jni/./db/builder.cc:5:
jni/db/builder.h:8:28: error: leveldb/status.h: No such file or directory
In file included from jni/./db/builder.cc:7:
jni/db/filename.h:11:18: error: string: No such file or directory
jni/db/filename.h:12:27: error: leveldb/slice.h: No such file or directory
In file included from jni/./db/builder.cc:8:
jni/db/dbformat.h:9:32: error: leveldb/comparator.h: No such file or directory
jni/db/dbformat.h:10:24: error: leveldb/db.h: No such file or directory
jni/db/dbformat.h:12:35: error: leveldb/table_builder.h: No such file or directory
In file included from jni/./db/builder.cc:9:
jni/db/table_cache.h:13:27: error: leveldb/cache.h: No such file or directory
jni/db/table_cache.h:14:27: error: leveldb/table.h: No such file or directory
In file included from jni/./db/builder.cc:10:
jni/db/version_edit.h:8:15: error: set: No such file or directory
jni/db/version_edit.h:10:18: error: vector: No such file or directory
jni/./db/builder.cc:12:25: error: leveldb/env.h: No such file or directory
jni/./db/builder.cc:13:30: error: leveldb/iterator.h: No such file or directory
In file included from jni/./db/builder.cc:5:
jni/db/builder.h:25: error: 'Status' does not name a type
In file included from jni/port/port.h:18,
from jni/db/filename.h:14,

What version of the product are you using? On what operating system?

leveldb version: 1.2
Operating system: Windows 7 Pro SP1 x64

Please provide any additional information below.

  • some sample paths to files to give you an idea of my folder structure:
    $APP/AndroidManifest.xml
    $APP/jni/Android.mk
    $APP/jni/db/builder.h
    $APP/jni/include/leveldb/db.h
  • My system does not have any manually installed C/C++ development tools or compilers.
  • Attached is the output from a compilation attempt.
@cmumford
Copy link
Contributor Author

cmumford commented Sep 9, 2014

Comment #1 originally posted by luke.glader on 2012-04-04T12:44:44.000Z:

This issue can be deleted, I resolved it by checking out the latest version of the repository and switching to the android-branch.

@cmumford cmumford self-assigned this Sep 9, 2014
@cmumford
Copy link
Contributor Author

cmumford commented Sep 9, 2014

Comment #2 originally posted by tfarina@chromium.org on 2012-04-04T13:45:24.000Z:

<empty>

@cmumford cmumford closed this as completed Sep 9, 2014
maochongxin pushed a commit to maochongxin/leveldb that referenced this issue Jul 21, 2022
Add filter test, remove re test, and googletest deps
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