Difference between revisions of "MySQL on Zaurus"
From Lazarus wiki
Jump to navigationJump to searchm (removed double header) |
Jwdietrich (talk | contribs) |
||
(3 intermediate revisions by 2 users 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/ | + | 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]] | ||
+ | [[Category: Operating Systems and Platforms]] | ||
+ | [[Category:Linux]] |
Latest revision as of 20:20, 20 April 2013
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