VBox 5.1 configure fails on Qt5
-
- Posts: 96
- Joined: 25. Aug 2015, 17:58
- Primary OS: Ubuntu other
- VBox Version: OSE self-compiled
- Guest OSses: Linux *.*, Win*
- Location: Lake Tahoe, California
VBox 5.1 configure fails on Qt5
I have been building 5.0.x versions for over a year, and never had trouble taking the next update when it came out.
But now I am trying to update to 5.1.6 code base (from tarball source), and cannot finish the configure script as Qt5 is missing. I have tried installing several Qt5 related packages, but haven't been able to find the one that's needed. What new packages are required for building 5.1.x?
This is on an Ubuntu 14 guest running on standard VBox 5.0.22 installation on a Windows host (same one I have been using for building 5.0.x).
Note the build instructions at https://www.virtualbox.org/wiki/Linux%2 ... structions still say that Qt4 is required.
But now I am trying to update to 5.1.6 code base (from tarball source), and cannot finish the configure script as Qt5 is missing. I have tried installing several Qt5 related packages, but haven't been able to find the one that's needed. What new packages are required for building 5.1.x?
This is on an Ubuntu 14 guest running on standard VBox 5.0.22 installation on a Windows host (same one I have been using for building 5.0.x).
Note the build instructions at https://www.virtualbox.org/wiki/Linux%2 ... structions still say that Qt4 is required.
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: VBox 5.1 configure fails on Qt5
You need to install Qt version 5.3.2 which is available for Ubuntu 14.*. Make sure you get the right one. The one from ppa might want to install in /opt which will work but you need to define the location in your config line.
-
- Posts: 96
- Joined: 25. Aug 2015, 17:58
- Primary OS: Ubuntu other
- VBox Version: OSE self-compiled
- Guest OSses: Linux *.*, Win*
- Location: Lake Tahoe, California
Re: VBox 5.1 configure fails on Qt5
Thanks, Perry, that helped move me forward. For the record, after a few false turns, this is what I found worked:
1. Added the PPA to my system per instructions here: https://launchpad.net/~beineri/+archive ... 532-trusty
2. Installed the packages listed there with apt-get. A couple said they could not be found but most installed fine.
3. ./configure --with-qt-dir=/opt/qt53
Unfortunately, now I face a different issue. After sourcing env.sh, kmk all errors out after quite a few successful files. I worry that some other package has to be updated when moving from 5.0.x to 5.1.x. This was with 5.1.6 as I just now saw the notification for 5.1.8.
1. Added the PPA to my system per instructions here: https://launchpad.net/~beineri/+archive ... 532-trusty
2. Installed the packages listed there with apt-get. A couple said they could not be found but most installed fine.
3. ./configure --with-qt-dir=/opt/qt53
Unfortunately, now I face a different issue. After sourcing env.sh, kmk all errors out after quite a few successful files. I worry that some other package has to be updated when moving from 5.0.x to 5.1.x. This was with 5.1.6 as I just now saw the notification for 5.1.8.
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: VBox 5.1 configure fails on Qt5
A few files don't give me enough information to be able to help. Run it again, tee the output to a file and post it here ( as an attachment )
I also would like to see the configure.log found in the root of your build tree.
I also would like to see the configure.log found in the root of your build tree.
-
- Posts: 96
- Joined: 25. Aug 2015, 17:58
- Primary OS: Ubuntu other
- VBox Version: OSE self-compiled
- Guest OSses: Linux *.*, Win*
- Location: Lake Tahoe, California
Re: VBox 5.1 configure fails on Qt5
Dopey me, I meant to attach it and just forgot. Here is is:
- Attachments
-
- configure.log
- (16.14 KiB) Downloaded 38 times
-
- kmk_all.log
- kmk all (pruned due to file size limit)
- (21.88 KiB) Downloaded 34 times
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: VBox 5.1 configure fails on Qt5
This has been a requirement for some time but not sure if it is absolutely necessary with the tarball. Still it is something to consider
http://www.openwatcom.org/index.php/Ins ... m_on_Linux
IIRC this is because you need a newer GCC for the kernel you have. Mine is gcc version 4.9.4 for kernel 4.* distros
http://www.openwatcom.org/index.php/Ins ... m_on_Linux
Code: Select all
***** Checking Open Watcom *****
** Open Watcom was not found!
Code: Select all
/lib/modules/4.4.0-42-generic/build/include/linux/compiler.h:216:6: error: can’t set ‘no_instrument_function’ attribute after definition
-
- Posts: 96
- Joined: 25. Aug 2015, 17:58
- Primary OS: Ubuntu other
- VBox Version: OSE self-compiled
- Guest OSses: Linux *.*, Win*
- Location: Lake Tahoe, California
Re: VBox 5.1 configure fails on Qt5
I found it was not necessary to have watcom for building 5.0.x from the tarball. I am using gcc 4.8.4 as I was with 5.0.x builds. I'll keep poking.
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: VBox 5.1 configure fails on Qt5
Was that a typo or is it accurate? Mine is 4.9.4
-
- Posts: 96
- Joined: 25. Aug 2015, 17:58
- Primary OS: Ubuntu other
- VBox Version: OSE self-compiled
- Guest OSses: Linux *.*, Win*
- Location: Lake Tahoe, California
Re: VBox 5.1 configure fails on Qt5
On the Ubuntu 14 VM that I have been using all along it's 4.8.4 — I did notice the discrepancy in your note.
I just check on my new Ubuntu 16 VM (not yet fully set up), and it says gcc 5.4.0.
What host are you using? Did you update gcc specifically?
I just check on my new Ubuntu 16 VM (not yet fully set up), and it says gcc 5.4.0.
What host are you using? Did you update gcc specifically?
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: VBox 5.1 configure fails on Qt5
Yup I verified that it must be 4.9 because the 4.8 will not work on your kernel.
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: VBox 5.1 configure fails on Qt5
Yes I update and compile all of my own packages. As for what distro it is my own. Debian based but not what you would consider a Debian release or Ubuntu, Etc..
-
- Posts: 96
- Joined: 25. Aug 2015, 17:58
- Primary OS: Ubuntu other
- VBox Version: OSE self-compiled
- Guest OSses: Linux *.*, Win*
- Location: Lake Tahoe, California
Re: VBox 5.1 configure fails on Qt5
OK, I updated my U14 VM to gcc 4.9.4. The configure script does not accept that, so I changed the links in /usr/bin to point to 4.8.4 for the configure script, then back to 4.9.4 for the build, and got much further now. Linking tstVMStructRC fails due to library incompatibilities. Any ideas on this one?
- Attachments
-
- kmk_all_518.log.bz2
- (35.75 KiB) Downloaded 25 times
-
- configure.log
- (16.14 KiB) Downloaded 24 times
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: VBox 5.1 configure fails on Qt5
Still a GCC issue. Probably due to having both versions installed. You really should replace the old one with the new one and then if you see an error post that without bouncing around.
-
- Posts: 96
- Joined: 25. Aug 2015, 17:58
- Primary OS: Ubuntu other
- VBox Version: OSE self-compiled
- Guest OSses: Linux *.*, Win*
- Location: Lake Tahoe, California
Re: VBox 5.1 configure fails on Qt5
OK, so I went through this very carefully, starting from a fresh clone of the VM that I use successfully for building 5.0.x. First I installed Qt5, check. Then I could run .configure as above, and it looked good. But the compile failed as above.
Next I installed g++ 4.9, though after an apparently successful installation, I found things like this in /usr/bin (i.e. generic gcc points to 4.8 ).
Next I installed g++ 4.9, though after an apparently successful installation, I found things like this in /usr/bin (i.e. generic gcc points to 4.8 ).
Now configure still works, but compile fails, because it's really still using 4.8. So I changed the generic links to point to 4.9, but now configure does not work. The log shows there are some incompatible libraries (in the gcc4.9 tree).lrwxrwxrwx 1 root root 7 Apr 29 14:27 /usr/bin/gcc -> gcc-4.8
-rwxr-xr-x 1 root root 775888 May 7 05:30 /usr/bin/gcc-4.8
-rwxr-xr-x 1 root root 837552 Sep 4 19:06 /usr/bin/gcc-4.9
lrwxrwxrwx 1 root root 10 Apr 29 14:27 /usr/bin/gcc-ar -> gcc-ar-4.8
-rwxr-xr-x 1 root root 26968 May 7 05:30 /usr/bin/gcc-ar-4.8
-rwxr-xr-x 1 root root 26968 Sep 4 19:06 /usr/bin/gcc-ar-4.9
Checking for 32-bit support:
Cannot compile 32-bit applications (missing headers and/or libraries)!
Check the file /home/rvilbig/vbox/ose518/configure.log for detailed error information.
Check /home/rvilbig/vbox/ose518/configure.log for details
- Attachments
-
- vbox_51x_gcc49.tar.bz2
- (15.38 KiB) Downloaded 27 times
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: VBox 5.1 configure fails on Qt5
Yours
Mine
Something is wrong with your package. I don't really know what because I can not replicate it but definitely in the GCC package. Since the failure is in them package the config does not pass and the compile fails. There really is not sense in trying the compile until you can get a valid config pass.
Search using "ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc.a when searching for -lgcc" and see if you find a reason. I suspect you may not have a multi lib package installed.
Code: Select all
***** Checking 32-bit support *****
compiling the following source file:
#include <stdint.h>
int main(void)
{
return 0;
}
using the following command line:
gcc -m32 -O -Wall -o /home/rvilbig/vbox/ose518/.tmp_out /home/rvilbig/vbox/ose518/.tmp_src.c
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status
Code: Select all
***** Checking 32-bit support *****
compiling the following source file:
#include <stdint.h>
int main(void)
{
return 0;
}
using the following command line:
gcc -m32 -O -Wall -o /trunk/.tmp_out /trunk/.tmp_src.c
executing the binary
***** Checking makeself *****
found version 2.2.0
Search using "ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc.a when searching for -lgcc" and see if you find a reason. I suspect you may not have a multi lib package installed.