Re: [Qt-creator] Link errors when building on linux

2017-10-25 Thread Christian Gagneraud

On 26/10/2017 4:56 PM, Frank Miller wrote:

Would any other information be useful?


Once you get to the build failure, what does make -j1 says?

You might have other build failures that causes this one, but you didn't 
see them b/c of parallel builds.


Chris
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Link errors when building on linux

2017-10-25 Thread Frank Miller
Thanks for the quick response. I should have known better...

I'm on CentOS 7.x (I'm not sure exactly. I don't maintain it):
$ uname -a
Linux scone 3.10.0-514.16.1.el7.x86_64 #1 SMP Wed Apr 12 15:04:24 UTC
2017 x86_64 x86_64 x86_64 GNU/Linux

I'm using gcc-7.2.0 which I built myself.
$ g++ --version
g++ (GCC) 7.2.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

I'm using qtbase, qtdeclarative, qtquickcontrols, qtscript, and qttools.
All from the head revision of their 5.9 git branches and built with
compiler above.
$ qmake --version
QMake version 3.1
Using Qt version 5.9.3 in /opt/segdeps/gcc/lib

I haven't done a git clean but I always do out-of-source builds and the
git clones are recent.

Would any other information be useful?

What version of Qt do you build against?

Frank

On Wed, Oct 25, 2017 at 10:13 PM, Christian Gagneraud 
wrote:

> On 26/10/2017 4:06 PM, Frank Miller wrote:
>
>> Greetings,
>>
>> I'm new to qt-creator and would like to build from the source on linux
>> but I am experiencing a curious linker error. I get the same error on
>> the 4.3, 4.4, 4.5, and master git branches. The error message looks like
>> this:
>>
>>  .obj/release-shared/projectexplorer.o: In function
>> `ProjectExplorer::ProjectExplorerPlugin::initialize(QStringList const&,
>> QString*)':
>>  projectexplorer.cpp:(.text+0x216f): undefined reference to
>> `ProjectExplorer::Internal::WinDebugInterface::WinDebugInter
>> face(QObject*)'
>>  projectexplorer.cpp:(.text+0x2196): undefined reference to
>> `ProjectExplorer::Internal::MsvcToolChainFactory::MsvcToolChainFactory()'
>>  collect2: error: ld returned 1 exit status
>>
>> I would be happy to provide the usual system details like OS, compiler,
>> Qt version, and so on but I don't think its relevant. The error is quite
>> easy to understand. The projectexplorer.pro 
>> file lists cpp files that
>> are only built on windows but code from the corresponding headers is
>> referenced on any OS. Here is a change that I made to fix the issue.
>>
>
> But the error could be due to your setup, so tell us about your setup (OS,
> compiler), which git hash are you  at, local modifications, ...
> Did you try a clean rebuild (eg after a git clean -dfx)...
>
> I merely substituted a runtime branch on the OS with a compile time
>> branch on the OS. After this, it builds and runs fine as far as I can
>> tell. I probably should just submit a bug report and be done but the
>> fact that this issue exists for me in all the recent release branches
>> made me want to post a message on this forum and see what people think.
>> I must be doing something unusual right? I can't be the only one who
>> wants to build on linux.
>>
>
> I've built QtC-4.5 from git on Linux very recently and i didn't get this
> build errors.
>
> Chris
>
>
>> Thanks for the great project!
>>
>> Frank
>>
>>
>> ___
>> Qt-creator mailing list
>> Qt-creator@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>>
>>
>
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Link errors when building on linux

2017-10-25 Thread Christian Gagneraud

On 26/10/2017 4:06 PM, Frank Miller wrote:

Greetings,

I'm new to qt-creator and would like to build from the source on linux
but I am experiencing a curious linker error. I get the same error on
the 4.3, 4.4, 4.5, and master git branches. The error message looks like
this:

     .obj/release-shared/projectexplorer.o: In function 
`ProjectExplorer::ProjectExplorerPlugin::initialize(QStringList const&, 
QString*)':
     projectexplorer.cpp:(.text+0x216f): undefined reference to 
`ProjectExplorer::Internal::WinDebugInterface::WinDebugInterface(QObject*)'
     projectexplorer.cpp:(.text+0x2196): undefined reference to 
`ProjectExplorer::Internal::MsvcToolChainFactory::MsvcToolChainFactory()'

     collect2: error: ld returned 1 exit status

I would be happy to provide the usual system details like OS, compiler,
Qt version, and so on but I don't think its relevant. The error is quite
easy to understand. The projectexplorer.pro  
file lists cpp files that

are only built on windows but code from the corresponding headers is
referenced on any OS. Here is a change that I made to fix the issue.


But the error could be due to your setup, so tell us about your setup 
(OS, compiler), which git hash are you  at, local modifications, ...

Did you try a clean rebuild (eg after a git clean -dfx)...


