Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We need a linux version of this! #19

Closed
xrv0 opened this issue Dec 21, 2019 · 12 comments
Closed

We need a linux version of this! #19

xrv0 opened this issue Dec 21, 2019 · 12 comments

Comments

@xrv0
Copy link

xrv0 commented Dec 21, 2019

Yolo was originally designed for linux so a linux binary would be appreciated

@developer0hye
Copy link
Owner

I don’t know making a linux binary version yet, I have the plan to do that!

@DenpaBorisu
Copy link

it runs on lutris 4.20

@sambo55
Copy link

sambo55 commented May 15, 2020

Runs on ubuntu if you git clone the repo and build with qt.

@rabdulatipoff
Copy link
Contributor

rabdulatipoff commented Jun 19, 2020

install qmake and qtbase5-dev on debian/ubuntu, run make -j## in the root directory, then chmox +x YoloLabel and execute YoloLabel; there you are. Here's my own binary (amd64), compiled on Ubuntu 20.04

@y9luiz
Copy link

y9luiz commented Jun 30, 2020

Just compile it using qt creator, maybe the author could implement a cmakelists to compile it

@6630507
Copy link

6630507 commented Apr 27, 2022

Can confirm the Linux build process (Ubuntu 20.04) was pretty quick and painless.

Needed qtbase5-dev, got qmake from qt5-qmake, and grabbed qt-sdk. Simply ran qmake and then make in the root directory. Need to launch the compiled binary from the terminal (i.e., $ ./YoloLabel).

@ingjae
Copy link

ingjae commented Jan 12, 2023

I use those commands for ubuntu 20.04

sudo apt install qt5-default 

git clone https://github.com/developer0hye/Yolo_Label
cd Yolo_Label

git checkout 160a8cc3e82deebe6f5a02d49ada667d267718cc  # current master branch has error (can't make)

qmake
make
./Yolo_label

@developer0hye
Copy link
Owner

@ingjae Thanks!

Can you upload an error message?

@ingjae
Copy link

ingjae commented Jan 12, 2023

at master branch

make

this is error message

/usr/lib/qt5/bin/uic mainwindow.ui -o ui_mainwindow.h
g++ -c -pipe -O2 -std=gnu++1z -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o main.o main.cpp
g++ -c -pipe -O2 -std=gnu++1z -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o mainwindow.o mainwindow.cpp
mainwindow.cpp: In member function ‘void MainWindow::on_tableWidget_label_cellClicked(int, int)’:
mainwindow.cpp:431:64: warning: unused parameter ‘column’ [-Wunused-parameter]
  431 | void MainWindow::on_tableWidget_label_cellClicked(int row, int column)
      |                                                            ~~~~^~~~~~
g++ -c -pipe -O2 -std=gnu++1z -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o label_img.o label_img.cpp
label_img.cpp: In member function ‘virtual void label_img::mouseReleaseEvent(QMouseEvent*)’:
label_img.cpp:74:48: warning: unused parameter ‘ev’ [-Wunused-parameter]
   74 | void label_img::mouseReleaseEvent(QMouseEvent *ev)
      |                                   ~~~~~~~~~~~~~^~
label_img.cpp: In member function ‘void label_img::drawObjectLabels(QPainter&, int, int, int, int)’:
label_img.cpp:313:31: error: ‘QColorConstants’ has not been declared
  313 |             blackPen.setColor(QColorConstants::Black);
      |                               ^~~~~~~~~~~~~~~
label_img.cpp:315:31: error: ‘QColorConstants’ has not been declared
  315 |             blackPen.setColor(QColorConstants::White);
      |                               ^~~~~~~~~~~~~~~
make: *** [Makefile:442: label_img.o] Error 1

@developer0hye
Copy link
Owner

@ingjae Thanks!

@developer0hye
Copy link
Owner

@ingjae
I found a solution. All we need is qt6...

@developer0hye
Copy link
Owner

developer0hye commented Jan 13, 2023

@ingjae @xrv0 @DenpaBorisu @sambo55 @rabdulatipoff @y9luiz @6630507

I released Ubuntu 22.04 version of it.

https://github.com/developer0hye/Yolo_Label#for-ubuntu-2204

However, I just tried it on Ubuntu 22.04 of wsl2, so I didn't check it on native Ubuntu 22.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants