I recently downloaded Qt 5.3.2 for Windows 64 bit (offline installation). I installed it and when I ran a simple console program in the IDE, an error propped up saying that Qt Creator needs a compiler set up to build. Now how do I configure Qt Creator for compiling with MSVC 2013?
Related
I'm trying to run my program through ASan on MSVC (fsantitize=address) and I keep getting runtime errors from the ASan dlls. Has anyone been able to get ASan working with runtime set to MDd and platform set to x64?
Windows 11
MSVC 2019 - 16.11.2
I'm beginner to Skia. So Just tried to build Skia in my machine ( macOS High Sierra 10.13.6 ).
I just followed the instructions Build.
Downloaded depot_tools
Downloaded Skia from git
bin/gn gen out/Static --args='is_official_build=false'
python2 tools/git-sync-deps
ninja -C out/Static
i did these instructions. But my xcode (version 9.2) doesnt support -std=c++17 so i replaced with -std=c++1z in all places.
But it throws error
Error
Please help to build skia for mac, and how to xcode project from this?
Skia makes use of C++17 language features (compiles with -std=c++17 flag) and thus requires a C++17 compatible compiler.
You'd better to update your xcode version.
Mac users may want to pass --ide=xcode to bin/gn gen to generate an Xcode project
You can check this.How to build skia
I would like to compile in Ubuntu a FMU for Windows (32 and 64bits).
I read in the OpenModelica User's Guide Release v1.11.0 (https://openmodelica.org/newss/179-february-6-2017-openmodelica-1-11-0-released):
"Added OMEdit support for FMU cross compilation. This makes it possible to launch OMEdit on a remote or virtual Linux machine using a Windows X server and export an FMU with Windows binaries."
"Cross compilation of C++ FMU export. Compared to the C runtime, the C++ cross compilation covers the whole runtime for model exchange."
How can I do the cross compilation?
Should I install anything to get a Windows option in the "Platform" section?
Thanks!!!
Edited:
"sudo apt-get install mingw-w64" adds the Mingw compilers.
Is it possible to add other compilers? For example: Clang for Windows.
Mingw: sudo apt-get install mingw-w64
The option will appear in the dialog window.
Actually i installed QT creator in my debian linux system which is having i386 processor.Now i need to cross compile the QT for debian linux with ARM processor.
So for this cross compile process i installed the compiler arm-linux-gnueabi-gcc-4.4 manually and add it in the QT creator "Tools->Options->Build&Run-->Compiler".
After that i have no idea of how to configure the installed (arm-linux-gnueabi-gcc-4.4) compiler in kit option. Because in kit option "Device Type" , it is expecting for the Qmake file of arm-linux-gnueabi-gcc-4.4.Here my doubt is
Is it possible to create Qmake file for the compiler (arm-linux-gnueabi-gcc-4.4)
If that case what is the procedure to create Qmake file for the compiler (arm-linux-gnueabi-gcc-4.4)
If not in the case any dependencies need to install.
By googling around for this solution finally i felt my head rotate because in QT documentQT document they mention 5 steps.Among 5 steps i stuck in 2nd step itself (./configure -embedded arm -xplatform qws/linux-arm-g++ ).In this step im not able to understand what is configure , embedded, arm, xplatform etc...
In some link link number 2 they suggested to install bitbake and some steps.Here im not able to install bitbake also.
In some qt documents they mentioned embedded linux (is embedded linux is a OS like debian) and mkspecs etc..
Finally i decided to create Qmake file for the compiler arm-linux-gnueabi-gcc-4.4 but not having the single clue also.So if anybody knows what exactly i need to configure QT creator (either Qmake for compiler arm-linux-gnueabi-4.4 or something else ) so that i will follow exactly the required thing without any confusion.
Qt cross compiling for arm based board can be sucessfully done using Angstrom cross compiler. Just download Angstrom cross compiler as per your board configuration , unpack it and create cross compiler using that package.
I have set up static library builds of zlib and libpng. Both compile fine into .lib files. I am using MSVC 2010.
With this setup, to use libpng.lib, you need to link against zlib.lib as well. To avoid this, I'm trying to use lib.exe to link zlib into libpng directly. My invocation looks like:
call "C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/lib.exe" /OUT:x64\Release\libpng2.lib x64\Release\libpng.lib ..\zlib\x64\Release\zlib.lib /LTCG
In both of their project settings, I explicitly set "Librarian->General->Target Machine" to MachineX64. And, using dumpbin, I can check that the relevant zlib.lib and libpng are both compiled for x64.
Additionally, "General->Whole Program Optimization" and "C/C++->Optimization->Whole Program Optimization" have identical values.
The problem only occurs for x64 Release configurations. x86 Debug, x86 Release, and x64 Debug all work fine.
EDIT: Specifically, the problem is that I get a C1905/LNK1257 error:
C1905: Front end and back end not compatible (must target same processor).
LNK1257: code generation failed
I ran into this problem with VS2012. The lib.exe you're calling is part of the x86 tools. In the amd64 subfolder in VC/bin you will find the x64 versions. Opening a Visual Studio x64 Win64 Command Prompt will set your PATH correctly or you can call the x64 lib.exe directly, specifying its full path as you are doing now.