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

qsqlcipher uses sqlite instead of sqlcipher #9

Open
tux-mind opened this issue Jan 18, 2016 · 1 comment
Open

qsqlcipher uses sqlite instead of sqlcipher #9

tux-mind opened this issue Jan 18, 2016 · 1 comment

Comments

@tux-mind
Copy link

first of all: thanks for aswering me on the PR and spending your time for this software 😊

I followed your instruction and made the following steps:

tests will fail.

whe I run ldd against libqsqlcipher.so i see that it has been linked with sqlite, not sqlcipher.

compiling it in verbose mode I saw that the linker it's executed with -lsqlite.
running again the linker with -lsqlcipher will solve the problem and make tests to pass.

I hope that this will help you 😊

CMake output:

-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.9.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") 
-- checking for module 'sqlcipher'
--   found sqlcipher, version 2.2.1
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nino/Documenti/qt5-sqlcipher/build
@sijk
Copy link
Owner

sijk commented Jan 19, 2016

This is caused by a broken pkg-config file for libsqlcipher-dev in Ubuntu 14.04. If you run pkg-config --cflags --libs sqlcipher you'll see that the library name is wrong. You could try reporting this to the package maintainer or you could build the latest sqlcipher from https://github.com/sqlcipher/sqlcipher.

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