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

Compiling on Linux with Qt 5.2 throws QUndoCommand error #11

Closed
sqlcipherdd opened this issue May 21, 2014 · 7 comments
Closed

Compiling on Linux with Qt 5.2 throws QUndoCommand error #11

sqlcipherdd opened this issue May 21, 2014 · 7 comments
Labels
bug Confirmed bugs or reports that are very likely to be bugs.

Comments

@sqlcipherdd
Copy link

case: 1. git clone repo.
2. open sqlitebrowser.pro through Qt Creator 3.0.0. (based on Qt 5.2.0 - 64 but)
3. Celan All -> Run qmake -> Build All
4. thrown error

Resolved by adding major version settings to qhexedit.pro and qcustomplot .pro files.

MKleusberg added a commit that referenced this issue May 22, 2014
@MKleusberg
Copy link
Member

The above mentioned commit should fix the issue. But if you could double check that would be great.

By the way, you can also use cmake for compilation, that's our preferred way of building the application but feel free to use qmake if you prefer that :)

@justinclift justinclift added this to the 3.2 - Codename Radiant milestone May 24, 2014
@justinclift
Copy link
Member

@sqlcipherdd ping?

@sqlcipherdd
Copy link
Author

Major version settings added properly to qhexedit.pro and qcustomplot .pro files.
I tried with qmake now with qt5.2.
Qt throws sqlite3.h file couldn't found.

I tried to find the sqlite3.h file on Linux terminal by using below command:

durga@ubuntu:~/sqlitebrowser$ find /home/durga/sqlitebrowser/ -name "sqlite"
/home/durga/sqlitebrowser/
/home/durga/sqlitebrowser/distri/sqlitebrowser.desktop
/home/durga/sqlitebrowser/src/sqlitetablemodel.h
/home/durga/sqlitebrowser/src/sqlitetablemodel.cpp
/home/durga/sqlitebrowser/src/icons/sqlitebrowser.png
/home/durga/sqlitebrowser/src/grammar/sqlite3.g
/home/durga/sqlitebrowser/src/grammar/sqlite3TokenTypes.hpp
/home/durga/sqlitebrowser/src/sqlitedb.h
/home/durga/sqlitebrowser/src/sqlitetypes.cpp
/home/durga/sqlitebrowser/src/sqlitetypes.h
/home/durga/sqlitebrowser/src/sqlitedb.cpp
/home/durga/sqlitebrowser/sqlitebrowser.pro
/home/durga/sqlitebrowser/sqlitebrowser.pro.user
/home/durga/sqlitebrowser/images/sqlitebrowser.svg
/home/durga/sqlitebrowser/images/sqlitebrowser.png

Should I include explicitly add these files(sqlite3.h/.c, shell.c files from sqlite.org) to Qt project?

@justinclift
Copy link
Member

Ahhh, that looks more like your system doesn't have the SQLite 3 development bits installed. Which distribution & version of Linux are you using?

@justinclift
Copy link
Member

Btw, asking so I can install the same distribution+version into a VM here. That'll let me try the compile out in a similar environment, so I can figure out why it's acting up for you. 😄

@sqlcipherdd
Copy link
Author

I used to work with couple of sqlite3 versions on my machine. (including sqlcipher)

I can see this on Ubuntu 12.04 also.

@justinclift justinclift removed this from the 3.2 - Codename Radiant milestone Jul 5, 2014
@MKleusberg
Copy link
Member

Just switched to Qt5 for compiling SQLiteBrowser; as I didn't encounter any problems I think it's safe to close this issue.
For future reference: If the sqlite3.h file couldn't be found, the SQLite dev package needs to be installed. For all Debian and Ubuntu Linuxes this should be libsqlite3-dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs.
Projects
None yet
Development

No branches or pull requests

3 participants