Skip to content

dragonflybsd: build fails #758

Closed
Closed

Description

@jungle-boogie

Details for the issue

Ever since commit 8a91308, I cannot build sqlitebrowser:

> git checkout 8a9130883b9e89d57d33b6c3a0ee8ee59ce9957b
Previous HEAD position was e7b1233... Fix bug introduced in 684958b29ce3d26684d9142d73df773b11189d54
HEAD is now at 8a91308... Update installer variables on Windows, update Qt5 path
                                                                                                                                                             user@fly:~/bin/sqlitebrowser> cmake .
-- Could NOT find Antlr2 (missing:  ANTLR2_LIBRARIES ANTLR2_INCLUDE_DIRS)
-- Found Qt4: /usr/local/bin/qmake-qt4 (found version "4.8.7")
-- Found Qt4: /usr/local/bin/qmake-qt4 (found version "4.8.7")
CMake Warning (dev) at CMakeLists.txt:271 (add_executable):
  Policy CMP0037 is not set: Target names should not be reserved and should
  match a validity pattern.  Run "cmake --help-policy CMP0037" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  The target name "DB Browser for SQLite" is reserved or not valid for
  certain CMake features, such as generator expressions, and may result in
  undefined behavior.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/bin/sqlitebrowser
                                                                                                                                                             user@fly:~/bin/sqlitebrowser> make
make[1]: don't know how to make CMakeFiles/DB\. Stop

make[1]: stopped in /home/user/bin/sqlitebrowser
*** Error code 2

Stop.
make: stopped in /home/user/bin/sqlitebrowser

commit e7b1233 does not resolve the issue, either.

On dragonflybsd master:
DragonFly v4.7.0.270.gc211e-DEVELOPMENT #21: Mon Aug 29 13:07:08 PDT 2016

see also: #755

Activity

  1. justinclift commented on Aug 31, 2016

    @justinclift
    Member

    As a thought, would you be ok to try the build with qmake instead of cmake?

    That's a curiosity thing on my part, just to understand if qmake works ok on DragonFly BSD. 😄

    Regardless of that, I've just pushed a commit to the master branch which should fix the CMake issue. In theory. If you have the time/inclination to test that, it would be cool. 😄

  2. jungle-boogie commented on Aug 31, 2016

    @jungle-boogie
    ContributorAuthor

    Hi @justinclift,

    Prior to doing the git pull, I attempted t use qmake:

    /usr/local/lib/qt5/bin/qmake

    /usr/local/lib/qt5/bin/uic ColumnDisplayFormatDialog.ui -o .ui/ui_ColumnDisplayFormatDialog.h
    g++ -c -pipe -O2 -Wall -W -pthread -D_THREAD_SAFE -fPIC -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../libs/antlr-2.7.7 -I../libs/qhexedit -I../libs/qcustomplot-source -I../libs/qscintilla/Qt4Qt5 -I../../sqlitebrowser -I/usr/local/include/qt5 -I/usr/local/include/qt5/QtPrintSupport -I/usr/local/include/qt5/QtWidgets -I/usr/local/include/qt5/QtGui -I/usr/local/include/qt5/QtNetwork -I/usr/local/include/qt5/QtCg++ -c -pipe -O2 -Wall -W -pthread -D_THREAD_SAFE -fPIC -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../libs/antlr-2.7.7 -I../libs/qhexedit -I../libs/qcustomplot-source -I../libs/qscintilla/Qt4Qt5 -I../../sqlitebrowser -I/usr/local/include/qt5 -I/usr/local/include/qt5/QtPrintSupport -I/usr/local/include/qt5/QtWidgets -I/usr/local/include/qt5/QtGui -I/usr/local/include/qt5/QtNetwork -I/usr/local/include/qt5/QtCg++ -c -pipe -O2 -Wall -W -pthread -D_THREAD_SAFE -fPIC -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../libs/antlr-2.7.7 -I../libs/qhexedit -I../libs/qcustomplot-source -I../libs/qscintilla/Qt4Qt5 -I../../sqlitebrowser -I/usr/local/include/qt5 -I/usr/local/include/qt5/QtPrintSupport -I/usr/local/include/qt5/QtWidgets -I/usr/local/include/qt5/QtGui -I/usr/local/include/qt5/QtNetwork -I/usr/local/include/qt5/QtCIn file included from MainWindow.cpp:2:0:-I= -I/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-g++ -o release/MainWindow.o MainWindow.cpp
    ../../sqlitebrowser/ui_MainWindow.h:13:25: fatal error: QtGui/QAction: No such file or directory
    compilation terminated.
    *** Error code 1
    
    Stop.
    make[2]: stopped in /home/user/bin/sqlitebrowser/src
    *** Error code 1
    
    Stop.
    make[1]: stopped in /home/user/bin/sqlitebrowser/src
    *** Error code 1
    
    Stop.
    make: stopped in /home/user/bin/sqlitebrowser
    
  3. jungle-boogie commented on Aug 31, 2016

    @jungle-boogie
    ContributorAuthor

    Hi @justinclift,

    cmake build also fails after a git pull

    cmake .

    ventFilter(QObject*, QEvent*)'
    libs/qscintilla/Qt4Qt5/libqscintilla2.a(moc_SciClasses.o):moc_SciClasses.cpp:vtable for QsciSciListBox: error: undefined reference to 'QListView::viewportSizeHint() const'
    libs/qscintilla/Qt4Qt5/libqscintilla2.a(moc_SciClasses.o):moc_SciClasses.cpp:vtable for QsciSciListBox: error: undefined reference to 'QListView::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&)'
    *** Error code 1
    
    Stop.
    make[2]: stopped in /home/user/bin/sqlitebrowser
    *** Error code 1
    
    Stop.
    make[1]: stopped in /home/user/bin/sqlitebrowser
    *** Error code 1
    
    Stop.
    make: stopped in /home/user/bin/sqlitebrowser
    
  4. justinclift commented on Aug 31, 2016

    @justinclift
    Member

    Damn. 😦

    Just to double check, did you reset & clean the git tree before attempting those? eg:

    $ git reset --hard HEAD
    $ git clean -dffx
    

    That's just me hoping the build failed due to left over files from the previous run. 😁

    If that's definitely not the case, then what happens if you roll the git repo back a few commits, to just before the change I made? eg:

    $ git reset --hard e12e043
    $ git clean -dffx
    [then qmake / cmake, etc as appropriate]
    
  5. jungle-boogie commented on Aug 31, 2016

    @jungle-boogie
    ContributorAuthor

    Hi @justinclift,

    You saved the day! resetting head and cleaning it worked with qmake! I'll close this issue and see what happens on #755 tomorrow!

    Thanks,
    sean

  6. justinclift commented on Aug 31, 2016

    @justinclift
    Member

    Excellent. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions