How to run gui based programs on macbook by terminal [closed] - c++

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I am on mac os and have terminal in it. I run simple c++ programs on terminal by command g++ but i don't know how to run gpu based c++ programs like code containing graphics.h file
And pls suggest how to download all c++ libs and c++ in mac without xcode (because it is of 5.5gb)
Is it possible...

macOS has au unusual way of producing executables called app bundles. (Historically this is to reproduce on the HSFS file system what was part of the old OS 9 filesystem which associated attribute data to files).
Here is a link explaining how to launch an executable from a terminal. In short, use
open -a ApplicationName

Related

How to generate a C++ installer with all files embeded in it? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I generated an executable with C++ that copies files from a folder to another one,
Is there a way to include the folder that I copy inside my program instead of having it on the disk ?
I'm not using Visual C++, only DevCPP on windows and I'm targetting only windows machines.
Thanks
This is a basic option of most setup frameworks.
Free Option: NSIS
Use the example under Simply install a file to see how you can embed files into the installer, specify where to unpack them, etc.
Paid Option: InstallShield
See the Basic MSI Project Tutorial for more info

How to build SOIL on Mac [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm relatively inexperienced with the workings of downloading, making, and linking libraries, and I was hoping to get SOIL (Simple OpenGL Image Library) so that I can use it in Xcode (newest version) on Mac OS X El Capitan with OpenGL 3.3 and GLFW in C++. (link: http://www.lonesock.net/soil.html, download: http://www.lonesock.net/files/soil.zip) I downloaded the zip, but I wasn't sure how to go from there.
I tried cd'ing to the entire folder in terminal and typing "make", along with "make -f makefile", and even adding a line I found in a previous response to the makefile, but nonetheless I wasn't sure how to do it. Would anyone be able to describe how to build it in detail?

Importing .dpr project with C++ Builder 6 [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I am a beginner in Delphi.
I want to know if I can import a (dpr) file extension in c++ builder 6?
What all changes I need to do for that?
I tried to do that and got the error
there was a problem sending the command to the program
If i want to run my application to all version of windows how can i do that(windows XP,Windows 7 and Windows 10).
Thanks
According to Remy's answer here what you are trying to do is simply not possible.
When I try to open a Delphi Project with the file extension *.dproj or
*.dpr I get the message, " The Project can not be loaded because the
required personality Delphi.Personality is not available ".
The C++Builder personality cannot load Delphi projects. You can,
however, add Delphi source files to a C++ project.
Is there a way to open and look at a Delphi project in C++Builder without
installing the full Delphi IDE?
Not an entire project, no.

QT creator generate EXE file for windows or .dmg for mac osx [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have a question how to generate executables for Windows or .dmg for Mac OSX in Qt Creator. Please use easy way. I´m a beginner with QT creator.
How to build mac osx app without Mac and how to build linux app without linux.
I have a Windows 7 Professional.
well in case of windows when you build and run a project, an executable in already generated in you project build directly.
and if you want to deploy it you have to use the command
windeployqt "path to qt project"
Note: the command is present in C:\Qt\5.3\mingw482_32\bin
more info available here

How to compile a Linux program with Mingw? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a Linux program that I want to run on Windows. I want to compile it for Windows using Mingw?
I am new to this Mingw thingy. So, I have no idea if it will work.
I installed Mingw and I have a make file. What's next? I have a bunch of exe files in Mingw. I don't even know how to start the compiler.
So, my question is: What are the steps necessary to compile the program I have?
UPDATE:
I figured out in the end what are the steps necessary to compile a Linux program for Win using Mingw.
I posted the solution below (solution is 7 steps), maybe it will be useful to others also.
To compile a Linux program on Win:
Install MingW
Edit the c:\MinGW\msys\1.0\etc\fstab file (it should contain this line: c:/mingw /mingw )
Start Wingw shell by running c:\MinGW\msys\1.0\msys.bat
In shell go to the folder where your Make file is (use cd command for this).
Type 'make'. This will compile your program.
Put the generated EXE and the required DLLs (libgcc_s_dw2-1.dll and libstdc++-6.dll) in the same folder
Run the exe file and enjoy it....