zdenop / qt-box-editor

QT Box Editor of tesseract-ocr box files
https://zdenop.github.io/qt-box-editor/
Apache License 2.0
173 stars 65 forks source link

Build problem on Ubuntu 20.04 #82

Closed adam-funk closed 4 years ago

adam-funk commented 4 years ago

I'd be grateful for suggestions on how to fix this:

$ qmake -qt=5
***Unknown option -qt=5
$ qmake 
Project MESSAGE: Qt 5.12.5 was detected.
$ make
g++ -Wl,-O1 -Wl,-rpath,/home/adam/anaconda3/lib -o release/qt-box-editor-1.12rc1 build/release/main.o build/release/MainWindow.o build/release/ChildWidget.o build/release/DelegateEditors.o build/release/TessTools.o build/release/SettingsDialog.o build/release/GetRowIDDialog.o build/release/ShortCutsDialog.o build/release/FindDialog.o build/release/DrawRectangle.o build/release/qrc_application.o build/release/qrc_QBE-GNOME.o build/release/qrc_QBE-Faenza.o build/release/qrc_QBE-Oxygen.o build/release/qrc_QBE-Tango.o build/release/moc_MainWindow.o build/release/moc_ChildWidget.o build/release/moc_DelegateEditors.o build/release/moc_SettingsDialog.o build/release/moc_GetRowIDDialog.o build/release/moc_ShortCutsDialog.o build/release/moc_FindDialog.o build/release/moc_DrawRectangle.o   -L/opt/lib -ltesseract -llept /home/adam/anaconda3/lib/libQt5Svg.so /home/adam/anaconda3/lib/libQt5Widgets.so /home/adam/anaconda3/lib/libQt5Gui.so /home/adam/anaconda3/lib/libQt5Network.so /home/adam/anaconda3/lib/libQt5Core.so /home/adam/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/lib64/libGL.so -lpthread   
g++: error: /home/adam/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/lib64/libGL.so: No such file or directory
make: *** [Makefile:316: release/qt-box-editor-1.12rc1] Error 1

Thanks.

zdenop commented 4 years ago

g++: error: /home/adam/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/lib64/libGL.so: No such file or directory

Your system/installation is broken (Ubuntu is not installing official packages to /home dir). Use official packages and get rid of custom installation to /home if you are not able to handle it. This has nothing to do with qt-box-editor.

adam-funk commented 4 years ago

Fair point -- I changed PATH in the terminal to ignore the anaconda installation and make worked after that.

pr0fsmith commented 2 years ago

What did you change PATH to and how did you do it. I'm getting the same error. Error copying release/qt-box-editor-1.12rc1 to /bin/qt-box-editor-1.12rc1: Cannot create /bin/qt-box-editor-1.12rc1 for output

zdenop commented 2 years ago

Why anybody would install custom build software to /bin??? It is usually used only for system tools.