I merely substituted a runtime branch on the OS with a compile time
branch on the OS. After this, it builds and runs fine as far as I can
tell. I probably should just submit a bug report and be done but the
fact that this issue exists for me in all the recent release branches
made me want to post a message on this forum and see what people think.
I must be doing something unusual right? I can't be the only one who
wants to build on linux.


I've built QtC-4.5 from git on Linux very recently and i didn't get this 
build errors.


Chris



Thanks for the great project!

Frank


___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator



___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] Link errors when building on linux

2017-10-25 Thread Frank Miller
Greetings,

I'm new to qt-creator and would like to build from the source on linux
but I am experiencing a curious linker error. I get the same error on
the 4.3, 4.4, 4.5, and master git branches. The error message looks like
this:

.obj/release-shared/projectexplorer.o: In function
`ProjectExplorer::ProjectExplorerPlugin::initialize(QStringList const&,
QString*)':
projectexplorer.cpp:(.text+0x216f): undefined reference to
`ProjectExplorer::Internal::WinDebugInterface::WinDebugInterface(QObject*)'
projectexplorer.cpp:(.text+0x2196): undefined reference to
`ProjectExplorer::Internal::MsvcToolChainFactory::MsvcToolChainFactory()'
collect2: error: ld returned 1 exit status

I would be happy to provide the usual system details like OS, compiler,
Qt version, and so on but I don't think its relevant. The error is quite
easy to understand. The projectexplorer.pro file lists cpp files that
are only built on windows but code from the corresponding headers is
referenced on any OS. Here is a change that I made to fix the issue.

$ git diff
diff --git a/src/plugins/projectexplorer/projectexplorer.cpp
b/src/plugins/projectexplorer/projectexplorer.cpp
index 3b7be3a..ce4386e 100644
--- a/src/plugins/projectexplorer/projectexplorer.cpp
+++ b/src/plugins/projectexplorer/projectexplorer.cpp
@@ -505,14 +505,17 @@ bool ProjectExplorerPlugin::initialize(const
QStringList &arguments, QString *er
 #endif

 // Add ToolChainFactories:
-if (Utils::HostOsInfo::isWindowsHost()) {
-addAutoReleasedObject(new WinDebugInterface);
-addAutoReleasedObject(new MsvcToolChainFactory);
-} else {
-addAutoReleasedObject(new LinuxIccToolChainFactory);
-}
-if (!Utils::HostOsInfo::isMacHost())
-addAutoReleasedObject(new MingwToolChainFactory); // Mingw
offers cross-compiling to windows
+#ifdef Q_OS_WIN
+addAutoReleasedObject(new WinDebugInterface);
+addAutoReleasedObject(new MsvcToolChainFactory);
+#else
+addAutoReleasedObject(new LinuxIccToolChainFactory);
+#endif
+
+#ifndef Q_OS_MAC
+addAutoReleasedObject(new MingwToolChainFactory); // Mingw offers
cross-compiling to windows
+#endif
+
 addAutoReleasedObject(new GccToolChainFactory);
 addAutoReleasedObject(new ClangToolChainFactory);
 addAutoReleasedObject(new CustomToolChainFactory);

I merely substituted a runtime branch on the OS with a compile time
branch on the OS. After this, it builds and runs fine as far as I can
tell. I probably should just submit a bug report and be done but the
fact that this issue exists for me in all the recent release branches
made me want to post a message on this forum and see what people think.
I must be doing something unusual right? I can't be the only one who
wants to build on linux.

Thanks for the great project!

Frank
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] Does someone understand this CMake error

2017-10-25 Thread Nikos Chantziaras

This is with Qt Creator 4.5.0 beta1 on Linux (Gentoo AMD64.)
GCC 6.4.0
CMake 3.9.4
Ninja 1.8.2

In the below, "foo" is your bog-standard add_executable() target:

  error: The install of the foo target requires changing an RPATH from
  the build tree, but this is not supported with the Ninja generator
  unless on an ELF-based platform.  The CMAKE_BUILD_WITH_INSTALL_RPATH
  variable may be set to avoid this relinking step. CMakeLists.txt:191
  (include)

I *am* on an ELF-based system (Linux 64-bit.) I can build the project 
manually outside of Creator just fine:


  $ mkdir build && cd build
  $ cmake -DCMAKE_GENERATOR=Ninja ../
  $ ninja

Builds fine.

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] master branch broken

2017-10-25 Thread Davide Coppola
Just pulled from the master branch and it seems the latest merge of 4.5
(7f626b1182cae5407fa5495b264aa3d9170aa09d) broke it.

Nothing serious, so if anyone needs a quick fix just apply the attached
patch until the Qt guys sort things out.

Hope this helps


-- 
*Davide Coppola*

*email:* vivala...@gmail.com
*website:* http://www.davidecoppola.com
*blog:* http://blog.davidecoppola.com







‌
diff --git a/src/plugins/android/androiddevice.cpp b/src/plugins/android/androiddevice.cpp
index f88..1b49a03 100644
--- a/src/plugins/android/androiddevice.cpp
+++ b/src/plugins/android/androiddevice.cpp
@@ -29,6 +29,7 @@
 
 #include 
 #include 
+#include 
 
 #include 
 
@@ -107,7 +108,7 @@ IDevice::Ptr AndroidDevice::clone() const
 QUrl AndroidDevice::toolControlChannel(const ControlChannelHint &) const
 {
 QUrl url;
-url.setScheme(urlTcpScheme());
+url.setScheme(Utils::urlTcpScheme());
 url.setHost("localhost");
 return url;
 }
diff --git a/src/plugins/projectexplorer/devicesupport/desktopdevice.cpp b/src/plugins/projectexplorer/devicesupport/desktopdevice.cpp
index 074bbc5..1f03b5e 100644
--- a/src/plugins/projectexplorer/devicesupport/desktopdevice.cpp
+++ b/src/plugins/projectexplorer/devicesupport/desktopdevice.cpp
@@ -40,6 +40,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 
diff --git a/src/plugins/projectexplorer/devicesupport/idevice.cpp b/src/plugins/projectexplorer/devicesupport/idevice.cpp
index 985a3d3..1a7b286 100644
--- a/src/plugins/projectexplorer/devicesupport/idevice.cpp
+++ b/src/plugins/projectexplorer/devicesupport/idevice.cpp
@@ -37,6 +37,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 
@@ -414,7 +415,7 @@ void IDevice::setSshParameters(const QSsh::SshConnectionParameters &sshParameter
 QUrl IDevice::toolControlChannel(const ControlChannelHint &) const
 {
 QUrl url;
-url.setScheme(urlTcpScheme());
+url.setScheme(Utils::urlTcpScheme());
 url.setHost(d->sshParameters.host);
 return url;
 }
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Qt Creator Windows snapshot looks XP-styled

2017-10-25 Thread André Hartmann

Hi David,

Am 25.10.2017 um 09:41 schrieb David Schulz:

looks like https://bugreports.qt.io/browse/QTCREATORBUG-19150.


Indeed. I'll track this.

Regards,
André



Greetings

David


On 25-Oct-17 09:38, André Hartmann wrote:

Hi all,

I just tried the latest Qt Creator 4.5 snapshot [1] on Windows 7. All 
is fine so far, however, some dialogs (e.g. the Git fixup dialog) 
looks very XP-style (e.g. the buttons have sharp edges). This was 
different with the Beta. I noticed that Creator is now build against 
Qt 5.10.


Is this a known feature/bug?

Best regards,
André

[1] 
https://download.qt.io/snapshots/qtcreator/4.5/4.5.0-rc1/1614/qt-creator-opensource-windows-x86_64-4.5.0-rc1_1614.exe 


___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator



--
Best regards / Mit freundlichen Grüßen
André Hartmann, Dipl.-Ing. (FH)
Software Project Manager

iseg Spezialelektronik GmbH |  phone: ++49 (0)351 26996-43
Bautzner Landstr. 23|  fax:   ++49 (0)351 26996-21
D-01454 Radeberg / Rossendorf   |  web:   www.iseg-hv.com

Geschäftsführer / Managing director: Dr. F. Gleisberg, Dr. J. Pöthig
Amtsgericht / Lower district court: Dresden HRB 16250
Ust.-Id.-Nr. / VAT-ID: DE812508942

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder
diese E-Mail irrtümlich erhalten haben, informieren Sie bitte
sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser
Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail
in error) please notify the sender immediately and delete this e-mail.
Any unauthorized copying, disclosure or distribution of the material
in this e-mail is strictly forbidden.
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Qt Creator Windows snapshot looks XP-styled

2017-10-25 Thread David Schulz

looks like https://bugreports.qt.io/browse/QTCREATORBUG-19150.


Greetings

David


On 25-Oct-17 09:38, André Hartmann wrote:

Hi all,

I just tried the latest Qt Creator 4.5 snapshot [1] on Windows 7. All 
is fine so far, however, some dialogs (e.g. the Git fixup dialog) 
looks very XP-style (e.g. the buttons have sharp edges). This was 
different with the Beta. I noticed that Creator is now build against 
Qt 5.10.


Is this a known feature/bug?

Best regards,
André

[1] 
https://download.qt.io/snapshots/qtcreator/4.5/4.5.0-rc1/1614/qt-creator-opensource-windows-x86_64-4.5.0-rc1_1614.exe

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] Qt Creator Windows snapshot looks XP-styled

2017-10-25 Thread André Hartmann

Hi all,

I just tried the latest Qt Creator 4.5 snapshot [1] on Windows 7. All is 
fine so far, however, some dialogs (e.g. the Git fixup dialog) looks 
very XP-style (e.g. the buttons have sharp edges). This was different 
with the Beta. I noticed that Creator is now build against Qt 5.10.


Is this a known feature/bug?

Best regards,
André

[1] 
https://download.qt.io/snapshots/qtcreator/4.5/4.5.0-rc1/1614/qt-creator-opensource-windows-x86_64-4.5.0-rc1_1614.exe

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator