LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1036|回复: 4

[分享] 原来Slackware做Palm开发是有现成的包裹的

[复制链接]
发表于 2005-7-16 10:51:44 | 显示全部楼层 |阅读模式
http://www.linuxpackages.net/search_view.php?cstat=12486
这里的三个Package装好
然后再到palm开发者主页下一个sdk包,放到/opt/palmdev/,包的名字应该是sdk-xxx
然后运行一遍palmdev-prep
应该就可以开始写程序了
发表于 2005-7-16 11:01:02 | 显示全部楼层
能在字符界面下开发嘛?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-7-16 11:07:35 | 显示全部楼层
当然可以
测试文件
[php]
//hello.c
#include <almOS.h>

// ---------------------------------------------------------------------
// PilotMain is called by the startup code and implements a simple event
// handling loop.
// ---------------------------------------------------------------------
UInt32 PilotMain( UInt16 cmd, void *cmdPBP, UInt16 launchFlags )
{
    EventType event;


    if (cmd == sysAppLaunchCmdNormalLaunch) {

        //  Display a string.
        WinDrawChars( "Hello, world!", 13, 55, 60 );

        //  Main event loop:
        do {
            //  Doze until an event arrives.
            EvtGetEvent( &event, evtWaitForever );

            //  System gets first chance to handle the event.
            SysHandleEvent( &event );

            //  Normally, we would do other event processing here.

        // Return from PilotMain when an appStopEvent is received.
        } while (event.eType != appStopEvent);
    }
    return;
}
[/php]

编译方法:

  1. m68k-palmos-gcc hello.c -o hello
  2. m68k-palmos-obj-res hello
  3. build-prc hello.prc "Hello, World" WRLD *.hello.grc
复制代码

以上示范程序与编译方法转载自Linux Palm Developer's Quick Start Guide,Jim Weller著(http://www.jimweller.net/palmdevqs/)
回复 支持 反对

使用道具 举报

发表于 2005-7-16 11:10:34 | 显示全部楼层
太好了,下载试试看:)

以前在windows下觉得codewarrior很方便
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-7-16 11:15:28 | 显示全部楼层
当然比不上codewarrior...
否则人家卖几百美元做啥
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表