Minimize Qt folder size after compilation - visual-studio

I had to compile by myself Qt libraries (both 4.8.6 and 5.5.1 version) using Visual Studio (2008 and 2013).
After this I need to share built libraries to other co-workers, zipping the folder and putting it in a ftp server. So I'd like to remove all unnecessary stuff and maintain only the necessary in order to use Qt.
At this moment I've removed:
all .obj files
doc folder
What other stuff can I delete in order to minimize the qt folder size? I don't need to recompile it again. Can I delete the src/ folder for example?

Use nmake clean (or possibly nmake /f makefile.vc clean).

Related

CMake: add files as content to Visual Studio Solution

CMake since version 3.1 can create Windows Store/Windows Phone 8.1 projects.
Is it possible to add resource file (say, png image) to resulting Visual Studio 2013 project (Modern UI app) and mark it as content to force copying it to output directory when building from VS? If yes, how this can be achieved?
For example configure_file just adds file to the project directory
Looks like there's a flag for that called VS_DEPLOYMENT_CONTENT in cmake
http://www.cmake.org/cmake/help/v3.1/prop_sf/VS_DEPLOYMENT_CONTENT.html
By the way, Microsoft has a cmake fork with more update support for windows universal app that isn't a part of the cmake main repository yet.
https://github.com/Microsoft/CMake/
You might find it useful.
To copy files, say PNG images as you wanted, to the output directory, you can do like this:
file(GLOB files_needed_to_copy
your-data-directory/*.png
)
file(COPY ${files_needed_to_copy} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
This will make the copy operation happen while cmake-ing.

OpenCV 3.0 missing Libraries

I am trying to install OpenCV 3.0 Aplha. I'm following these instructions
http://docs.opencv.org/trunk/doc/tutorials/introduction/windows_install/windows_install.html
After I download and extract the package, I am supposed to have all the pre-built libraries in the folder :opencv\build\x86\vc12\lib but I don't see them in this folder. This folder only has opencv_ts300.lib and opencv_world300.lib. All the other libraries seems to be missing. Also the bin folder doesn't have the dlls. But statlib folder does seems to have all the static libraries.
I also tried to build the libraries from source, and as per the instructions after building the OpeCVALL.sln in visual studio, I am supposed to have the libraries in the x86\vc12 but the libraries doesn't seem to be building in this folder. After digging through the folders I see that the opencv libraries are found in bin/debug and bin/release folders. I thought I would use these for linking in visual studio but I am not finding the header files in build/include folder
I don't see any of these issues with Opencv 2.49. Any help in debugging this issue with 3.0 would be highly appreciated.
Summary: After I build from source/ or pre-built package, I am able to run the sample applications. But I am not finding the headers and libraries to create a visual studio project from scratch.
Okay I figured out what is going wrong here...
Build INSTALL project manually from the OpenCV.sln by right clicking - > build. This will create the libraries in build/install/x86/vc12 folder. This is where lib,bin and staticlib folders are now residing. Also the include files are in build/install/include.
Library files : located in your cmake folder's lib/debug(or release) folder
DLL files : located in cmake folder's bin/debug(or release) folder
Header files : located in opencv3's build/include folder

openRTMFP cumulus how to compile and install

i've just downloaded cumulus, POCO, OpenSSL and LuaJIT and visual studio. now i'm trying to compile it as it said in instruction here
however i've never used visual studio and i've never programed on visual c. so i'm stuck at the very begining.
in instruction i've put link above said "Visual Studio 2008/2010 solution and project files are included. It searchs external librairies in External/lib folder and external includes in External/include folder in the root Cumulus folder. So you must put POCO, OpenSSL and LuaJIT headers and libraries in these folders.". i tryed everything but compiler can't find 'Poco/foundation.h'.
and it seems to me if i deal with this error there will more over.
so if someone has expirience in compiling cumulus-server please help me to deal with it.
thanks a lot for you help!
step 1 - create 2 files
cumulus_root_folder/external/lib
cumulus_root_folder/external/include
step 2 - put the headers into the include folder from the other 3 dependent projects
dependent projects are: openssl, poco, luajit.
put openssl file into the external/include from openssl-version/include
put Poco file into the external/include from poco-version/Foundation/include
put SAX, DOM, XML files into the external/include/Poco from poco-version/XML/include/Poco
put Net file into the external/include/Poco from poco-version/Net/include/Poco
put Util file into the external/include/Poco from poco-version/Util/include/Poco
put LuaJIT's headers with the same way.
now you can build cumuluslib.
step 3 - Open your cumuluslib project with specific visual studio version then build it.
When it's done you can see the lib file at cumulus_root_folder/cumuluslib/lib
step 4 - now you have to build the 3 dependent projects and put their lib files to cumulus_root_folder/external/lib its tough mission, maybe you will need 32-bit windows. Do not forget: when you building poco, do it with debug if not, some of your files will be missing.
When you done with building and gathering lib files you can build cumulusserver. Same way as cumuluslib. Then your cumulus.exe will be in cumulus_root_folder/cumulusserver/debug

Where is llvm-config in Windows?

I am open to either a Visual Studio answer or a MinGW answer. I just finished building LLVM 3.2 using CMake and Visual Studio 2010. Everything went smoothly, but I have no llvm-config. Do I need it? Every example I see on the intertubes makes use of that tool. If I don't need it, how do I configure my project to make use of LLVM?
To be clear, I am not trying to use LLVM tools/compilers (like clang and whatnot). I am trying to write C++ code that uses the LLVM libraries to produce LLVM IR and even compile that stuff. I setup my include and lib folders. I ran llvm-config in Linux and saw a long list of macros and libraries.
I have a wonderful folder full of goodies. It just has no llvm-config in there: C:\Program Files (x86)\LLVM\
llvm-config does not exist in windows prebuilt binaries. You need to compile from the source code to get it.
Grab CMAKE > 3.5 , install it and make sure you add it to PATH.
Download Visual Studio 2019
Donwload the source code (9.0.1 is the latest as I'm writing this)
Extract the source code
Cd into the root of the llvm source-code
In cmd, type cmake . this will generate Visual Studio 2019 sln.
open sln file(LLVM.sln), change the build type to Rlease, build the whole project
navigate to your Rlease\bin, and there you have your llvm-config.exe
If you have built the LLVM in debug version all the executables (including llvm-config) have been placed in your build directory (containing Visual Studio project and solution files) in bin/Debug/ subdirectory. In case of release build replace Debug with Release.
If you are interested in using LLVM on Windows more than building it, check out Windows snapshot builds.

build boost library

i have boost librray 1.44.0 how can i build it?i am using visual studio 2010
thanks
You can use the tool bjam.exe (just search for it in the www and download it).
When downloaded and extracted, just type bjam toolset=msvc-10.0 --build-type=complete stage from the windows console in your boost directory. Then reference the include and lib directories within Visual Studio:
Include: boost_1_44_0 (plus possibly boost_1_44_0\boost)
Lib: boost_1_44_0\stage\lib
go to your boost directory (c:\boost or whatever) and run:
bootstrap.bat
and then
bjam.exe
It should generate the .lib files in $BOOST\stage\lib (about 850 MB :P)

Resources