How can I check if vcpkg installed debug/release version of a library?
I'm on macOS Monterey but I guess this applies to other OS also.
I did vcpkg install qt5 and after a few hours it looks like it installed everything (almost).
After adding the kit from vcpkg on QtCreator, I can build/run a simple Qt based project in release mode but in debug mode it fails with:
vcpkg install both versions. Qt IDE integration however works only for release builds unless you are allowed to specify a qt.conf file to use for customized lookup. Typically IDE integrations just look for qmake without any way to customize it... which only allows one build config to work in vcpkg
Related
I'm working on migrating my project to the new Apple Silicon architecture (arm64).
One of my 3rd party libraries still doesn't have arm64 version on supplier website but luckily it's an open source project so I wanted to compile it myself locally.
Unfortunately, the project docs have missing prerequisites regarding how to compile, but apparently home-brew already provides this lib built under arm64 and can be deployed using brew install.
For security reasons I wish to compile it locally, So I'd like to see how brew compile it.
I was wondering if there's any way to use brew install so that it also compile the project locally and not just copy its pre-made targets to my machine.
Thanks !
I have installed Qt with Homebrew. Everything is working fine for Desktop Application Development. But I do not find Maintenance Tool. Do I need to install that separately with brew ?
It does not exist, since homebrew tries to be a package manager like they exist on linux environtments. Just like cygwin/msys2 for windows. So they provide one qt build and that's it.
You can still install the official binary distribution from Qt which contains the Maintenance Tool. You can think of the Maintenance Tool as Qt's internal package manager, that can install official Qt binaries.
The issues tab is never populated,
the 'compile output' tab is working fine, I can see all warnings and errors.
I have tried cmake and qmake projects,
compiling with gcc and clang.
Full working projects and just "main" empty projects.
I'm using Qt Creator 4.0.2
I had the same problem on Ubuntu 14.04, Qt Creator 4.0.x. I solved it by using the latest cmake version (currently 3.6.1).
You don't need to install latest cmake in the system, if you don't want to / don't have permissions. It also worked by downloading latest cmake binary tar, extracting it somewhere, and referencing it in qtcreator (Tools - Options - Build&Run - CMake - Add...) and setting it as default in the used kit (Tools - Options - Build&Run - Kits - CMake-Tool).
I was trying to install PyQt on my MacOS. With SIP installed, an error occurred when python3 PyQt-gpl-5.4/configure.py inputted:
Error: Use the --qmake argument to explicitly specify a working Qt qmake.
It seems that Qt should be installed before PyQt. There're many optional components in the installation of Qt:
-Qt 5.4
--clang 64-bit
--source components
---Add-Ons
---Essentials
--.....
Which components should I choose for installing qmake??
qmake is the executable that is included with any version of the qt libraries; and there is a different version of qmake for each compiler the Qt Libraries are built with/against. On a mac, and for building projects that run on OSX, you will probably want clang x64. And you will find qmake under ~/Qt/5.x/clang_64/bin It will also install qt creator (I don't think you can uncheck it), but you don't need all the extras besides that.
Building with qmake often needs XCode installed and the Command Line Tools (CLT) to use its included compiler. With Python, you probably won't need the compiler, unless you need to build some of its libraries.
Hope that helps.
I'm trying to install openCV on university's iMac,
but the problem is our university's network is so strict.
and I couldn't install openCV using MacPorts.
I tried google to look for a way to install but it all failed
i guess because it is kind of old ways and because my network is so strict.
So if anybody knows a way that I can download a ready framework with how to use it inside
Xcode. or at least a framework with how to install it to work with Xcode.
or a way to download from the source and compile it then install it in Xcode
please.
Because I tried the cmake way and I still have no luck to get it work.
thanks in advance.
sources I used:
http://salemsayed.me/?p=240
http://opencv.willowgarage.com/wiki/InstallGuide
http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port
http://www.ient.rwth-aachen.de/cms/software/opencv/
I'm using Lion + Xcode 4.x branch, with OpenCV svn trunk. Everything works fine. You have to install cmake first, then get the code from the svn following the instructions at http://code.opencv.org . The compilation process worked fine for me for all the core modules + the Qt module + the GPU module + TBB acceleration.
The instructions are the same as the Linux platform.
After setting up cmake configuration in a terminal (using ccmake for a more interactive tool),
I set the architecture to x86_64 (on my MBP Core 2 Duo), the target directory to /usr/local/(the default), and I have Intel TBB installed in /usr/local/.
Cmake generates the makefiles for you, so you just have to type make -j2 to compile, then sudo make install. If you're working on a workstation, then you have more CPU power, and you can replace the value 2 by more, e.g. 8.