liuis / leveldb

Automatically exported from code.google.com/p/leveldb
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Compilation issues using Cygwin under Windows 7 #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by luke.gla...@gmail.com on 4 Apr 2012 at 9:37

Attachments:

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

Original comment by luke.gla...@gmail.com on 4 Apr 2012 at 12:44

GoogleCodeExporter commented 9 years ago

Original comment by tfar...@chromium.org on 4 Apr 2012 at 1:45