- rtl-page-layout branch r1473 (Qt5 & Qt4 both raise same error)
$ qmake "CONFIG+=without_svg" qpdfview.pro
$ make clean
$ make
g++ -m64 -Wl,-O1 -o qpdfview objects/settings.o objects/pluginhandler.o objects/shortcuthandler.o objects/rendertask.o objects/pageitem.o objects/presentationview.o objects/searchtask.o objects/miscellaneous.o objects/documentlayout.o objects/documentview.o objects/printdialog.o objects/settingsdialog.o objects/fontsdialog.o objects/helpdialog.o objects/recentlyusedmenu.o objects/recentlyclosedmenu.o objects/bookmarkmenu.o objects/database.o objects/mainwindow.o objects/main.o objects/synctex_parser.o objects/synctex_parser_utils.o objects/signalhandler.o objects/qrc_icons.o objects/moc_settings.o objects/moc_model.o objects/moc_pluginhandler.o objects/moc_shortcuthandler.o objects/moc_rendertask.o objects/moc_pageitem.o objects/moc_presentationview.o objects/moc_searchtask.o objects/moc_miscellaneous.o objects/moc_documentview.o objects/moc_printdialog.o objects/moc_settingsdialog.o objects/moc_fontsdialog.o objects/moc_helpdialog.o objects/moc_recentlyusedmenu.o objects/moc_recentlyclosedmenu.o objects/moc_bookmarkmenu.o objects/moc_database.o objects/moc_mainwindow.o objects/moc_signalhandler.o -L/usr/X11R6/lib64 -lz -lQt5Svg -L/usr/lib/x86_64-linux-gnu -lQt5PrintSupport -lQt5Widgets -lQt5DBus -lQt5Sql -lQt5Gui -lQt5Core -lGL -lpthread
objects/documentview.o: In function `DocumentView::printUsingCUPS(QPrinter*, PrintOptions const&, int, int)':
documentview.cpp:(.text+0x79bd): undefined reference to `cupsGetDests'
documentview.cpp:(.text+0x7a18): undefined reference to `cupsGetDest'
documentview.cpp:(.text+0x7aa8): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0x7bbb): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0x7c9e): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0x7d18): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0x7d49): undefined reference to `cupsAddOption'
objects/documentview.o:documentview.cpp:(.text+0x7d76): more undefined references to `cupsAddOption' follow
objects/documentview.o: In function `DocumentView::printUsingCUPS(QPrinter*, PrintOptions const&, int, int)':
documentview.cpp:(.text+0x8275): undefined reference to `cupsFreeDests'
documentview.cpp:(.text+0x8284): undefined reference to `cupsFreeOptions'
documentview.cpp:(.text+0x831b): undefined reference to `cupsPrintFile'
documentview.cpp:(.text+0x83ae): undefined reference to `cupsLastErrorString'
documentview.cpp:(.text+0x84df): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0x84f7): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0x850f): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0x8527): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0x853f): undefined reference to `cupsAddOption'
objects/documentview.o:documentview.cpp:(.text+0x8557): more undefined references to `cupsAddOption' follow
objects/documentview.o: In function `DocumentView::printUsingCUPS(QPrinter*, PrintOptions const&, int, int)':
documentview.cpp:(.text+0x87a1): undefined reference to `cupsLastErrorString'
collect2: error: ld returned 1 exit status
make[1]: *** [qpdfview] Error 1
- Same thing with:
$ qmake "CONFIG+=without_cups" qpdfview.pro
- qpdfview branch r1466 (Qt5 raise Segmentation Fault on runtime)
$ sudo make uninstall
$ qmake "CONFIG+=without_svg" qpdfview.pro
$ make clean
$ make
$ sudo make install
$ gdb qpdfview
...
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6588548 in QIcon::~QIcon() () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
(gdb) backtrace
#0 0x00007ffff6588548 in QIcon::~QIcon() () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#1 0x0000000000422355 in Settings::PageItem::sync() ()
#2 0x0000000000429bb6 in Settings::sync() ()
#3 0x00000000004696bf in MainWindow::MainWindow(QWidget*) ()
#4 0x0000000000420ab7 in main ()
- With Qt4 it works well.
As you said to keep on track, I will build only against Qt4. But What is wrong with RTL branch?
- rtl-page-layout branch r1473 (Qt5 & Qt4 both raise same error)
$ qmake "CONFIG+ =without_ svg" qpdfview.pro
$ make clean
$ make
g++ -m64 -Wl,-O1 -o qpdfview objects/settings.o objects/ pluginhandler. o objects/ shortcuthandler .o objects/ rendertask. o objects/pageitem.o objects/ presentationvie w.o objects/ searchtask. o objects/ miscellaneous. o objects/ documentlayout. o objects/ documentview. o objects/ printdialog. o objects/ settingsdialog. o objects/ fontsdialog. o objects/ helpdialog. o objects/ recentlyusedmen u.o objects/ recentlyclosedm enu.o objects/ bookmarkmenu. o objects/database.o objects/ mainwindow. o objects/main.o objects/ synctex_ parser. o objects/ synctex_ parser_ utils.o objects/ signalhandler. o objects/qrc_icons.o objects/ moc_settings. o objects/moc_model.o objects/ moc_pluginhandl er.o objects/ moc_shortcuthan dler.o objects/ moc_rendertask. o objects/ moc_pageitem. o objects/ moc_presentatio nview.o objects/ moc_searchtask. o objects/ moc_miscellaneo us.o objects/ moc_documentvie w.o objects/ moc_printdialog .o objects/ moc_settingsdia log.o objects/ moc_fontsdialog .o objects/ moc_helpdialog. o objects/ moc_recentlyuse dmenu.o objects/ moc_recentlyclo sedmenu. o objects/ moc_bookmarkmen u.o objects/ moc_database. o objects/ moc_mainwindow. o objects/ moc_signalhandl er.o -L/usr/X11R6/lib64 -lz -lQt5Svg -L/usr/ lib/x86_ 64-linux- gnu -lQt5PrintSupport -lQt5Widgets -lQt5DBus -lQt5Sql -lQt5Gui -lQt5Core -lGL -lpthread documentview. o: In function `DocumentView: :printUsingCUPS (QPrinter* , PrintOptions const&, int, int)': cpp:(.text+ 0x79bd) : undefined reference to `cupsGetDests' cpp:(.text+ 0x7a18) : undefined reference to `cupsGetDest' cpp:(.text+ 0x7aa8) : undefined reference to `cupsAddOption' cpp:(.text+ 0x7bbb) : undefined reference to `cupsAddOption' cpp:(.text+ 0x7c9e) : undefined reference to `cupsAddOption' cpp:(.text+ 0x7d18) : undefined reference to `cupsAddOption' cpp:(.text+ 0x7d49) : undefined reference to `cupsAddOption' documentview. o:documentview. cpp:(.text+ 0x7d76) : more undefined references to `cupsAddOption' follow documentview. o: In function `DocumentView: :printUsingCUPS (QPrinter* , PrintOptions const&, int, int)': cpp:(.text+ 0x8275) : undefined reference to `cupsFreeDests' cpp:(.text+ 0x8284) : undefined reference to `cupsFreeOptions' cpp:(.text+ 0x831b) : undefined reference to `cupsPrintFile' cpp:(.text+ 0x83ae) : undefined reference to `cupsLastErrorS tring' cpp:(.text+ 0x84df) : undefined reference to `cupsAddOption' cpp:(.text+ 0x84f7) : undefined reference to `cupsAddOption' cpp:(.text+ 0x850f) : undefined reference to `cupsAddOption' cpp:(.text+ 0x8527) : undefined reference to `cupsAddOption' cpp:(.text+ 0x853f) : undefined reference to `cupsAddOption' documentview. o:documentview. cpp:(.text+ 0x8557) : more undefined references to `cupsAddOption' follow documentview. o: In function `DocumentView: :printUsingCUPS (QPrinter* , PrintOptions const&, int, int)': cpp:(.text+ 0x87a1) : undefined reference to `cupsLastErrorS tring'
objects/
documentview.
documentview.
documentview.
documentview.
documentview.
documentview.
documentview.
objects/
objects/
documentview.
documentview.
documentview.
documentview.
documentview.
documentview.
documentview.
documentview.
documentview.
objects/
objects/
documentview.
collect2: error: ld returned 1 exit status
make[1]: *** [qpdfview] Error 1
- Same thing with:
$ qmake "CONFIG+ =without_ cups" qpdfview.pro
- qpdfview branch r1466 (Qt5 raise Segmentation Fault on runtime)
$ sudo make uninstall =without_ svg" qpdfview.pro
$ qmake "CONFIG+
$ make clean
$ make
$ sudo make install
$ gdb qpdfview x86_64- linux-gnu/ libQt5Gui. so.5 x86_64- linux-gnu/ libQt5Gui. so.5 :PageItem: :sync() () :MainWindow( QWidget* ) ()
...
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6588548 in QIcon::~QIcon() () from /usr/lib/
(gdb) backtrace
#0 0x00007ffff6588548 in QIcon::~QIcon() () from /usr/lib/
#1 0x0000000000422355 in Settings:
#2 0x0000000000429bb6 in Settings::sync() ()
#3 0x00000000004696bf in MainWindow:
#4 0x0000000000420ab7 in main ()
- With Qt4 it works well.
As you said to keep on track, I will build only against Qt4. But What is wrong with RTL branch?