Skip to content

Compiling on Linux with Qt 5.2 throws QUndoCommand error #11

Closed

Description

@sqlcipherdd

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.

Activity

  1. MKleusberg commented on May 22, 2014

    @MKleusberg
    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 :)

  2. justinclift commented on May 29, 2014

    @justinclift
    Member
  3. sqlcipherdd commented on May 30, 2014

    @sqlcipherdd
    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?

  4. justinclift commented on May 30, 2014

    @justinclift
    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?

  5. justinclift commented on May 30, 2014

    @justinclift
    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. 😄

  6. sqlcipherdd commented on May 31, 2014

    @sqlcipherdd
    Author

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

    I can see this on Ubuntu 12.04 also.

  7. removed this from the 3.2 - Codename Radiant milestone on Jul 5, 2014
  8. MKleusberg commented on Aug 15, 2014

    @MKleusberg
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bugs or reports that are very likely to be bugs.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions