[KDE/Mac] apple-gcc42-devel
Orville Bennett
illogical1 at gmail.com
Wed Mar 4 14:19:13 CET 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mar 4, 2009, at 3:46 AM, Janus wrote:
> 2009/3/3 Orville Bennett <illogical1 at gmail.com>:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>>
>> On Mar 3, 2009, at 4:24 AM, Janus wrote:
>>
>>> 2009/3/3 Janus <janus at rtfm.org.ar>:
>>>> 2009/3/3 Orville Bennett <illogical1 at gmail.com>:
>>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>>> Hash: SHA1
>>>>>
>>>>>
>>>>> On Mar 2, 2009, at 4:06 PM, Janus wrote:
>>>>> snip
>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Bored with the progress on ticket 16666 on macports' trac I
>>>>>>>>>>> uploaded
>>>>>>>>>>> my own gcc 4.2 port. This should, after some tweaking, help
>>>>>>>>>>> people on
>>>>>>>>>>> 10.4 compile kde4.
>>>>>>>>>>>
>>>>>>>>>>> Needs testers obviously. If you'd like to help reply here.
>>>>>>>>>>
>>>>>>>>>> Well, I am testing everything, so one more cannot hurt :)
>>>>>>>>>> Please, let me know where it such port.
>>>>>>>>> sudo port sync
>>>>>>>>> sudo port uninstall apple-gcc42
>>>>>>>>> sudo port install apple-gcc42
>>>>>>>>>
>>>>>>>>> Then we'll need to do some more "stuff".
>>>>>>>>> If I could meet you on IRC we could work out the kinks in real
>>>>>>>>> time
>>>>>>>>> there (after 7 p.m. EST?).
>>>>>>>>>
>>>>>>>>
>>>>>>>> Mmm.. sorry, I am in France: "7 p.m. EST" is 1 a.m. here, and
>>>>>>>> tomorrow
>>>>>>>> I should work :)
>>>>>>>> Well, I just did a clean installation of macports, so, I will
>>>>>>>> start
>>>>>>>> doing the "port install apple-gcc42" and telling you how it
>>>>>>>> was.
>>>>>>> SORRY. MY MISTAKE.
>>>>>>> That should be
>>>>>>> sudo port install apple-gcc42-devel
>>>>>>> note the -devel at the end. That's important :-)
>>>>>>>
>>>>>>> So if you've already installed (or are currently installing)
>>>>>>> apple-
>>>>>>> gcc42 do :
>>>>>>> 'sudo port clean --all apple-gcc42'
>>>>>>> 'sudo port uninstall apple-gcc42'
>>>>>>> 'sudo port install apple-gcc42-devel'
>>>>>>
>>>>>> done.
>>>>> Now use the uninstallation script provided with the xcode 2.5
>>>>> dmg to
>>>>> uninstall xcode 2.5 from you're machine.
>>>>
>>>> In the dmg I didn't find any uninstaller.
>>>> In /Developer, I have 2 at /Developer/Library:
>>>> uninstall-developer-folder and uninstall-devtools. Should I use one
>>>> of
>>>> them?
>>>
>>> I used uninstall-devtools and it works as expected (I think)
>>>
>>>>> Then delete /Developer if it's still there.
>>>>> Then restart the machine.
>>>>> Then reinstall Xcode 2.5 (yes, reboot first)
>>>
>>> Done.
>>> qcgs-computer-batc:~ janus$ gcc --version
>>> powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc.
>>> build 5370)
>>> Copyright (C) 2005 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.
>>>
>>> qcgs-computer-batc:~ janus$ gcc-4.2 --version
>> muahah!
>> *ahem*
>> Now for the magic:
>> sudo vi /opt/local/share/macports/Tcl/port1.0/portconfigure.tcl
>> and change
>> "darwin 8" { set compiler gcc-4.0 } to "darwin 8" { set compiler
>> apple-
>> gcc-4.2 }
>>
>> then find the line 'apple-gcc-4.0 {'
>>
>> and either before or after it add the following.
>>
>>
>> apple-gcc-4.2 {
>> switch -exact ${type} {
>> cc { set ret ${prefix}/bin/gcc-4.2 }
>> objc { set ret ${prefix}/bin/gcc-4.2 }
>> cxx { set ret ${prefix}/bin/g++-4.2 }
>> cpp { set ret ${prefix}/bin/cpp-4.2 }
>> }
>> }
>>
>>
>> I just made that up btw.
>> Not quite sure if it does what I think it does (but we'll find
>> out :-D)
>>
>> After all that's done, would you mind pastebinning your
>> portconfigure.tcl file?
>>
>
> Here is my portconfigure.tcl after the modifications:
> http://pastebin.com/m98d2e4f
One more thing: after the line:
apple-gcc-4.0 { set name "MacPorts Apple gcc 4.0" }
please add
apple-gcc-4.2 { set name "MacPorts Apple gcc 4.2" }
then edit /opt/local/var/macports/sources/rsync.macports.org/release/
ports/_resources/port1.0/group/kde4-1.0.tcl and change
configure.compiler gcc-4.2
to
configure.compiler apple-gcc-4.2
Once you've done that and saved you _should_ be able to compile kde.
Hopefully.
Maybe. :-)
>
> --
> Alejandro Díaz-Caro
> PhD Student
> Laboratoire d'Informatique de Grenoble
> http://membres-liglab.imag.fr/diazcaro
> _______________________________________________
> kde-mac at kde.org
> List Information: https://mail.kde.org/mailman/listinfo/kde-mac
> KDE/Mac Information: http://techbase.kde.org/index.php?title=Projects/KDE_on_Mac_OS_X
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAkmuf9EACgkQ2yWVgjgEOKTH0ACgs8yGhrfuWiZwCAxMBorWtCg+
AiwAoLjMwR619G8+DN7CZHv6uWhEW9yV
=fDOR
-----END PGP SIGNATURE-----
More information about the kde-mac
mailing list