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

add compile instruction for linux to readme #11

Closed
freddii opened this issue Aug 19, 2020 · 4 comments
Closed

add compile instruction for linux to readme #11

freddii opened this issue Aug 19, 2020 · 4 comments

Comments

@freddii
Copy link

freddii commented Aug 19, 2020

in this issue: #7 (comment)
it is mentioned that it is possible to compile it for linux.
Sadly there is no exactly instruction how to compile it for linux.
Is it possible to get an instruction?

@TCB13
Copy link
Owner

TCB13 commented Aug 22, 2020

Mostly the same as macOS:

  1. Install Qt
  2. Install https://github.com/therecipe/qt (follow the Linux instructions)
  3. Download the code
  4. cd LoFloccus
  5. qtdeploy build desktop .

I'm currently considering rewriting this to drop therecipe/qt and make the UI fully C++ code and link it against a shared library containing the webdav server written in Go. This would reduce the size of the application and the complexity of the compiling / deploying...

@freddii
Copy link
Author

freddii commented Oct 6, 2020

As mentioned in:#4 (comment)

at the moment it is less hassle to simply run:
pip3 install WsgiDAV
pip3 install gevent
wsgidav -r /path/to/bookmarks/folder -p 8008 --auth anonymous --server gevent

flocus setup:
http://localhost:8008/
anonymous

@test-0-zero
Copy link

test-0-zero commented Jan 1, 2021

4. `cd LoFloccus`

5. `qtdeploy build desktop .`

when i compile i get this error message:

` /home/riccardo/go/bin/qtdeploy build desktop .
ERRO[0012] failed to run command _func=RunCmd cmd="go build -p 8 -v -ldflags=all="-s" "-w" -trimpath -o /home/riccardo/LoFloccus-master/deploy/linux/LoFloccus-master -tags=minimal" dir=/home/riccardo/LoFloccus-master env="XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 XDG_CURRENT_DESKTOP=MATE QT_AUTO_SCREEN_SCALE_FACTOR=0 PATH=/home/riccardo/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg MATE_DESKTOP_SESSION_ID=this-is-deprecated TERM=xterm-256color COMPIZ_CONFIG_PROFILE=mate CGO_ENABLED=1 QT_ACCESSIBILITY=1 XDG_SESSION_CLASS=user GTK_OVERLAY_SCROLLING=0 GDMSESSION=mate SHELL=/bin/bash GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module HOME=/home/riccardo UBUNTU_MENUPROXY=1 OLDPWD=/home/riccardo GOROOT=/usr/local/go XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/riccardo XDG_SEAT=seat0 XDG_SESSION_TYPE=x11 GDM_LANG=it_IT VTE_VERSION=6003 QT_SCALE_FACTOR=1 CGO_LDFLAGS=-Wl,-rpath,$ORIGIN/lib -Wl,--disable-new-dtags SESSION_MANAGER=local/SSDUB18:@/tmp/.ICE-unix/197793,unix/SSDUB18:/tmp/.ICE-unix/197793 GOOS=linux _=/home/riccardo/go/bin/qtdeploy LANG=it_IT.UTF-8 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 LESSCLOSE=/usr/bin/lesspipe %s %s USER=riccardo LANGUAGE=it_IT DESKTOP_SESSION=mate SHLVL=1 PWD=/home/riccardo/LoFloccus-master XDG_SESSION_DESKTOP=mate DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus WINDOWID=56623110 XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop GOPATH=/home/riccardo/go XDG_VTNR=7 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 XDG_SESSION_ID=c10 GO111MODULE=off SSH_AUTH_SOCK=/run/user/1000/keyring/ssh LOGNAME=riccardo XAUTHORITY=/home/riccardo/.Xauthority QT_DIR=/home/riccardo/go/src/github.com/therecipe/env_linux_amd64_513 COLORTERM=truecolor QT_QPA_PLATFORMTHEME=gtk2 LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:*.xspf=00;36: LESSOPEN=| /usr/bin/lesspipe %s DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1000 GOARCH=amd64 SSH_AGENT_PID=197878" error="exit status 2" name="build for linux on linux"
_/home/riccardo/LoFloccus-master
_/home/riccardo/LoFloccus-master
./LoFloccus.go:107:30: too many arguments in call to gui.NewQPixmap5
have (string, string, core.Qt__ImageConversionFlag)
want (gui.QPixmap_ITF)

`

@TCB13
Copy link
Owner

TCB13 commented Feb 20, 2022

This issue is not invalid since the project was rewritten from the scratch.

@TCB13 TCB13 closed this as completed Feb 20, 2022
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

3 participants