I am starting with FlatPak. I'm trying to package a binary application (I don't have to build it -is already compiled-). How should I proceed?
I manage to download it and check the sha256. I don't know how to tell under sources not to build this .tgz just to uncompress it.
Regards,
José M.
Related
I want to use conan to download and build some libraries in a specific folder.
The idea is that everything included in the export_sources field must be downloaded in a given folder from which I run the conan install command, and not in ~/.conan/data.
Once that is done, I want to move the downloaded files into separate directories (namely include, src, ...) starting from the given folder and then build the library.
Is there any way to do this?
Thanks in advance!
Boost using this build system I'm not otherwise familiar with, based on "Jam" files. Now, I've forked and cloned a specific Boost library (program_options), and I want to build it and perhaps also run the tests. I notice a build/Jamfile.v2 - what should I do with it?
I tried apt-get install jam on my distribution, but that did not get me very far:
$ jam -fbuild/Jamfile.v2
warning: unknown rule project
warning: unknown rule boost-lib
don't know how to make all
...found 2 target(s)...
...can't find 1 target(s)...
Also, do I have to get the absolute latest development version of all of Boost to build the cloned library against, or can I use a local boost release I already have?
Notes:
I'm on a recent GNU/Linux distribution (Mint 18.3 but this shouldn't matter).
What I've done, based on #SergeyA and others' advice, is:
Clone all of Boost, recursively (see this page (this will create a boost/ folder )
cd boost
in .git/modules/my_boost_lib/config, change the origin URL to your fork
in .gitmodules, under [submodule "my_boost_lib"], change the URL to your fork
execute git submodule update --init libs/my_boost_lib/ (perhaps after deleting that library; not sure if that's actually necessary)
cd libs/my_boost_lib/build
../../../b2
The latter works because b2 looks for a Jamfile.v2 in its current working directory, and that file exists and is intended to build just the library. The build results will be located outside of libs/my_boost_lib though.
Note: To build run the library tests, build the same way but from libs/my_boost_lib/test.
Essentially the build steps is
Run bootstrap to build the build tool b2
Build boost with b2 install or similar. You may want to provide options to it.
Read more in the boost getting started document:
http://www.boost.org/doc/libs/1_66_0/more/getting_started/index.html
(hint, look at lower right to go to next page..)
If you are on windows / VS2017, the use of vcpkg to get boost is very easy.
I am trying to write code in C++ to get content from a url. I have found this url: https://curl.haxx.se/docs/install.html
I tried to:
export MACOSX_DEPLOYMENT_TARGET="10.6"
./configure --with-darwinssl
make
make install
But not sure what it is the new file created? What is the output of running these commands?
After unzipping the files from the zip downloaded I see a file curl.h, I guess I can use that one on my C++ program?
Any help will be appreciated.
UPDATE 1
I have found: "make install" just copies compiled files into appropriate locations.
Which are these locations?
UPDATE 2
Making all in lib
/Applications/Xcode.app/Contents/Developer/usr/bin/make
I understand now that "makefile" is the one setting where to copy files, etc.
You should use Homebrew. It is a package manager for OS X, and has tons of packages you can install from, including curl.
I'm still pretty inexperienced with C++ but I need to install Boost 1.6.1.
I just want to do it with the minimum hassle possible.
I'm using visual studio 2015 for development, which is installed on my C drive. The problem is I don't have much space left on my C drive .
Is it possible to install boost on my D drive?
Can someone explain to me step by step how to so this or point me to a good step by step tutorial that explains how to do this?
Thanks
Download my Boost Build Environment.
Extract it to the root of your D drive. It will create a boost_build_environment directory.
Open the MSBuild Command Prompt for VS2015.
CD into D:\boost_build_environment.
Build boost as follows.
msbuild /nologo /target:BuildAll BuildBoost.proj
Run the CleanAll target as follows.
msbuild /nologo /target:CleanAll BuildBoost.proj
Have fun using Boost.
The magic is in the Microsoft.Cpp.Win32.user.props and Microsoft.Cpp.x64.user.props files, which are copied into $(LOCALAPPDATA)\Microsoft\MSBuild\v4.0 by the CopyProps target. These props files are automatically imported by most, if not all project files. They set the AdditionalIncludeDirectories and AdditionalLibraryDirectories lists so that ICU and Boost will be found.
I have searched here on StackOverflow and other sites to figure out how to install OpenCV 3.0 the Contrib Modules. I have downloaded the extra modules and extracted the zip file to the /opt/local/include/opencv2/opencv_contrib/ folder. I've navigated to the /opt/local/include/opencv2 folder and typed the following command in the terminal:
cmake -DOPENCV_EXTRA_MODULES_PATH=/opt/local/include/opencv2/opencv_contrib/modules/ /opt/local/include/opencv2
I get:
-bash: $: command not found
If I just type in cmake -D, I get:
CMake Error: -D must be followed with VAR=VALUE.
CMake Error: Problem processing arguments. Aborting.
So I know it recognizes the cmake command with the -D tag.
Any ideas?
Nobody said that installing OpenCV and their modules was easy.
Just like you, I already had Opencv 3.0.0 installed and running and wanted to add the contrib modules.
Steps:
1st- Delete and download again the OpenCV3.0.0 folder (is not necessary, but after twitching around, I prefer to download a new one) download the openccv_contrib and place them in the same folder.
2nd- Go to the OpenCV3.0.0 and create the build folder.
3rd- Open Cmake gui and follow the steps form https://github.com/itseez/opencv_contrib.
3.1- Fill “Where is the source code” with the rotute of where is openCV3.0.0. (my case /Users/Rafearl/Program/ComputerVision/opencv-3.0.0)
3.2- Fill “Where to build binaries” with the build route(/Users/Rafearl/Program/ComputerVision/opencv-3.0.0/build)
3.3- Press configure
3.4- In the search bar search for “OPENCV_EXTRA_MODULES_PATH” and fill with the Opencv_contrib modules(/Users/Rafearl/Program/ComputerVision/opencv_contrib-master/modules)
3.5- Click configure again and then click generate. By default current generator: Unix makefiles
4th- In terminal go to your build folder
5th- make -j4 (4 is the number of cores of the processor)
6th- sudo make install
Now you can check the lib in the build folder that the contrib libraries are added
If you don´t want to download the OpenCV3.0.0 again just follow the same steps without downloading or deleting anything.
If you already have Opencv in Xcode, everything should work but just as a piece of advise; many of the OpenCV2.4 examples does´t work in the 3.0 version.