How to run Glade and Devhelp after installing with MSYS2 - c++

I was following the steps on the official GTK+ website. (https://www.gtk.org/download/windows.php)
However, after finishing those steps, how do I run them?

2020-02-28 EDIT:
MSYS2 no longer provides the Devhelp package.
See https://github.com/msys2/MINGW-packages/issues/5805
Original version:
I wrote that page. Found that so obvious that I didn't mention it but maybe that's just because I'm too used to the UNIX way of doing things. To run a tool in command line, you just type its name and press enter. So just type devhelp or glade.
You can also use autocompletion and just press the beginning of a word like gla, press the Tab key, and the available choice will appear.
You may append the & sign at the end of the command to run it in the background so you can still use your terminal.

Related

How do I open WebStorm from terminal?

I've looked around but I've only found answers for past versions. I have a new version of WebStorm and I want to open my projects from the command line, but wstorm . and webstorm . doesn't seem to work.
I've tried going to Tools > Create Command Line Launcher... and I get this:
I go to ToolBox's WebStorm Settings and I'm met with this:
Generate shell scripts is turned on, but the but the commands still do not work in my terminal.
Am I missing something? Am I supposed to add in a Shell scripts location? I'm not entirely sure I understand.
It's actually very easy. First you open up Webstorm, and press SHIFT twice. This will bring up a search box, where you type: Create Command Line Launcher. You will see a search result from Tools will be highlighted, click on it, and it will suggest the default path. Just click on Ok. Your command line launcher is now ready, so you can open terminal, cd to your project root folder, and type webstorm ./ to launch webstorm.
If the Create Command Line Launcher option is not working, try the following:
If you are on MacOS, try adding the path as instructed in their official page. And if you are on Linux, just uninstall the current version and reinstall as a snap package using sudo snap install webstorm --classic. This way, you can launch it from the terminal just by typing webstorm
After opening a ticket with Jetbrains support, the default path is /usr/local/bin. Adding this worked.
You can use open-ide tool. It allows you to define all of your editors and to open any folder with your editor straight from terminal

Youtube-DL.exe Closes After Launching Command Line

I've used YouTube-dl successfully on my mac for quite some time.
I downloaded YouTube-dl.exe (after downloading Microsoft Visual C++ I was told a newer version already exists on my computer - it also says Python is not required), but when I launch the executable, it briefly opens a command line window but then closes immediately and nothing else happens. I've tried Googling and even went to the IRC support chat (who turned out to be more rude than helpful) to no avail. Any ideas what to do?
youtube-dl is a command-line application. To use it directly, start a terminal windows by pressing Win+R, and entering cmd. To get to know the command-line interface, you probably want to consult a tutorial.
If you were looking for a graphical application, use one of the graphical frontends instead; for instance, youtube-dlg.

Cygwin installation note:Hand installation over to elevated child process

I am attempting to install Cygwin as a precursor to installing gcc 6.3.0 on a Windows 10 64-bit machine. I am following instructions I found here.
When I use the following line to install Cygwin packages (Step 2 at the above link):
C:\cygwin64>setup-x86_64.exe -q -P wget -P gcc-g++ -P make -P diffutils -P libmpfr-devel -P libgmp-devel -P libmpc-devel
I receive the following message in the Windows command window:
C:\cygwin64>note: Hand installation over to elevated child process.
_
The cursor is positioned under the C in C:\cygwin64 as shown above and is flashing. It has remained that way for approximately one hour.
Does this simply mean that the computer is taking a long time to install Cygwin packages. Or does it mean the Cygwin installation has failed and I need to try something else? Or is the computer waiting for me to type something into the Windows command window from the keyboard? If the third possibility is the case, what am I supposed to type?
The instructions at the link above seem to be quite thorough, but do not mention this message. Nor can I locate any suggestions by searching the internet. The instructions also suggest the installation may take as little as 15 minutes. So, after waiting an hour I am thinking there is something wrong.
Thank you for any advice.
PS.
I did find a message here.
that kind of seems to suggest the Cygwin installation was successful:
if the elevation was successful. In that case the stdout log now prints
note: Hand installation over to elevated child process.
But if that is the case why does the directory not reappear in the Windows command window like this: C:\cygwin64> instead of simply having the cursor flashing on a new line without the directory displayed?
After waiting approximately three hours I decided to assume the above message mentioning the elevated child process meant everything was fine even though the folder never reappeared in the Windows command window. I proceeded with the installation of gcc 6.3.0 using the cygwin64 terminal and closed the Windows command window. After completing all of the installation steps outlined within the instructions at the first link in my question post above I obtained the correct answer to the suggested test using the file test.cpp. Therefore, I appear to now have a function installation of the latest version of gcc on the Windows 10 64-bit machine. For that reason I decided to go ahead and post this as an answer instead of adding it to my question.

How to run C++ files in OpenBR?

Sorry if the documentation is clear on this, but I'm having a hard time running C++ files in OpenBR. I've tried running them through the terminal via g++ and via the QT interface to no avail.
Ultimately I don't see any way to create (nuanced) custom OpenBR scripts than by using the C++ API, but I can't even run the provided demos (age_estimation.cpp, face_recognition.cpp etc.).
I'm running this on Ubuntu for reference.
To run the example files you first have to download the dataset. The scripts/downloadDatasets.sh is in the openbr directory.
In the qt interface after opening the upmost CMakeList and building openbr you can select what to run on the bottom of the left toolbar, and then click the "play" arrow below to run the executable.

Build systems in Sublime Text

I'm just beginning to learn programming (on C++ and Python), and by beginning I mean total beginning ("hello world" beginning...). Not wanting to use multiple IDE's, I would like to be able to code and build–simple–programs with my text editor, Sublime Text 2. Could someone indicate me, with a step-by-step tutorial, how to implement C++ and Python compiling and executing capabilities in Sublime Text.
I've searched Sublime Text build systems on the site, but the answers are very specific and can't help a rookie like me (but they'll probably help me later).
Thanks
Sublime Text 2 already comes with scripts for building and running Python and C++ programs.
Simply press Cmd+B (or Ctrl+B on Windows & Linux) when a .py or .cpp file is open. The Python file will automatically execute and show the result in the built in console.
For C++, you need to press Cmd+Shift+B (Ctrl+Shift+B on Windows & Linux) to run it after building.
You need to have Python installed (get it here for Windows), and also a C++ compiler. The build system for C++ tries to call g++ by default (get it here for Windows. Remember to select the C++ compiler when installing!).
You will need to add the directories to path (c:\python32\ or similar for python, c:\mingw\bin or similar for the C++ compiler).
On windows, you may experience problems running the C++ programs (it tries to use bash). But Ctrl+B builds the program, and you can then use a command line to run it. Python works flawlessly on Windows.
windows(install minigw, python2.7 and added to the system path)
cpp:
build: ctrl+b
run: ctrl+shift+b
python:
build and run: ctrl+b
you may try to learn the the .sublime-build files in your Tools -> Build system -> New build system
So, you don't want to use an IDE but then you want IDE features from a text editor? :)
Most people who use a text editor for writing code use terminal to build and run the code.
So, for C++, the instructions are:
make (or gcc myprogram.c)
./myprogram
for a Python program, it's even simpler:
python ./myprogram.py
If you're not comfortable with terminal, then you probably need an IDE.
for c++ I actually made sublime to produce colorful error messages which are easier to read and you can also click on the errors which takes you to the file with the error.
You can look at how I modified the build to do what I wanted in here