8000 couldn't make it work on linux · Issue #18 · VertexUI/VertexGUI · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

couldn't make it work on linux #18

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

Open
carlhung opened this issue Jan 28, 2022 · 10 comments
Open

couldn't make it work on linux #18

carlhung opened this issue Jan 28, 2022 · 10 comments

Comments

@carlhung
Copy link

when running swift test
i got this error:

error: link command failed with exit code 1 (use -v to see invocation)
/usr/bin/ld.gold: error: cannot find -lskia_skiakit
/usr/bin/ld.gold: error: cannot find -lfreetype
/usr/bin/ld.gold: error: cannot find -lfontconfig
@UnGast
Copy link
Collaborator
UnGast commented Jan 30, 2022

Thanks for reporting this. Which distribution are you using?

To fix the first linker error you have to install this lib (has instructions): https://github.com/ungast/SkiaKit
For the other two you will need to find binaries for your distribution.

@carlhung
Copy link
Author

I did install the lib. And saw it in the path of ‘/usr/local/lib’. I am using WSL2 with Ubuntu 20.04.
new WSL2 supports GUI in windows. That’s why I want to use this repo to try.

@UnGast
8000
Copy link
Collaborator
UnGast commented Jan 30, 2022

That's interesting. Maybe try moving the library to /usr/lib instead.
sudo mv /usr/local/lib/libskia_skiakit.a /usr/lib/libskia_skiakit.a

@carlhung
Copy link
Author
carlhung commented Feb 3, 2022

after moving, i got these error messages:
/usr/bin/ld.gold: error: cannot find -lfreetype
/usr/bin/ld.gold: error: cannot find -lfontconfig

@UnGast
Copy link
Collaborator
UnGast commented Feb 3, 2022

Nice, we are progressing.

Now please try installing the two missing libraries like this: sudo apt-get install libfreetype6 libfontconfig1

@carlhung
Copy link
Author
carlhung commented Feb 3, 2022

no, already installed.

@carlhung
Copy link
Author
carlhung commented Feb 3, 2022

i found the dependencies to install for skia.
but new error:

$ swift test
error: link command failed with exit code 1 (use -v to see invocation)
/home/carlhung/swiftProjects/VertexGUI/.build/x86_64-unknown-linux-gnu/debug/SkiaKit.build/SkiaCApiVersion.swift.o:SkiaCApiVersion.swift.o:function $s7SkiaKit0A11CApiVersionC09getBinaryD0s5Int32VyFZ: error: undefined reference to 'sk_get_binary_c_api_version'
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
error: link command failed with exit code 1 (use -v to see invocation)
/home/carlhung/swiftProjects/VertexGUI/.build/x86_64-unknown-linux-gnu/debug/SkiaKit.build/SkiaCApiVersion.swift.o:SkiaCApiVersion.swift.o:function $s7SkiaKit0A11CApiVersionC09getBinaryD0s5Int32VyFZ: error: undefined reference to 'sk_get_binary_c_api_version'
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
error: link command failed with exit code 1 (use -v to see invocation)
/home/carlhung/swiftProjects/VertexGUI/.build/x86_64-unknown-linux-gnu/debug/SkiaKit.build/SkiaCApiVersion.swift.o:SkiaCApiVersion.swift.o:function $s7SkiaKit0A11CApiVersionC09getBinaryD0s5Int32VyFZ: error: undefined reference to 'sk_get_binary_c_api_version'
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
[0/3] Linking TaskOrganizerDemo
error: fatalError

@UnGast
Copy link
Collaborator
UnGast commented Feb 5, 2022

Did you build the skia binary yourself or did you download one?

@carlhung
Copy link
Author
carlhung commented Feb 6, 2022

downloaded

@UnGast
Copy link
Collaborator
UnGast commented Feb 10, 2022

Strange. I currently have to prepare for exams, so I have no time to look into it. Looks like I messed something up with the binaries. I will look into as soon as I have more free time.

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

2 participants
0