public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Compilation of Qt5 Cygwin in Qt Creator
@ 2019-07-27 11:39 Jean Vanhay
  2019-07-28 15:02 ` Brian Inglis
  0 siblings, 1 reply; 4+ messages in thread
From: Jean Vanhay @ 2019-07-27 11:39 UTC (permalink / raw)
  To: cygwin

Dear Cygwin team,

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.

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.

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/..." => Qt Creator write the full path as 
cygwin path.
When I write "C: \"                    => 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 ?
- Is it possible to "custom" "hardcoded" path in cygwin to have a full 
path from root C:\ ?

Best Regards,

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compilation of Qt5 Cygwin in Qt Creator
  2019-07-27 11:39 Compilation of Qt5 Cygwin in Qt Creator Jean Vanhay
@ 2019-07-28 15:02 ` Brian Inglis
  2019-07-29  8:33   ` Jean Vanhay
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Inglis @ 2019-07-28 15:02 UTC (permalink / raw)
  To: cygwin

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 distro.
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/..." => Qt Creator write the full path as cygwin path.
> When I write "C: \"                    => 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 their
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 those
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 using
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compilation of Qt5 Cygwin in Qt Creator
  2019-07-28 15:02 ` Brian Inglis
@ 2019-07-29  8:33   ` Jean Vanhay
  2019-07-29 19:32     ` Brian Inglis
  0 siblings, 1 reply; 4+ messages in thread
From: Jean Vanhay @ 2019-07-29  8:33 UTC (permalink / raw)
  To: Brian.Inglis, cygwin

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 à 17:02, Brian Inglis <Brian.Inglis@systematicsw.ab.ca>
a écrit :

> 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 distro.
> 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/..." => Qt Creator write the full path as
> cygwin path.
> > When I write "C: \"                    => 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 their
> 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 those
> 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 using
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compilation of Qt5 Cygwin in Qt Creator
  2019-07-29  8:33   ` Jean Vanhay
@ 2019-07-29 19:32     ` Brian Inglis
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Inglis @ 2019-07-29 19:32 UTC (permalink / raw)
  To: cygwin

On 2019-07-29 02:33, Jean Vanhay wrote:
>> 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 :).

Only qmake version is for QT4 under Mingw:

$ apt list qmake
mingw64-i686-qt4-qmake 4.8.7-1 x86_64
mingw64-i686-qt4-qmake-debuginfo 4.8.7-1 x86_64
mingw64-x86_64-qt4-qmake 4.8.7-1 x86_64
mingw64-x86_64-qt4-qmake-debuginfo 4.8.7-1 x86_64

After installing Cygwin utilities and adding the C:...\cygwin64\bin directory to
your Windows User path, you can just run any Cygwin program from Windows. Many
users run Cygwin from a Windows console cmd shell rather than mintty and bash.

>> 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).

That only allows you to run X apps under Windows like Xming, Exceed, etc.

-- 
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-07-29 19:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-27 11:39 Compilation of Qt5 Cygwin in Qt Creator Jean Vanhay
2019-07-28 15:02 ` Brian Inglis
2019-07-29  8:33   ` Jean Vanhay
2019-07-29 19:32     ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).