<div dir="ltr"><div><div>$ uname -a</div><div>Darwin nadav.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov  3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386</div><div><br></div><div>It looks like the --target-arch=x86 has no effect on the command line flags passed to g++ for the Qt4 check. It fails in exactly the same way (with the same command line)</div>
<div><div><br></div><div><br></div></div><div class="gmail_quote">On Mon, Mar 8, 2010 at 11:59 AM, Christian Pötzsch <span dir="ltr"><<a href="mailto:Christian.Poetzsch@sun.com" target="_blank">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>
to be honest, we didn't have a build box for the 64 bit OSE version. I'm still not sure what version of Snow Leopard you are use. Can you post the output of uname -a. You could also try the --target switch from configure like this: --target-arch=x86<br>


<br>
Thanks<br>
Christian<div><div></div><div><br>
<br>
On 3/8/10 7:49 PM, Nadav Samet wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
Hi Christian,<br>
<br>
I am trying to use the binary of Qt4 from Nokia, and again I am hitting<br>
this 32/64 bit issue:<br>
<br>
$ ./configure --disable-hardening --with-openssl-dir=/opt/local<br>
--with-qt4-dir=/usr<br>
Checking for environment: Determined build machine: darwin.x86, target<br>
machine: darwin.x86, OK.<br>
Checking for kBuild: found, OK.<br>
Checking for Darwin version: found version 10.6 (SDK:<br>
/Developer/SDKs/MacOSX10.5.sdk), OK.<br>
Checking for gcc: found version 4.2.1, OK.<br>
Checking for libIDL: found version 0.8.13, OK.<br>
Checking for ssl: found version OpenSSL 0.9.8m 25 Feb 2010, OK.<br>
Checking for libcurl: found version 7.16.3, OK.<br>
Checking for OpenGL support: enabled<br>
Checking for Qt4:<br>
   ** not found!<br>
<br>
I found the following at the end of configure.log:<br>
<br>
***** Checking Qt4 *****<br>
compiling the following source file:<br>
#include <cstdio><br>
#include <QtGlobal><br>
extern "C" int main(void)<br>
{<br>
   printf("found version %s", QT_VERSION_STR);<br>
#if QT_VERSION >= 0x040400<br>
   printf(", OK.\n");<br>
   return 0;<br>
#else<br>
   printf(", expected version 4.4.0 or higher\n");<br>
   return 1;<br>
#endif<br>
}<br>
using the following command line:<br>
g++ -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk<br>
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -g -O -Wall -o<br>
/Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/.tmp_out<br>
/Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/.tmp_src.cc<br>
"-F/Library/Frameworks -lpthread<br>
-I/Library/Frameworks/QtCore.framework/Headers -framework QtCore"<br>
In file included from<br>
/Library/Frameworks/QtCore.framework/Headers/QtGlobal:1,<br>
                  from<br>
/Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/.tmp_src.cc:2:<br>
/Library/Frameworks/QtCore.framework/Headers/qglobal.h:288:2: error:<br>
#error "You are building a 64-bit application, but using a 32-bit<br>
version of Qt. Check your build configuration."<br>
<br>
On Mon, Mar 8, 2010 at 1:58 AM, Christian Pötzsch<br></div></div><div><div></div><div>
<<a href="mailto:Christian.Poetzsch@sun.com" target="_blank">Christian.Poetzsch@sun.com</a> <mailto:<a href="mailto:Christian.Poetzsch@sun.com" target="_blank">Christian.Poetzsch@sun.com</a>>> wrote:<br>
<br>
    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>
<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<br>
    <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>
     ><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>
     ><br>
    /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/obj/VBoxRT/VBoxRT.dylib<br>
     >  -filelist<br>
     ><br>
    /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/obj/VBoxRT/VBoxRT.rsp<br>
     >    -liconv<br>
     ><br>
    /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/lib/SUPR3.a<br>
     ><br>
     ><br>
    /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/lib/VBox-liblzf.a<br>
     >   -lz<br>
     ><br>
    /Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/lib/VBox-kStuff.a<br>
     ><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>
     ><br>
    [/Users/thesamet/Development/no_backup/VirtualBox-3.1.4_OSE/out/darwin.x86/release/obj/VBoxRT/VBoxRT.dylib]<br>
     > Deleting file<br>
     ><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<br>
    build<br>
     > process ends up confused about which version of libSystem to link<br>
     > against. Any help?<br>
     ><br>
     > Nadav<br>
     ><br>
     ><br>
     ><br>
     > _______________________________________________<br>
     > vbox-dev mailing list<br></div></div>
     > <a href="mailto:vbox-dev@virtualbox.org" target="_blank">vbox-dev@virtualbox.org</a> <mailto:<a href="mailto:vbox-dev@virtualbox.org" target="_blank">vbox-dev@virtualbox.org</a>><div><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></div>
    <a href="mailto:vbox-dev@virtualbox.org" target="_blank">vbox-dev@virtualbox.org</a> <mailto:<a href="mailto:vbox-dev@virtualbox.org" target="_blank">vbox-dev@virtualbox.org</a>><div><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>
<br>
--<br>
Sincerely yours,<br>
Nadav<br>
<br>
<br>
<br>
_______________________________________________<br>
vbox-dev mailing list<br>
<a href="mailto:vbox-dev@virtualbox.org" target="_blank">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>
</div></blockquote><div><div></div><div>
<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" target="_blank">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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sincerely yours,<br>Nadav<br>
</div></div>