Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Difficulty Developing a podspec for NULevelDB
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Lawrence Lomax  
View profile  
 More options Oct 30 2012, 7:09 pm
From: Lawrence Lomax <insertjokeh...@gmail.com>
Date: Tue, 30 Oct 2012 16:09:43 -0700 (PDT)
Local: Tues, Oct 30 2012 7:09 pm
Subject: Difficulty Developing a podspec for NULevelDB

Hi all,

First time Mailing List user and recent CocoaPods convert.

I've been trying to create a podspec for NuLevelDB<https://github.com/nulayer/NULevelDB>,
which is a Objective-C wrapper for Google's leveldb.

I'm running into some difficulty because of the usage of the leveldb C/C++
library. I've been fiddling about with s.header_mappings_dir to try and get
the leveldb library to build. I have multiple declarations for the
subdirectories in the leveldb/ subdirectory, a recursive definition of this
directory would cause the windows includes to be built.

The key lines are here:
  s.source_files = 'Classes/*.{h,mm,m}', 'leveldb/db',
'leveldb/helpers/memenv', 'leveldb/include/leveldb', 'leveldb/port/port.h',
'leveldb/table', 'leveldb/util'
  s.header_mappings_dir = 'leveldb/include'

Lint shows the following errors:
    - ERROR | XCODEBUILD >  BuildHeaders/NULevelDB/leveldb/slice.h:21:10:
fatal error: 'string' file not found
    - ERROR | XCODEBUILD >  BuildHeaders/NULevelDB/leveldb/slice.h:21:10:
fatal error: 'string' file not found

This is due to the include <string>. I'm not sure where to go from here.

Do I need to do something more sophisticated like use a subspec?

My podspec is up here on my fork of NULevelDB<https://github.com/lawrencelomax/NULevelDB/blob/master/NULevelDB.podspec>

Cheers,

Lawrence


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabio Pelosin  
View profile  
 More options Oct 31 2012, 5:47 am
From: Fabio Pelosin <fabiopelo...@gmail.com>
Date: Wed, 31 Oct 2012 10:47:11 +0100
Local: Wed, Oct 31 2012 5:47 am
Subject: Re: Difficulty Developing a podspec for NULevelDB

The error seems due to the fact that the C++ compiler is not invoked (usually invoked by the `hpp` and `hh` extensions). Is the original project building? Is this file included in the target?
If it does I guess the file type was specified manually on Xcode but we don't have support for doing it on CocoaPods.

On 31/ott/2012, at 00:09, Lawrence Lomax <insertjokeh...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lawrence Lomax  
View profile  
 More options Oct 31 2012, 8:58 pm
From: Lawrence Lomax <insertjokeh...@gmail.com>
Date: Wed, 31 Oct 2012 17:58:42 -0700 (PDT)
Local: Wed, Oct 31 2012 8:58 pm
Subject: Re: Difficulty Developing a podspec for NULevelDB

Having a look at it again, you have to use the Xcode workspace to build. It
builds leveldb to a static library first and then builds the Objective-C
source against the static library. One interesting thing is that leveldb
build uses the cflags

-DOS_MACOSX
-DLEVELDB_PLATFORM_POSIX

to build.

The Build seems to use clang and use these flags.

