HumanSignal / labelImg

LabelImg is now part of the Label Studio community. The popular image annotation tool created by Tzutalin is no longer actively being developed, but you can check out Label Studio, the open source data labeling tool for images, text, hypertext, audio, video and time-series data.
https://youtu.be/p0nR2YsCY_U
MIT License
22.51k stars 6.27k forks source link

Building executable files for Windows fails #703

Open djalusic opened 3 years ago

djalusic commented 3 years ago

Hello,

I made some changes in the repo and would like to build binary files for Windows. I tried using the files from build-tool but the process fails (no exe files is created). I don't understand the error messages below:

I have no name!@02e44b3dea91:/home/ascalia-dorotea/Documents/ascalia/labelImg/build-tools$ sh envsetup.sh
Going to clone and download packages for building windows
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Installing into '/home/ascalia-dorotea/Documents/ascalia/labelImg/build-tools/venv_wine'
err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
err:ole:get_local_server_stream Failed: 80004002
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
err:ole:apartment_createwindowifneeded CreateWindow failed with error 14007
err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x800736b7
err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 800736b7
err:ole:get_local_server_stream Failed: 800736b7
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Could not load wine-gecko. HTML rendering will be disabled.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Could not load wine-gecko. HTML rendering will be disabled.
wine: configuration in '/home/ascalia-dorotea/Documents/ascalia/labelImg/build-tools/venv_wine' has been updated.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
I have no name!@02e44b3dea91:/home/ascalia-dorotea/Documents/ascalia/labelImg/build-tools$ sh build-windows-binary.sh 
wine: '/' is not owned by you, refusing to create a configuration directory there
wine: '/' is not owned by you, refusing to create a configuration directory there
wine: '/' is not owned by you, refusing to create a configuration directory there
wine: '/' is not owned by you, refusing to create a configuration directory there
warning: refname 'v2.1' is ambiguous.
fatal: unable to look up current user in the passwd file: no such user
/home/ascalia-dorotea/Documents/ascalia/labelImg/build-tools
rm: cannot remove ‘build’: No such file or directory
rm: cannot remove ‘dist’: No such file or directory
rm: cannot remove ‘labelImg.spec’: No such file or directory
wine: '/' is not owned by you, refusing to create a configuration directory there
cp: cannot stat ‘dist/labelImg.exe’: No such file or directory
  adding: windows_v1.8.4/ (stored 0%)
  adding: windows_v1.8.4/data/ (stored 0%)
  adding: windows_v1.8.4/data/predefined_classes.txt (deflated 36%)
I have no name!@02e44b3dea91:/home/ascalia-dorotea/Documents/ascalia/labelImg/build-tools$ ls windows_v1.8.4
data
DougTea commented 2 years ago

meet the same problem.Any help?