You are not logged in.
Pages: 1
On windows, all I had to do was type my code into the IDE, press F9 and my code would be executed. It seems as though in Arch Linux, I have to build a package directory, fill out a PKGBUILD template file, run MAKEPKG and install it in order to execute the code. If I want to edit it, I have to delete the package using PACMAN and start over. Isn't there a better way to write my C++ ?
Last edited by HappyClown (2015-08-20 10:57:11)
Offline
You create a PKGBUILD once and unless you change your code in a major way, that's it. You just tinker and recompile your code and install the new version of your package. pacman deals with uninstalling the old version itself.
Offline
all I had to do was type my code into the IDE
So are you using an IDE on Arch, too?
However, unless you are writing some seriously convoluted piece of software, you don't necessarily need to install a program on the system in order to execute it. Typing
g++ myprogram.cpp -o myprogram
./myprogramis usually enough for "hobbyists"
(in the long run, especially if you've got multiple source files, you may want to have a reading or two on Makefiles, though)
Otherwise, as karol said, after you write the PKGBUILD once, all you need to do is a `makepkg -fi`. If you manage to map that command to a key in your IDE/text editor, you've got a key that recompiles and reinstalls your application¹.
____
¹ That doesn't mean that I do not consider that a horrible design - I'm just merely pointing out the possibility.
Last edited by ayekat (2015-08-20 10:54:47)
Offline
This is exactly why I am so careful while cooking ever since I started using archlinux. It used to be that if I spilled something, I used a paper towel with a MS logo on it to wipe it up. Occasionally I had to use a mop with an MS logo to get a little more thorough cleaning. But as archlinux doesn't sell paper towels or mops, every time I spill just the smallest bit of food on the floor I have to tear down my whole house, burn it, plow the land flat, and rebuild a brand new house with a new kitchen. It really is inefficient, but I see no other solution with archlinux.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Great, thanks!
Offline
Pages: 1