<div dir="ltr">Hi Christian,<div><br></div><div>I am trying to use the binary of Qt4 from Nokia, and again I am hitting this 32/64 bit issue:</div><div><br></div><div><div>$ ./configure --disable-hardening --with-openssl-dir=/opt/local --with-qt4-dir=/usr</div>
<div>Checking for environment: Determined build machine: darwin.x86, target machine: darwin.x86, OK.</div><div>Checking for kBuild: found, OK.</div><div>Checking for Darwin version: found version 10.6 (SDK: /Developer/SDKs/MacOSX10.5.sdk), OK.</div>
<div>Checking for gcc: found version 4.2.1, OK.</div><div>Checking for libIDL: found version 0.8.13, OK.</div><div>Checking for ssl: found version OpenSSL 0.9.8m 25 Feb 2010, OK.</div><div>Checking for libcurl: found version 7.16.3, OK.</div>
<div>Checking for OpenGL support: enabled</div><div>Checking for Qt4: </div><div>  ** not found!</div></div><div><br></div><div>I found the following at the end of configure.log:</div><div><br></div><div>***** Checking Qt4 *****</div>
<div><div>compiling the following source file:</div><div>#include <cstdio></div><div>#include <QtGlobal></div><div>extern "C" int main(void)</div><div>{</div><div>  printf("found version %s", QT_VERSION_STR);</div>
<div>#if QT_VERSION >= 0x040400</div><div>  printf(", OK.\n");</div><div>  return 0;</div><div>#else</div><div>  printf(", expected version 4.4.0 or higher\n");</div><div>  return 1;</div><div>#endif</div>
<div>}</div><div>using the following command line:</div><div>g++ -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -g -O -Wall -o /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/.tmp_out /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/.tmp_src.cc "-F/Library/Frameworks -lpthread -I/Library/Frameworks/QtCore.framework/Headers -framework QtCore"</div>
<div>In file included from /Library/Frameworks/QtCore.framework/Headers/QtGlobal:1,</div><div>                 from /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/.tmp_src.cc:2:</div><div>/Library/Frameworks/QtCore.framework/Headers/qglobal.h:288:2: error: #error "You are building a 64-bit application, but using a 32-bit version of Qt. Check your build configuration."</div>
</div><div><br><div class="gmail_quote">On Mon, Mar 8, 2010 at 1:58 AM, Christian Pötzsch <span dir="ltr"><<a href="mailto:Christian.Poetzsch@sun.com">Christian.Poetzsch@sun.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Nadav,<br>
<br>
the install instruction are correct. Even if Snow Leopard claims to be<br>
fully 64Bit, the kernel isn't it most of the time. VirtualBox needs a<br>
kernel driver to work correctly, so VirtualBox have to be compiled like<br>
the current running kernel. You can verify the current version running<br>
by uname -m. Also I suppose you didn't want to use the Qt version from<br>
MacPorts, cause this is the X11 one and thats not supported by us. Use<br>
the one from the Nokia web site.<br>
<br>
Christian<br>
<div><div></div><div class="h5"><br>
On 03/07/10 05:20, Nadav Samet wrote:<br>
> Hi,<br>
><br>
> I am trying to compile the 3.1.4_OSE tarball on Snow Leopard.<br>
><br>
> The instructions<br>
> at <a href="http://www.virtualbox.org/wiki/Mac%20OS%20X%20build%20instructions" target="_blank">http://www.virtualbox.org/wiki/Mac%20OS%20X%20build%20instructions</a> links<br>
> to page with a binary version of Qt4 compiled for i386. However, the<br>
> default target architecture in Snow Leopard is 64-bit.<br>
><br>
> So I went ahead and did a 'sudo port install qt4-mac', went back into<br>
> the Virtual Box 3.1.4 directory and:<br>
><br>
> $ ./configure --disable-hardening --with-openssl-dir=/opt/local/<br>
> --with-qt4-dir=/opt/local/Library/<br>
> ...<br>
> $ kmk<br>
> [...]<br>
> kBuild: Linking VBoxRT<br>
> Undefined symbols:<br>
>   "_fopen$UNIX2003", referenced from:<br>
>       _BIO_new_file in libcrypto.a(bss_file.o)<br>
>       _file_ctrl in libcrypto.a(bss_file.o)<br>
>       _open_console in libcrypto.a(ui_openssl.o)<br>
>       _open_console in libcrypto.a(ui_openssl.o)<br>
> ld: symbol(s) not found<br>
> collect2: ld returned 1 exit status<br>
> kmk[2]: ***<br>
> [/Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/obj/VBoxRT/VBoxRT.dylib]<br>
> Error 1<br>
> The failing command:<br>
> @g++-4.0 -dynamiclib<br>
>  -mmacosx-version-min=10.5<br>
> -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk<br>
> -Wl,-headerpad_max_install_names  -Wl,-no_compact_linkedit<br>
> -current_version 3.1.4 -framework IOKit -install_name<br>
> @executable_path/VBoxRT.dylib -m32 -read_only_relocs suppress  -o<br>
> /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/obj/VBoxRT/VBoxRT.dylib<br>
>  -filelist<br>
> /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/obj/VBoxRT/VBoxRT.rsp<br>
>    -liconv<br>
> /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/lib/SUPR3.a<br>
><br>
> /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/lib/VBox-liblzf.a<br>
>   -lz<br>
> /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/lib/VBox-kStuff.a<br>
><br>
> /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/lib/VBox-libxml2.a<br>
>   /opt/local//lib/libcrypto.a   -lcurl<br>
> kmk[2]: ***<br>
> [/Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/obj/VBoxRT/VBoxRT.dylib]<br>
> Deleting file<br>
> `/Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/obj/VBoxRT/VBoxRT.rsp'<br>
> kmk[2]: *** Waiting for unfinished jobs....<br>
> kmk[2]: Leaving directory<br>
> `/Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE'<br>
> kmk[2]: Entering directory<br>
> `/Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE'<br>
> kmk[2]: *** Exiting with status 2<br>
> kmk[1]: *** [pass_dlls_this] Error 2<br>
> kmk[1]: Leaving directory<br>
> `/Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE'<br>
> kmk: *** [pass_dlls_order] Error 2<br>
><br>
> It looks like the command line flags refer to 10.5's SDK and the build<br>
> process ends up confused about which version of libSystem to link<br>
> against. Any help?<br>
><br>
> Nadav<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> vbox-dev mailing list<br>
> <a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>
> <a href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target="_blank">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a><br>
<br>
<br>
--<br>
Dr. Christian Pötzsch   --    <a href="http://www.sun.com/" target="_blank">http://www.sun.com/</a><br>
<br>
=================================================<br>
Sitz der Gesellschaft: Sun Microsystems GmbH,<br>
Sonnenallee 1, D-85551 Kirchheim-Heimstetten<br>
Amtsgericht München: HRB 161028<br>
Geschäftsführer: Thomas Schröder, Wolfgang Engels<br>
Vorsitzender des Aufsichtsrates: Martin Häring<br>
=================================================<br>
<br>
_______________________________________________<br>
vbox-dev mailing list<br>
<a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>
<a href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target="_blank">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Sincerely yours,<br>Nadav<br>
</div></div>