CompileC
/Users/Lawrence/Library/Developer/Xcode/DerivedData/NULevelDB-caopselsiakgk fcajqtfyhsfnyki/Build/Intermediates/NULevelDB.build/Debug-iphoneos/leveldb. build/Objects-normal/armv7/cache.o
leveldb/util/cache.cc normal armv7 c++
com.apple.compilers.llvm.clang.1_0.compiler

    cd /Users/Lawrence/libs/NULevelDB

    setenv LANG en_US.US-ASCII

    setenv PATH
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Dev eloper/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin: /bin:/usr/sbin:/sbin"

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolch ain/usr/bin/clang
-x c++ -arch armv7 -fmessage-length=0 -Wno-trigraphs -fpascal-strings -O0
-Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type
-Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors
-Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function
-Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value
-Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow
-Wno-four-char-constants -Wno-conversion -Wno-shorten-64-to-32
-Wno-newline-eof -Wno-c++11-extensions -DDEBUG=1 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Deve loper/SDKs/iPhoneOS6.0.sdk
-Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion
-miphoneos-version-min=5.0 -iquote
/Users/Lawrence/Library/Developer/Xcode/DerivedData/NULevelDB-caopselsiakgk fcajqtfyhsfnyki/Build/Intermediates/NULevelDB.build/Debug-iphoneos/leveldb. build/leveldb-generated-files.hmap
-I/Users/Lawrence/Library/Developer/Xcode/DerivedData/NULevelDB-caopselsiak gkfcajqtfyhsfnyki/Build/Intermediates/NULevelDB.build/Debug-iphoneos/leveld b.build/leveldb-own-target-headers.hmap
-I/Users/Lawrence/Library/Developer/Xcode/DerivedData/NULevelDB-caopselsiak gkfcajqtfyhsfnyki/Build/Intermediates/NULevelDB.build/Debug-iphoneos/leveld b.build/leveldb-all-target-headers.hmap
-iquote
/Users/Lawrence/Library/Developer/Xcode/DerivedData/NULevelDB-caopselsiakgk fcajqtfyhsfnyki/Build/Intermediates/NULevelDB.build/Debug-iphoneos/leveldb. build/leveldb-project-headers.hmap
-iquote/Users/Lawrence/libs/NULevelDB/leveldb/include
-iquote/Users/Lawrence/libs/NULevelDB/leveldb
-I/Users/Lawrence/Library/Developer/Xcode/DerivedData/NULevelDB-caopselsiak gkfcajqtfyhsfnyki/Build/Products/Debug-iphoneos/include
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctool chain/usr/include
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctool chain/usr/include
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctool chain/usr/include
-I/Users/Lawrence/Library/Developer/Xcode/DerivedData/NULevelDB-caopselsiak gkfcajqtfyhsfnyki/Build/Intermediates/NULevelDB.build/Debug-iphoneos/leveld b.build/DerivedSources/armv7
-I/Users/Lawrence/Library/Developer/Xcode/DerivedData/NULevelDB-caopselsiak gkfcajqtfyhsfnyki/Build/Intermediates/NULevelDB.build/Debug-iphoneos/leveld b.build/DerivedSources
-F/Users/Lawrence/Library/Developer/Xcode/DerivedData/NULevelDB-caopselsiak gkfcajqtfyhsfnyki/Build/Products/Debug-iphoneos
-DOS_MACOSX -DLEVELDB_PLATFORM_POSIX -MMD -MT dependencies -MF
/Users/Lawrence/Library/Developer/Xcode/DerivedData/NULevelDB-caopselsiakgk fcajqtfyhsfnyki/Build/Intermediates/NULevelDB.build/Debug-iphoneos/leveldb. build/Objects-normal/armv7/cache.d
--serialize-diagnostics
/Users/Lawrence/Library/Developer/Xcode/DerivedData/NULevelDB-caopselsiakgk fcajqtfyhsfnyki/Build/Intermediates/NULevelDB.build/Debug-iphoneos/leveldb. build/Objects-normal/armv7/cache.dia
-c /Users/Lawrence/libs/NULevelDB/leveldb/util/cache.cc -o
/Users/Lawrence/Library/Developer/Xcode/DerivedData/NULevelDB-caopselsiakgk fcajqtfyhsfnyki/Build/Intermediates/NULevelDB.build/Debug-iphoneos/leveldb. build/Objects-normal/armv7/cache.o

Thanks,

Lawrence


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabio Pelosin  
View profile  
 More options Nov 2 2012, 7:23 am
From: Fabio Pelosin <fabiopelo...@gmail.com>
Date: Fri, 2 Nov 2012 12:23:45 +0100
Local: Fri, Nov 2 2012 7:23 am
Subject: Re: Difficulty Developing a podspec for NULevelDB

Did you manage to solve the issue passing the C Flags to the podspec?

On 01/nov/2012, at 01:58, Lawrence Lomax <insertjokeh...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lawrence Lomax  
View profile  
 More options Nov 5 2012, 5:44 pm
From: Lawrence Lomax <insertjokeh...@gmail.com>
Date: Mon, 5 Nov 2012 14:44:45 -0800 (PST)
Local: Mon, Nov 5 2012 5:44 pm
Subject: Re: Difficulty Developing a podspec for NULevelDB

Same issue as before, just added

  s.compiler_flags = '-DLEVELDB_PLATFORM_POSIX' , '-DOS_MACOSX'

The failure comes during the processing of the Prefix header, but not
giving it too much importance, since the prefix headers just reference the
source files.

** BUILD FAILED **

The following build commands failed:
ProcessPCH
/var/folders/vv/s2jm8d412pbd81bpvhc6f5rc0000gn/C/com.apple.Xcode.501/Shared PrecompiledHeaders/Pods-prefix-cviqrjphkihkvufpbnbwgyzpqnkp/Pods-prefix.pch .pth
Pods-prefix.pch normal armv7 objective-c
com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
 -> NULevelDB (0.0.1)
    - ERROR | XCODEBUILD >  BuildHeaders/NULevelDB/leveldb/slice.h:21:10:
fatal error: 'string' file not found


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabio Pelosin  
View profile  
 More options Nov 6 2012, 3:03 pm
From: Fabio Pelosin <fabiopelo...@gmail.com>
Date: Tue, 6 Nov 2012 21:03:00 +0100
Subject: Re: Difficulty Developing a podspec for NULevelDB

I guess that the file type is set in the inspector manually. I would suggest to try to change the extensions of the relevant files, and see if it works.

On 05/nov/2012, at 23:44, Lawrence Lomax <insertjokeh...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »