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

Project does not build #662

Closed
antoniogermano opened this issue Jul 1, 2015 · 6 comments
Closed

Project does not build #662

antoniogermano opened this issue Jul 1, 2015 · 6 comments

Comments

@antoniogermano
Copy link

I get compiler errors (missing file) when trying to build the project for a real device:

clang: error: no such file or directory: '/Users/antoniogermano/Work/Mobile/firefox-ios/ThirdParty/sqlcipher/sqlite3.c'
clang: error: no input files

I have tried to build it exactly as said on the GitHub page, and I'm building using Xcode.

If I try to run on the simulator instead I get a very similar error, just using another location:

module sqlite3 [system] {
    // the line below causes the error
    header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/include/sqlite3.h"
    link "sqlite3"
    export *
}

/Users/antoniogermano/Work/Mobile/firefox-ios/Storage/modules/module.modulemap:2:12: error: header '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/include/sqlite3.h' not found
header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/include/sqlite3.h"
       ^
<unknown>:0: error: could not build Objective-C module 'sqlite3'

Did anybody else have this problem?

@antoniogermano
Copy link
Author

Xcode Version 6.4 (6E35b)
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix

@reza-ryte-club
Copy link

Try installing Carthage.pkg from https://github.com/Carthage/Carthage/releases
Then go to your firefox source directory from terminal.
Give the following command:

./checkout.sh

after installing necessary dependencies open the Client.xcodeproj file from finder with XCode.
Then in order to build Command+B
You can run then with Command+R.

@pbernery
Copy link
Contributor

Same issue here.

Where does the sqlite3.c file dependency comes from? The Sqlite Cipher project does not seem to contain any sqlite3.c file nor does the firefox for iOS repository.

By the way, but this is more related to Carthage, I had to manually fetch dependencies as Carthage segfaults on my machine with the Firefox for iOS Cartfile.

@pbernery
Copy link
Contributor

I managed to make it compile: I first opened the sqlcipher Xcode project, built the sqlcipher target then reopened the Firefox for iOS project and it passed.
It seems to be a build dependency failure of Xcode.

@pbernery
Copy link
Contributor

I forgot to mention that I used the latest sqlcipher project for that. However, the default configuration seems to not be good for Firefox. I got back to the version delivered with Firefox. I had to build the sqlcipher dependency (amalgamation) manually. In a Terminal, in the ThirdParty/sqlcipher directory, type:

./configure --enable-tempstore=yes --with-crypto-lib=commoncrypto CFLAGS="-DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2"
make sqlite3.c

The command is taken from the amalgamation target Run Script build phase of the sqlcipher Xcode project.

@rnewman
Copy link
Contributor

rnewman commented Aug 13, 2015

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

5 participants
@pbernery @rnewman @antoniogermano @reza-ryte-club and others