cleverca22
7/28/2016 - 9:35 PM

backtrace

#include <QApplication>
#include "bootconfig.h"

int main(int argc, char **argv) {
    QApplication (argc,argv);
    BootConfig *bc = new BootConfig();
}
(import <nixpkgs> {}).qt5.callPackage

({ stdenv, makeQtWrapper, qttools, qtbase, qmakeHook, qt5Full }:

stdenv.mkDerivation {
  name = "nixos-gui-install";
  src = ./.;
  nativeBuildInputs = [ qmakeHook makeQtWrapper ];
  buildInputs = [ qmakeHook qttools qtbase qt5Full ];
  dontStrip = true;
  NIX_CFLAGS_COMPILE = "-ggdb -Og";
}) {}
#include "bootconfig.h"
#include "ui_bootconfig.h"

BootConfig::BootConfig(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::BootConfig)
{
    ui->setupUi(this);
}

BootConfig::~BootConfig()
{
    delete ui;
}
[New Thread 0x7fffe5135700 (LWP 13423)]
QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.
[Thread 0x7fffe5135700 (LWP 13423) exited]

Thread 1 "gui" received signal SIGSEGV, Segmentation fault.
0x00007ffff7303ba3 in QGuiApplication::font() () from /nix/store/zhwx1nln278f3l1cvlgcnjpgdsd922wz-qtbase-5.6.1/lib/libQt5Gui.so.5
(gdb) bt
#0  0x00007ffff7303ba3 in QGuiApplication::font() () from /nix/store/zhwx1nln278f3l1cvlgcnjpgdsd922wz-qtbase-5.6.1/lib/libQt5Gui.so.5
#1  0x00007ffff73aea41 in QFont::QFont() () from /nix/store/zhwx1nln278f3l1cvlgcnjpgdsd922wz-qtbase-5.6.1/lib/libQt5Gui.so.5
#2  0x00007ffff7901b70 in QWidgetPrivate::QWidgetPrivate(int) () from /nix/store/zhwx1nln278f3l1cvlgcnjpgdsd922wz-qtbase-5.6.1/lib/libQt5Widgets.so.5
#3  0x00007ffff791bc9d in QWidget::QWidget(QWidget*, QFlags<Qt::WindowType>) () from /nix/store/zhwx1nln278f3l1cvlgcnjpgdsd922wz-qtbase-5.6.1/lib/libQt5Widgets.so.5
#4  0x0000000000402f46 in BootConfig::BootConfig (this=0x665140, parent=<optimized out>) at bootconfig.cpp:6
#5  0x0000000000402ebc in main (argc=1, argv=<optimized out>) at main.cpp:6