I build project for Raspberry Pi
with help of VisualGDB
, Visual c++ and GCC 8.3.0 GDB 8.2.1 Revision 3 Raspbian Buster
crosscompiler that comes with it. It runs fine, but how to deal in cases when I need link to libraries? Should I build all required libs with my current crosscompiler? For example how to deal with libxml2
library?
Asked
Active
Viewed 34 times
0

vico
- 17,051
- 45
- 159
- 315
-
1If on windows host, I would run a raspberry pi as a virtual machine and do your work there. – KamilCuk Apr 13 '21 at 14:49
1 Answers
0
Should I build all required libs with my current crosscompiler?
You either build them, or you find some RaspberryPi Raspbian Buster package for them.
If your RaspberryPi is connected to the internet, consider using some apt
command and find some *.deb
package for Raspbian.
you need Linux skills
PS. My opinion is that installing Debian or Ubuntu on your PC (e.g. on a separate hard disk, in dual boot: Linux for programming, Windows for games) is easier: you will learn first how to deal with a Linux OS thru the command line. Once you got these skills, deaing with a Raspbian is easier. Read of course Advanced Linux Programming and syscalls(2), then the documentation of GCC and of GNU binutils and at last see Linux From Scratch.

Basile Starynkevitch
- 223,805
- 18
- 296
- 547
-
I can install libs with apt on my Pi. But I will need these libs locate on windows machine that process build since I use Windows crosscompiler. – vico Apr 13 '21 at 14:38
-
Did you consider installing Debian on your PC, in dual boot with Windows? If not, why? Of course, backup your important data (to a remote site, or some USB disk) before trying. As I am explaining, you need to acquire Linux skills. This takes weeks at least, and could take [ten years](http://www.norvig.com/21-days.html) – Basile Starynkevitch Apr 13 '21 at 14:39
-
I do build on Windows and run on Pi. I like Visual Studio editor and VisualGDB helps me with that. – vico Apr 13 '21 at 14:41
-
Then you are on your own, and I am not able to help you. I am coding since 1977 but never used Windows. My favorite editor is [GNU emacs](https://www.gnu.org/software/emacs/) and I love [free software](https://www.gnu.org/philosophy/free-sw.en.html), including [RefPerSys](http://refpersys.org/) – Basile Starynkevitch Apr 13 '21 at 14:42