Sunday, March 19, 2006

 

Eclipse 3.1.2 running on Intel Mac

The script in http://forum.osx86project.org/index.php?showtopic=4601&hl=eclipse is useful for 3.1.1. Here's the update to make it work with 3.1.2

#!/bin/sh

tar zxvf eclipse-SDK-3.1.1-macosx-carbon.tar.gz
mkdir tmp
cd tmp
cp ../eclipse/plugins/org.eclipse.rcp.source.macosx.carbon.ppc_3.1.2/src/org.eclipse.swt.carbon.macosx.ppc_3.1.1/src.zip .
unzip -x src.zip
make -f make_macosx.mak
cp ../eclipse/plugins/org.eclipse.swt.carbon.macosx.ppc_3.1.1.jar .
jar uvf ../eclipse/plugins/org.eclipse.swt.carbon.macosx.ppc_3.1.1.jar libswt-carbon-3139.jnilib
jar uvf ../eclipse/plugins/org.eclipse.swt.carbon.macosx.ppc_3.1.1.jar libswt-pi-carbon-3139.jnilib
jar uvf ../eclipse/plugins/org.eclipse.swt.carbon.macosx.ppc_3.1.1.jar libswt-webkit-carbon-3139.jnilib

cp libswt-pi-carbon-3139.jnilib /usr/local/eclipse-3.1.2/configuration/org.eclipse.osgi/bundles/63/1/.cp/
 

Saturday, March 18, 2006

 

A working combination: JDK 5, Eclipse 3.2, Maven 2

Finally got my development environment setup on the Intel Mac, here's some findings:

1. Eclipse 3.1.2 does not run properly, however 3.2 runs OK.  Guess I have to live without some of the handy plugins for a while (JettyLauncher, etc)
2. The setJVM.sh script on macoxhint WORKS.  I used it to make maven to use the JDK 1.5 environment.
3. However, even with setJVM.sh, you still can't get Eclipse to compile stuff using JDK 1.5.  You have to manually go to the workspace setting -> available JRE config, and the check on the JDK 1.5 option.
4. Maven 2 requires the a block to enable JDK 1.5 compilation, as follows:

   
     
       
          org.apache.maven.plugins
          maven-compiler-plugin
         
            1.5
            1.5
         
       
     
   


Side note on maven
- maven eclipse:eclipse now supports an option to download source jars if it's available.  Nice!

Sunday, March 12, 2006

 

Finally got horde installed correctly

Here's how I configured horde with MySQL 5.

1. Open up your horde website.  you should be already logged in.  By default horde makes everyone as Administrator.

2. Setup->Database
Choose your DB driver.  If you are using MySQL 5+, beware that you cannot choose the MySQL Improved DB driver in Horde->Setup->Database

save the preference

3. Setup->Authentication
Choose SQL Authentication, keep everything else as default.

save the preference then logout.  You should now see the horde logon screen (and you cannot logon.  don't panic.  it's in step 4.)

4. execute the following in mysql shell.

insert into horde_users (user_uid, user_pass) values ('Administrator', md5('password'));

now you should be able to login to horde!

You may then continue with the rest of the configuration.

 

fink - gettext - not working for Intel Mac

I need to enable gettext for a PHP application.  After doing some research, I tried to add --with-gettext=/sw as ./configure parameter, hoping that it will use the gettext package that fink installed for me.  However, it doesn't work.  configure was able to find the header file, but complain that the library does not exist.

After some more research, I tried the following:

gcc -L/sw/lib -lintl

and a-ha, it failed.  It says that the arch for the lib is ppc, not i386.

So, I guess fink is not working very well with this PPC to Intel transition yet, and I have to to compile everything from scratch!

fine....

This page is powered by Blogger. Isn't yours?