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

How to build qtsass executable on linux platform #75

Open
wnpllrzodiac opened this issue Aug 15, 2023 · 6 comments
Open

How to build qtsass executable on linux platform #75

wnpllrzodiac opened this issue Aug 15, 2023 · 6 comments

Comments

@wnpllrzodiac
Copy link

Could you give some manual?

@wnpllrzodiac
Copy link
Author

I got a weird runtime problem when using qtsass downloaded form website. So I think I need to build it from source.
P.S. problem solved after I set a customized TMP env, e.g. export TMP=/data/tmp

qtsass/0.1.0/lin64a/qtsass: error while loading shared libraries: libz.so.1: failed to map segment from shared object

@dalthviz
Copy link
Member

dalthviz commented Sep 11, 2023

Hi @wnpllrzodiac sorry for the late response and thank you for the feedback! How did you install QtSASS? Did you use pip or conda? Seems like setting the TMP env var helped, right?

Regarding building, there is noting to build from QtSASS. The package has a CLI that is register as a Python entrypoint and it just depends on the libsass-python package.

Any other info in order to understand what could be happening is appreciated. Let us know!

@wnpllrzodiac
Copy link
Author

Maybe from pip. I copied binary file from install folder. Not recall it clearly.
I found a qtsass linux elf executable file on my machine.
Is it a non-official release, just wrap python files into a executable file?
I heard about this kind of method before.

@dalthviz
Copy link
Member

I see, I would say then that you tried to install QtSASS in a way we don't support, sorry :/ If you want to use QtSASS I would suggest you to create a Python virtual environment and install there QtSASS (you can achieve that either using anaconda/conda or virtualenv/pip).

Let us know if the info above helps!

@wnpllrzodiac
Copy link
Author

Alright,so the way I expected to use maybe a un-official supported way?
Call a binary file as a tool and convert qss file should be more easier. running in a python env maybe painful and complex.

@dalthviz
Copy link
Member

dalthviz commented Nov 3, 2023

Thinking about the way you want to use QtSASS without worring about a Python env, maybe using pipx could be useful in your case: https://packaging.python.org/en/latest/guides/installing-stand-alone-command-line-tools/

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

No branches or pull requests

2 participants