Suppose I wish to re-build some OpenWRT image with my parameters, like this one: https://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/openwrt-ar71xx-generic-tl-wa901nd-v4-squashfs-factory.bin
How to know, which parameters they used to build this file? Are there any information about this on OpenWRT sites?
on the same directory from the link containing the bin file you can download the config file which contains all packages and parameteres that were used to build that image and you can copy the config file to where you are building your image and you will get the same parameters.
Related
I created a simple program that shows an image (bmp) file but now I would like to load a jpg file and I found the "SDL_image" library that seems to do what I need, the dmg file I have mounted, contains a file SDL2_image.framework and a readme.txt reading the readme.txt I see:
To Install: Copy the SDL2_image.framework to /Library/Frameworks
You may alternatively install it in <your home
directory>/Library/Frameworks if your access privileges are not high
enough. (Be aware that the Xcode templates we provide in the SDL
Developer Extras package may require some adjustment for your system
if you do this.)
My questions are:
is g++ searching in "/Library/Frameworks" and "MYHOME/Library/Framework" inside all the frameworks files in order to find the libraries I include in my cpp files?
ones the g++ has built the executable file, do I still need those frameworks/libraries in order to execute it?
if instead of the framework file I use the sources of SDL2_Image library what is going to change to the process?
I have a big C++ application which we are compiling through Jenkins and generating zipped artifacts containing binaries, headers, config and other relevant files. The build is deployed in the form of services on the client. The problem is how can apply version on those binaries to keep a tract of which build is deployed on which client?
Like with earlier C# application we used make changes to AssemblyVersion file with the tags that we apply on GIT and then compile and we could see the executable have the version applied. Is there a way to do the same in C++?
We are using CMakeLists.txt file for generating builds. We have linux based environment (CentOS 7.5) the application is developed in C++.
Thanks in advances!
Since you're using CMake, what you can do is use the configure_file() function in your CMakeLists.txt to create a C++ source file which includes your Git version information as a string, then include the created file into your target.
You can get the Git version information into a CMake variable by calling the git executable from CMake, although there are prewritten modules out there to do the heavy lifting.
You can then use the command-line strings and grep tools to find the version string in the binary, or some other method to get it programmatically, depending on if you're making an executable or library.
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've added the yaml-cpp git repository as a submodule and add it to my CMake project using add_subdirectory.
Everything's fine but I have to set YAML_CPP_INCLUDE_DIR and YAML_CPP_LIBRARIES manually to use them for my own targets.
Because there is a file yaml-cpp-config.cmake (generated in the build folder) setting these variables I tried to just include it:
include("${CMAKE_BINARY_DIR}/yaml-cpp/yaml-cpp-config.cmake")
but then I get:
CMake Error at /bla/bla/build/yaml-cpp/yaml-cpp-config.cmake:11 (include):
The file
/bla/bla/aml-cpp/yaml-cpp-targets.cmake
was generated by the export() command. It may not be used as the argument
to the include() command. Use ALIAS targets instead to refer to targets by
alternative names.
I really don't understand this message. How would I provide my targets with the yaml-cpp include directories and libraries without having to set a hard coded variable?
I'm not searching for a way to correctly include() the file in case it doesn't have to be done. I'm just interested in how I should provide the desired information to my targets.
Unfortunately yaml-cpp seems to not make use of target_include_directories() which would set the include directories automatically where needed.
From description of export command:
Create a file <filename> that may be included by outside projects to import targets from the current project’s build tree.
Note to "outside" word: this is why you get the error message while trying to include the file from the same project, which issues export command.
Correct way to use yaml-cpp-config.cmake file would be building yaml-cpp outside of your project. For example, you may use ExternalProject_Add in conjunction with execute_process for build yaml-cpp as part of configuration stage of your project, see more about this approach here.
Then you may include given file to your project with find_package:
find_package(yaml-cpp PATHS <yaml-cpp-build-dir>)
Note, that yaml-cpp-config.cmake in binary directory describes build state of yaml-cpp project.
If you want to install libraries/executables from your project, you are better to install yaml-cpp, and include corresponded file from its installation directory:
find_package(yaml-cpp PATHS <yaml-cpp-install-dir>)
I'm trying to stream rtsp video via tcp using mplayer in windows minGW shell and it depends on live555 streaming media library.
The steps I did are:
download the live555 streaming media src
build each .mak files in src/live/ (I use nmake /f *.mak via command line, because my VS2010 can't recognize the .mak files.)
Building process was success and the result are .obj files. The problem is mplayer need .a files to make and the build didn't create it.
My question is:
do I really need the .a files? If so, how do I get it?
is there any other build method I can use to solve this?
Thanks :)
Solved it.
Do I need .a files?
Yes, I need them.
How to get it?
run ./genMakeFiles mingw in src/live/ from MinGW
run make
run ./genMakefiles
run make
you can refer below link
http://www.live555.com/liveMedia/