use Homebrew to create redistributable dynamic libraries - homebrew

I want to build redistributable libraries (for example: FFmpeg and all its dependencies) with Homebrew. Basically, I guess all I need is to pass -mmacosx-version-min=10.6 or --with-macos-sdk=/Developer/SDKs/MacOSX10.6.sdk or so but I'm not sure. A related question about how to pass custom CFLAGS is here. Is this enough? Are other people doing this? How?

Related

Can I build a Checker using prebuilt llvm/clang?

I came across this "How to Write a Checker in 24 Hours - LLVM" by Anna Zaks and Jordan Rose.
I am using an Ubuntu/Debian system.
To build a custom checker, do I need to build llvm and clang from source?
Anybody knows how use the prebuilt clang and llvm from apt-get to build a checker?
Thanks.
You need to build clang/llvm from the source in order to be able to build a custom checker.
http://clang-analyzer.llvm.org/installation.html
When you write a new custom checker, you end up editing the checker related files to register your checker with clang, and recompile it. Which won't be possible with prebuilt executables. How to add your new checker: http://clang-analyzer.llvm.org/checker_dev_manual.html

How to include static library based on CMAKE generator

I'm trying to add lua static library onto my project using CMAKE. But what I found from lua documents that they have several version of Visual Studio libraries for 32/64-bit architecture.
I need to learn is there a option on CMAKE to identify the architecture and generator used for generating required files.
Thanks in advance
There's a host of system inspection variables and information variables which CMake offers. I'll try to list some which might be applicable in your case:
CMAKE_CL_64: true if the compiler being used is Microsoft's CL targetting a 64-bit architecture
MSVC: true if using a Miscrosoft Visual C++ compiler
CMAKE_GENERATOR: the generator being used
CMAKE_GENERATOR_PLATFORM: generator-specific target platform name
CMAKE_SIZEOF_VOID_P: size of void*, in bytes
You should also be aware that CMake ships with a FindLua module, so you might find the decision already implemented for you in that module. (I have never used it myself, so I do not now whether/how it works).

CMake: Is there a way to make just a part from the OpenCV libraries?

I want to use just 4 from the OpenCV libraries, and I have build it all on my computer, but on the other one, I want to build just the 4 of them. Is there a way to do it with CMake? Shall I modify the OpenCVConfig.cmake file? If yes, how?
Or to be more precisely, the question is:
How to build the OpenCVs libraries one by one? using Linux

Convert .xcodeproj to makefile

I have a Xcode project .xcodeproj and I would like to convert it to a Makefile. How can I do this? Thanks in advance. I'm using Xcode 5.0.2.
If you have a one-time conversion to do, this answer may not be worthwhile. However, if you have to support multiple platform, or have other considerations, consider using CMake.
In a nutshell, CMake is a "meta"-makefile system, and can generate Makefiles, XCode projects, Visual Studio projects, etc. If you really have the need, and can bear CMake's ... interesting ... syntax, it may work well for you.
Having said that, if you don't have special considerations like multiple platform support, CMake is probably more work than it's worth.

compiled vala itself with vala on windows

I'm not sure if this question is correct but...
Ok, is possible compiled the source vala in vala
because I bean downloading vala source code and inside has many vala files
here vala release source code
https://wiki.gnome.org/Vala/Release
I have been installed on windows this version
https://code.google.com/p/vala-win32/downloads/list
vala-0.12.0.exe
I wont compile the last vala release whit the vala on windows
oky, gracias :D
please, not confused with this question,
Compiling a Vala source On Windows
If 0.20.1 is enough, you can use http://www.tarnyko.net/en/?q=node/35 and possibly avoid this whole thing.
If you really need 0.22.0, Vala release tarballs don't actually require valac to compile—they contain all the generated C. You should be able to use the build system included with Vala (like Robert Rozas mentioned, or via cygwin) to generate executables even without valac installed.
GNOME wiki recommends using either MSYS2 or WSL (Windows 10 only) to get Vala compiler. Another option is using ValaForWindows, which aims to be the easiest option to install and use.

Resources