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 have developed a software and would like to send it to other people.
Right now I have a folder with the compiled binary (.exe) and all necessary dlls and everything else you need.
So far I can simply copy this folder to another pc and it works.
It would be great to create a real setup.exe for windows and anything equivalent for Linux.
How can I start to create such installers? Can anybody provide a link with useful information?
This is well documented in multiple places.
To make a Windows MSI installer, take a look at WiX.
To create packages for RPM based Linux distributions, read up on RPM. For distros using Debian (deb) packages, read debian packages. For distributions using other package formats look at their websites and find their documentation on their package formats.
Also take a look at flatpak.
Related
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 2 years ago.
Improve this question
I have been trying to install Codeblocks and C++ libraries in the Red Hat Linux. It's been 1 week that I am trying to find a way to install them, specifically OpenCV. Is there any way to install them without internet? If not, which are the best in-built libraries which can be used in C++?
Without having software packages/repositories installed (or built on your own from another computer that has internet access) or on a network fileshare/external harddrive no. The yum repos download their files through mirror URLs, where these package repositories are stored and require internet access to communicate to these mirrors.
If you don't want to yum install, you can build from source by copying over the source code from another machine onto your system without internet access and building from source, but it may not work depending on the package dependencies of OpenCV and if they are available on your system.
The only built in C++ libraries without having any software package installed or building from source is the standard library.
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
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 6 years ago.
Improve this question
My specific case:
I am trying to implement a maze solver in c++ that takes in a grayscale picture and outputs the same picture with the solved path. I have looked online and found that I should use OpenCV which requires other packages as well. I want the user of my program to be able to run the program, which checks if these packages are already installed. If the required packages are not installed, I want to be able to install these programs on the machine (Linux). The rest of my program will use these packages to solve the maze.
General Case:
How can I create a program that when executed, installs required packages for the program to be used later? Is this possible? What is this called (if it exists) so I can read about it? And finally, would this be incredibly difficult for a team of first year c++ students?
Thank you for your responses, I have tried to look for an answer myself but cannot find one.
On Linux, this problem is typically solved by what is known as a package manager.
Different distributions employ different package managers. For example, Debian based distributions utilize Debian packages (.deb files). RedHat and it's child project Fedora utilize RPM packages (.rpm files). Depending on your distribution you would then create the appropriate package for your project and list it's dependencies in the package's control file.
If you are using a Debian based distribution, I would highly recommend Aptly. It will allow you to create local repos, mirror existing repos, and host your own repo on Amazon's S3.
I should also mention Docker for this. Docker can also be thought of as a package manager of sorts. It basically allows your application to carry its operating system configuration with it, which will allow you to deploy the app to almost anywhere docker will run. There could be some limitations if you are tied to camera hardware, but it's definitely worth consideration. Also, with Docker Hub you can freely deploy it to all of your classmates/students machines as well.
Hope that helps!
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 7 years ago.
Improve this question
I currently have MPICH (release 3.1.4) installed on my machine (running Mac OS X 10.10.5). I would like to remove it and install OpenMPI instead but could find no instructions online on how to uninstall MPICH.
Is it sufficient to simply delete MPICH's directory? If so, where can I find it? I thought I had installed it in usr/local and did find some MPI-related files there (in a folder named include) but nothing that seemed like it was the whole thing.
Also, I am planning to use OpenMPI together with Intel's c++ compiler. Is there some preferred order of installation of these two?
Juste type make uninstall from the directory you compiled. That should do it.
Regarding openMPI and the Intel compiler, better installing the compiler before ans using it to build the package, but that's not compulsory, using GCC will do as well.
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 2 years ago.
Improve this question
I recently bought a macbook and was wondering if I can write C and C++ programs on mac without having to install anything more. Say for Java, mac came with a preinstalled version.
Is it the same for C/C++. if yes, can you pls let me know hoe to compile and run a sample program or if not, can you please let me know what stuff to download?
You need to install the Mac Developer Tools either from your original Mac OS X disk or by downloading the latest version. This package includes the GCC compiler collection (supporting the C and C++ languages, amongst others).
You need to install the developer tools, which are on your MacBook DVD. Check for custom installations.
You should install Apple Developers Tools.
Basically you should get a (free) developer account and then download Xcode.
Unfortunately, starting with Xcode 4, Apple is charging 5$ for the download. So you could either decide to pay this, or download the previous version (Xcode 3)
The main page for Xcode is this. There you will find links to Xcode 4 and Xcode 3 (search within the page)