error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
if you're sure a package manager is not already
running, you can remove /var/lib/pacman/db.lck
I still have the problem but I don't think it's Arch-specific anymore. It errors on the full example code.
/usr/bin/ld: /tmp/ccdsfpEq.o: warning: relocation against `glad_glViewport' in read-only section `.text' /usr/bin/ld: /tmp/ccdsfpEq.o: in function `main': main.cpp:(.text+0xc7): undefined reference to `gladLoadGLLoader' /usr/bin/ld: /tmp/ccdsfpEq.o: in function `framebuffer_size_callback(GLFWwindow*, int, int)': main.cpp:(.text+0x193): undefined reference to `glad_glViewport' /usr/bin/ld: warning: creating DT_TEXTREL in a PIE collect2: error: ld returned 1 exit status
I can't link it. When I do g++ main.cpp -o gl -lglfw3 it errors
```/usr/bin/ld: cannot find -lglfw3
collect2: error: ld returned 1 exit status``` I checked if pacman installed glfw-x11 and it did. and when I tried doing which glfw-x11 it said "no glfw-x11" what is happening???
because it'll break and then I'll have to reinstall and lose all my packages
lol nice
It worked. Thanks
I'll check this out when I have time
How so? The language I'm most familiar at is Python though
works!
error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
if you're sure a package manager is not already
running, you can remove /var/lib/pacman/db.lck
It gave me this error
I don't know why this happened. Sorry.
I don't remember posting this 8 times. Probably a bug.
I'll try again tomorrow (I don't have access to Arch right now) following your instructions but can you send the template in advance?
What's supposed to be in glad.c file inside src folder? Headers did not generate glad.c.
Also, how can I build using cmake? What's the command I should type to build?
OK! I'll look into it.
I still have the problem but I don't think it's Arch-specific anymore. It errors on the full example code.
/usr/bin/ld: /tmp/ccdsfpEq.o: warning: relocation against `glad_glViewport' in read-only section `.text' /usr/bin/ld: /tmp/ccdsfpEq.o: in function `main': main.cpp:(.text+0xc7): undefined reference to `gladLoadGLLoader' /usr/bin/ld: /tmp/ccdsfpEq.o: in function `framebuffer_size_callback(GLFWwindow*, int, int)': main.cpp:(.text+0x193): undefined reference to `glad_glViewport' /usr/bin/ld: warning: creating DT_TEXTREL in a PIE collect2: error: ld returned 1 exit status
GLAD
Works!
Thank you, I already generated them. and included them as #include "glad/glad.h"
I can't link it. When I do
g++ main.cpp -o gl -lglfw3it errors```/usr/bin/ld: cannot find -lglfw3
collect2: error: ld returned 1 exit status``` I checked if pacman installed glfw-x11 and it did. and when I tried doing
which glfw-x11it said "no glfw-x11" what is happening???I don't use GLFW and GLAD together? So I installed it on Arch correctly? only problem is linking?
Worked, just as tristen said. Thank you.
I don't want to directly install https://archlinux.org/packages/community/x86_64/python-tensorflow-cuda/ because I want to use pipenv
I wish to build from thesehttps://archlinux.org/packages/community/x86_64/cudnn/
https://archlinux.org/packages/community/x86_64/cuda/
but is wondering if tensorflow automatically detects my GPU after makepkg these repos.
Is there any other way??? I don't want Cuda because it messes up my pip.
I'll try!
Wait, what's the difference between pipenv and pyenv? How do I get it? AUR packages? I have no experience with virtual venvs
What did you do?
Alright then