From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54809 invoked by alias); 29 Jul 2019 08:33:17 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 54797 invoked by uid 89); 29 Jul 2019 08:33:17 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=kit, Problem, notepad, UD:problems.html X-HELO: mail-io1-f51.google.com Received: from mail-io1-f51.google.com (HELO mail-io1-f51.google.com) (209.85.166.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 29 Jul 2019 08:33:14 +0000 Received: by mail-io1-f51.google.com with SMTP id g20so118138167ioc.12 for ; Mon, 29 Jul 2019 01:33:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=PFNYWTbShkAbiB/j/SeUO+NroDwKmkuTbRy4mxsIjQY=; b=E4NGHo41zuQEX1OcIcukC4yGSGdq0UVpZTe77ylHr1G7TePB/CEkZMdXm2bctZnPGb u547ApFLatTHnueAAiSrWiB+YADsog5Ks+2rmMkTHGZqJHfOtEQ1pZdDGl8di46HEl4K fE++woKpj60hQEwpltoeYzg/QpTv4OQD9npMUFT/rG7kwL/pf8yz45RTF//q7fIvVBr4 7y6H6cbBWU8dLbrFxM9ReTy+n5BfA+GoX5r0G0YEFdR82JJMc3gvMGaV2hwofovguvXw kpt6jFcsr2ESuRpDKlAQ+hOf8olBJVSAvOgvfL0pBIDpzu/htpXccSgQelHlA2KDYeWT Z8NA== MIME-Version: 1.0 References: <03641eb2-5a32-b6f7-2fb2-f71af81f76d9@gmail.com> <01f85e1d-788d-1727-7549-bf216448ca31@SystematicSw.ab.ca> In-Reply-To: <01f85e1d-788d-1727-7549-bf216448ca31@SystematicSw.ab.ca> From: Jean Vanhay Date: Mon, 29 Jul 2019 08:33:00 -0000 Message-ID: Subject: Re: Compilation of Qt5 Cygwin in Qt Creator To: Brian.Inglis@systematicsw.ab.ca, cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00249.txt.bz2 Hello Brain, Thanks for your reply :-). To answer yours questions : > Do you also have to build under and for the Cygwin environment, > and run under Cygwin? I think I am not clear.. sorry. I need to build under Cygwin (qmake / make). I develop under Windows. Actually with notepad++. The binary file is injected on a board where ElinOS6.2 is running. Because the project use Qt Libraries, I want to develop under Qt Creator (Windows Version). I search a way to do that :). I hope I am a little bit more clear :). > Think of Cygwin as another Unix distro rather than a Windows environment. > It's easy to port many Linux and X11 applications to Cygwin and Cygwin/X. > It's major work to port any Windows app to Cygwin or any other Unix distro. > Just pretend you're working under a strange Unix distro (like SuSE) ;^> I am working with a strange Unix distro, ElinOS is based on Yocto ;). It can be weird to develop a Unix app under Windows but I search a way to do that. Actually the qmake & make search the right libs to compile, only if I launch both command under the cygwin. My project works on the target. I have actually tried the qmake & make from ElinOS, I can do the same from cygwin. > You would have to port Qt Creator to run under Cygwin/X, as has been done with > Qt Designer and the other QT tools. Is it possible to do the opposite ? I would like to create a Kit where : - Compilers is the gcc/g++ from Cygwin / ElinOS (works) - Debbuger is the gdb from Cygwin / ElinOS (works) - Qt Versions is the qmake from Cygwin / ElinOS (actually the main issue) The last point is the hardest point to resolve (as describe in my first email). > You should be able to build Qt Creator to run under Cygwin/X, using the cygport > utility to make it easier to reproduce a Unix package build under Cygwin. > ... > ... As I understand I need to use Cygwin/X. I am going to try that (I never used it). Best Regards, Jean Vanhay Le dim. 28 juil. 2019 =C3=A0 17:02, Brian Inglis a =C3=A9crit : > On 2019-07-27 05:39, Jean Vanhay wrote: > > I have some issues about Cygwin Qt5 and Qt Creator on Windows 10. > > I have a computer running on Windows 10 and a Qt versions Qt 5.11.2 > MinGW 32 > > bits and Qt Creator 4.7.2. > > I have a project where it is required to develop under a Cygwin > environment. > > Do you also have to build under and for the Cygwin environment, and run > under > Cygwin? > > You could run your existing Ubuntu code under WSL displaying on Cygwin/X. > > > After install cygwin, I was hoping cygwin Qt Versions can be integrated > to the > > Qt Creator IDE on Windows 10. But for some reason, I never succed to > install it. > > If I try to install Qt Versions from Cygwin 64, on Qt Creator I have > this message : > > -> Qt Creator -> Options -> Kits -> Qt Versions -> Add... > > qmake C:\cygwin64\lib\qt5\bin\qmake.exe could not be added > > "C:\cygwin64\lib\qt5\bin\qmake.exe" crashed. > > I can add compiler / debugger but the environment to develop is not > correct > > because of the qmake crashed. > > Think of Cygwin as another Unix distro rather than a Windows environment. > It's easy to port many Linux and X11 applications to Cygwin and Cygwin/X. > It's major work to port any Windows app to Cygwin or any other Unix distr= o. > Just pretend you're working under a strange Unix distro (like SuSE) ;^> > > > The other cygwin environment that I want to use comes from SysGo/ElinOS. > I have > > open a topic on the Qt Forum : > > https://forum.qt.io/topic/105153/qt-versions-cygwin-g > > If I do the same step than cygwin64, the error message is completely > different : > > cannot read > > > /opt/elinos-6.2/cdk/x86/x86_64/glibc-2.24/share/qt5/mkspecs/devices/linux= -elinos-g++/qmake.conf > > : no such file or directory > > > > After some research on how to change the qmake -query that Qt Creator do > when I > > want to install a Qt versions, i discovered that the problem can maybe > come from > > cygwin. > > If I create a qt.conf file. And depending on the path I write > > "/cygdrive/c/sysgo/opt/..." or "C:\sysgo\opt", the Qt Creator send me > some > > differents messages. > > When I write "/cygdrive/c/..." =3D> Qt Creator write the full path as > cygwin path. > > When I write "C: \" =3D> Qt Creator get back the > "default" path. > > > > I hope the background is a little clear... In both way my questions is : > > - How to install cygwin64 Qt 5 on Qt Creator Windows version ? > > You would have to port Qt Creator to run under Cygwin/X, as has been done > with > Qt Designer and the other QT tools. > > > - Is it possible to "custom" "hardcoded" path in cygwin to have a full > path from > > root C:\ ? > > You should be able to build Qt Creator to run under Cygwin/X, using the > cygport > utility to make it easier to reproduce a Unix package build under Cygwin. > > If sources are available on any of the standard mirrors, and build using > any of > the standard tool chains, the effort required can be minimal, once you > understand how to get cygport to do your work for you. That's how Cygwin > volunteers are able to support 11270 packages on two architectures in the= ir > spare time. > > There are 96 qt5 support and 34 library packages available under Cygwin, > but > only for 5.9 currently, and only clang/llvm 5 as yet. You may be able to > build > the newer versions if required by starting from the current Cygwin > packages and > sources, and using those as bases for building the newer versions from > newer > sources. > > You would need to install the Cygwin/X x.org server, tools, and > development > packages for X and Qt, and any build dependencies, as you would under > Linux. > The Cygwin package names may differ somewhat from the Linux package names > e.g. > qt5-declarative-tools, qt5-devel-tools, qt5-doc-tools, qt5-linguist-tools, > although not all required packages or libraries may have been ported to > Cygwin yet. > > Porting Linux packages to Cygwin using cygport involves installing the > cygport > package, any of your package build dependencies, defining the package name > and > version and where to download the sources (many mirrors are supported) in= a > PACKAGE.cygport file, running "$ cygport PACKAGE.cygport download all > test", and > fixing any build or test issues, as you would on Linux. > > You could download the sources for the qt5-...-tools packages and use tho= se > PACKAGE.cygport files as models for one for Qt Creator. > > Once cygport builds your Cygwin package, you can install your build using: > $ tar -xvf PACKAGE-V.V-1.x86_64/dist/PACKAGE/PACKAGE-V.V-1.tar.xz -C / > or submit it for inclusion in the Cygwin repo, so it can be installed usi= ng > Cygwin setup by anyone, anywhere. > > -- > Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada > > This email may be disturbing to some readers as it contains > too much technical detail. Reader discretion is advised. > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple