Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Applications
Reload this Page Trying to compile Virtualbox
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Applications I cant get "X" app to work... also discussion about linux programs.

Reply
 
Thread Tools Display Modes
Old 02-25-2008   #1 (permalink)
Super Moderator
 
Dapper Dan's Avatar
 
Join Date: Oct 2004
Location: The Sovereign State of South Carolina
Posts: 3,710
Send a message via AIM to Dapper Dan
Trying to compile Virtualbox

I'm trying to build Virtualbox from source and having problems. It's asking for qt "headers" but there is no such package in the Crux ports. I DO have qt3 and qt4 which are installed.

Ubuntu has libqt3-headers that can be installed with apt-get. Can anyone tell me what this package might be called in other distros and whether or not it can be found in a source package?

Here's the error:
Code:
Checking for Qt:
  Qt not found at "/usr/share/qt" or Qt headers not found
  Check the file /usr/ports/contrib/virtualbox/work/src/VirtualBox-1.5.2_OSE/configure.log for detailed error information.
=======> ERROR: Building '/usr/ports/contrib/virtualbox/virtualbox#1.5.2-2.pkg.tar.gz' failed.
prt-get: error while install

-- Packages where install failed
virtualbox
Dapper Dan is offline   Reply With Quote
Old 02-25-2008   #2 (permalink)
Linux Newbie
 
Join Date: Jan 2008
Location: UK
Posts: 177
On Fedora 8 there is:
The qt-devel package contains the files necessary to develop applications using the Qt GUI toolkit: the header files, the Qt meta object compiler.

Install qt-devel if you want to develop GUI applications using the Qt toolkit.
there is an rpm source for ark linux at RPM Search qt-devel-3.3.8-4ark.i586.rpm
+ other distros.
wowbag1 is offline   Reply With Quote
Old 02-26-2008   #3 (permalink)
Super Moderator
 
Dapper Dan's Avatar
 
Join Date: Oct 2004
Location: The Sovereign State of South Carolina
Posts: 3,710
Send a message via AIM to Dapper Dan
Thanks wowbag1, that helped a lot! I downloaded an .RMP for qt-devel, made it into a tar.gz with rpm2targz. I then installed it but it got installed to /lib. I copied the files over to where virtualbox wanted to find it in /usr/local/qt and got to the make stage. I'm really a lot farther along, but now having this problem...
Code:
kmk[3]: *** [/usr/ports/contrib/virtualbox/work/src/VirtualBox-1.5.2_OSE/out/linux.x86/release/obj/src/VBox/Runtime/RuntimeR0Drv/misc/sanity-c.o] Error 1
The failing command:
        @gcc -c -O2 -nostdinc -iwithprefix include -Wall -Wstrict-prototypes -Wno-trigraphs -Wno-pointer-sign -fno-stack-protector -O2  -fno-omit-frame-pointer -fno-strict-aliasing -fno-common -mpreferred-stack-boundary=2 -msoft-float -Ir0drv/linux -I/usr/ports/contrib/virtualbox/work/src/VirtualBox-1.5.2_OSE/src/VBox/Runtime -I/lib/modules/2.6.24.1/build/include -I/lib/modules/2.6.24.1/build/include/asm-i386/mach-default -I/usr/ports/contrib/virtualbox/work/src/VirtualBox-1.5.2_OSE/include -I/usr/ports/contrib/virtualbox/work/src/VirtualBox-1.5.2_OSE/out/linux.x86/release -Iinclude -DVBOX -DVBOX_WITHOUT_IDT_PATCHING -DVBOX_OSE -DRT_OS_LINUX -D__LINUX__ -D_FILE_OFFSET_BITS=64 -DRT_ARCH_X86 -D__X86__ -D__KERNEL__ -DMODULE -DIN_RING0 -DIN_RT_R0 -DIN_RT_R0 -DRT_WITH_VBOX -DRT_WITHOUT_NOCRT_WRAPPERS -DMODULE -DKBUILD_MODNAME=KBUILD_STR\(vboxdrv\) -DKBUILD_BASENAME=KBUILD_STR\(vboxdrv\) -DIN_SUP_R0 -Wp,-MD,/usr/ports/contrib/virtualbox/work/src/VirtualBox-1.5.2_OSE/out/linux.x86/release/obj/src/VBox/Runtime/RuntimeR0Drv/misc/sanity-c.o.dep -Wp,-MT,/usr/ports/contrib/virtualbox/work/src/VirtualBox-1.5.2_OSE/out/linux.x86/release/obj/src/VBox/Runtime/RuntimeR0Drv/misc/sanity-c.o -Wp,-MP -o /usr/ports/contrib/virtualbox/work/src/VirtualBox-1.5.2_OSE/out/linux.x86/release/obj/src/VBox/Runtime/RuntimeR0Drv/misc/sanity-c.o /usr/ports/contrib/virtualbox/work/src/VirtualBox-1.5.2_OSE/src/VBox/Runtime/misc/sanity-c.c
