Difference between revisions of "MySQL on Zaurus"

From Free Pascal wiki
Jump to navigationJump to search
m (removed double header)
(category)
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
  ln -s /lib/libc.so.6 /usr/lib/libc.so
 
  ln -s /lib/libc.so.6 /usr/lib/libc.so
  
2 - To create this "libgcc.so" you need GCC on your zaurus, otherwise, just copy libgcc.so to your /usr/bin directory.
+
2 - To create this "libgcc.so" you need GCC on your zaurus, otherwise, just copy libgcc.so to your /usr/lib directory.
  
 
  mkdir /mnt/card/tmpdir   
 
  mkdir /mnt/card/tmpdir   
Line 14: Line 14:
 
3 - Finally, compile your program using:
 
3 - Finally, compile your program using:
 
  fpc -k-lgcc testdb.pp
 
  fpc -k-lgcc testdb.pp
 +
 +
[[Category:Databases]]

Revision as of 18:24, 8 October 2011

1 - Create symlinks:

ln -s /usr/lib/libmysqlclient.so.6 /usr/lib/libmysqlclient.so
ln -s /lib/libm.so.6 /usr/lib/libm.so
ln -s /lib/libc.so.6 /usr/lib/libc.so

2 - To create this "libgcc.so" you need GCC on your zaurus, otherwise, just copy libgcc.so to your /usr/lib directory.

mkdir /mnt/card/tmpdir  
cd /mnt/card/tmpdir  
ar x /mnt/card/gcc/lib/gcc-lib/arm-linux/2.95.2/libgcc.a  
gcc -shared -fno-shared-data -o libgcc.so /mnt/card/tmpdir/*.o
cp libgcc.so /usr/lib

3 - Finally, compile your program using:

fpc -k-lgcc testdb.pp