kmk[3]: Leaving directory `/usr/ports/contrib/virtualbox/work/src/VirtualBox-1.5.2_OSE/src/VBox/Runtime'
kmk[2]: *** [pass_libraries_before] Error 2
kmk[2]: Leaving directory `/usr/ports/contrib/virtualbox/work/src/VirtualBox-1.5.2_OSE/src/VBox'
kmk[1]: *** [pass_libraries_before] Error 2
kmk[1]: Leaving directory `/usr/ports/contrib/virtualbox/work/src/VirtualBox-1.5.2_OSE/src'
kmk: *** [pass_libraries_before] Error 2
=======> ERROR: Building '/usr/ports/contrib/virtualbox/virtualbox#1.5.2-2.pkg.tar.gz' failed.
prt-get: error while install

-- Packages where install failed
virtualbox
On one of the Gentoo forums, a popular fix is this:
Quote:
The problem seems to be related to the opengl support.

I got around the problem by setting opengl to use the xorg support rather than the nvidia one. (using eselct opengl) And then setting it back to nvidia again after the emerge.

Code:
eselect opengl set 2
emerge -u virtualbox
eselect opengl set 1
Thing is, I don't have anything called "eselect," nor is it in the Crux ports. I feel like this can be done configuring a file somewhere but don't know which one. Any ideas about this? Anyone?
Dapper Dan is offline   Reply With Quote
Old 02-26-2008   #4 (permalink)
Linux Newbie
 
ryptyde's Avatar
 
Join Date: Apr 2005
Location: Tragic City Michigan USA
Posts: 180
I have installed VirtualBox on Fedora 8 from a binary package that was available from the Linux Format March 2008 magazine. There were packages for most of the "top" distros and there was also a "generic installer" named "VirtualBox_1.5.4_Linux_x86.run" and also a 64 bit version.

Don't know if that helps though, just happened to see VirtualBox in the mag and about a dozen distros included on a double sided DVD and gave it a try.
ryptyde is offline   Reply With Quote
Old 02-27-2008   #5 (permalink)
Super Moderator
 
Dapper Dan's Avatar
 
Join Date: Oct 2004
Location: The Sovereign State of South Carolina
Posts: 3,710
Send a message via AIM to Dapper Dan
Thanks ryptyde! I just kept running into a brick wall trying to compile. VirtualBox_1.5.6-1_Linux_x86.run installed without incident and is running perfectly! Just to test it out, I ran DSL on the virtual machine. I'm very happy with the results!
Dapper Dan is offline   Reply With Quote
Old 02-27-2008   #6 (permalink)
Super Moderator
 
Dapper Dan's Avatar
 
Join Date: Oct 2004
Location: The Sovereign State of South Carolina
Posts: 3,710
Send a message via AIM to Dapper Dan
Ta da!
Link

Thanks everyone for pitching in.
Dapper Dan is offline   Reply With Quote
Old 02-27-2008   #7 (permalink)
Linux Newbie
 
ryptyde's Avatar
 
Join Date: Apr 2005
Location: Tragic City Michigan USA
Posts: 180
Cool! Glad it worked out!

EDIT: thanks for the link to the newer version, downloading now!

Last edited by ryptyde; 02-27-2008 at 04:48 PM. Reason: Thanks for the update link.
ryptyde is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
virtualbox on etch Kenshin Debian Linux Help 1 09-09-2007 01:47 PM
Debian 2.6.15/2.6.16 compile error dravenloft The Linux Kernel 14 07-26-2006 06:49 PM
How to compile the program with the makefile? Nishant Desai Linux Programming & Scripting 7 07-20-2006 03:49 AM
SDL in kdevelop compile error Smith_mincha Mandriva Linux Help 0 07-08-2006 03:00 AM
How To Download and Compile Libraries/Programs Tracker Linux Newbie 7 06-06-2005 12:16 AM

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 08:32 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0