I want to build the toolkit for palm os but can't find any hint of how to do it. is there a makefile for palm or can i use one of the existing?
currently, there are only win and linux makefiles...
regards,david
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The toolkit was built using CodeWarrior for Palm 3. The way to do it is to create a project and include the files for common and Palm only. It's been a while since I did that, but it should work. Please let us know if there are problems.
Cheers,
Peter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the information.
I took the linux makefile and replaced win and linux dir with the palm dirs where they existed. the sml part compiles, but with xpt I have some problems.
most code makes #if statements to includes files for linux, windows, palm resp. epoc.
first general error is the use of an outdated sdk. the main include for palm is no longer Pilot.h but PalmOS.h and VoidHandle and Handle are replaced by MemHandle. some parts of the code already check for a define USE_SDK_35, but others do not.
If you are interested, i will send you a diff for the modifications needed.
now I am stuck in the smlobex part and don't know what to do.
xpt/bindings/obex/smlobex/iConstants.h includes network headers, but the switch is
#ifdef _WiN32
...
#else
...
the else seems to be linux includes. i can see neither epoc nor palm includes. i don't expect it will work if we just include the palm os network headers instead, as the code will be different...
is this part not Palm ready or what could i do here?
another detail i just stumbled over:
bindings/http/all/xpt-http.c defines header for epoc and windows, but neither linux nor palm.
it would be great if we could get syncml to compile for the palm again.
btw. are there any examples for using the toolkit?
regards,david
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i post now what i found out that has to be changed. it would be great if you could get the toolkit to work again.
i compiled with the new 2.2 version of the palmos-gcc toolchain and the 4.0 headers. the big distinction is between palmos prior to 3.5 and those after.
i sent the new makefiles and the output of diff to peter. note: the toolkit will not yet be compiled on palm, its just one step towards palmos...
--
xpt has the destinction between old palm code and new with a #ifdef USE_SDK_35 . use this in sml also.
Non-Fatal: Missing Linux and PalmOS type defines for HTML headers
Missing parameter p in newHmacString
xpt/bindings/http/all/xpt-http.c:194
Only distinction: #ifdef _WIN32 -> Missing __PALM_OS__ and __EPOC_OS__
xpt/bindings/obex/smlobex/iConstants.h
After fixing this, the rest of libiobex.so can't be build as struct sockaddr_in is not declared...
libobex.so can't be built as it needs obexbindingerror.h, which exists only in a win subdirectory
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-02-20
Question: Is this toolkit meant for compiling into my prc or is it meant for compiling into a Palm Shared Library?
Thx!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi everybody,
I want to build the toolkit for palm os but can't find any hint of how to do it. is there a makefile for palm or can i use one of the existing?
currently, there are only win and linux makefiles...
regards,david
Hi David,
The toolkit was built using CodeWarrior for Palm 3. The way to do it is to create a project and include the files for common and Palm only. It's been a while since I did that, but it should work. Please let us know if there are problems.
Cheers,
Peter
Thanks for the information.
I took the linux makefile and replaced win and linux dir with the palm dirs where they existed. the sml part compiles, but with xpt I have some problems.
most code makes #if statements to includes files for linux, windows, palm resp. epoc.
first general error is the use of an outdated sdk. the main include for palm is no longer Pilot.h but PalmOS.h and VoidHandle and Handle are replaced by MemHandle. some parts of the code already check for a define USE_SDK_35, but others do not.
If you are interested, i will send you a diff for the modifications needed.
now I am stuck in the smlobex part and don't know what to do.
xpt/bindings/obex/smlobex/iConstants.h includes network headers, but the switch is
#ifdef _WiN32
...
#else
...
the else seems to be linux includes. i can see neither epoc nor palm includes. i don't expect it will work if we just include the palm os network headers instead, as the code will be different...
is this part not Palm ready or what could i do here?
another detail i just stumbled over:
bindings/http/all/xpt-http.c defines header for epoc and windows, but neither linux nor palm.
it would be great if we could get syncml to compile for the palm again.
btw. are there any examples for using the toolkit?
regards,david
Hi David,
That would be great if you could forward us the new makefiles.
I apologize for the problems with the Palm - we only built for PalmOS 3.x (I think we didn't even do 3.5, but I'm not sure).
Any changes needed to get this to work with Palm and Linux would be appreciated.
Cheers,
Peter
i post now what i found out that has to be changed. it would be great if you could get the toolkit to work again.
i compiled with the new 2.2 version of the palmos-gcc toolchain and the 4.0 headers. the big distinction is between palmos prior to 3.5 and those after.
i sent the new makefiles and the output of diff to peter. note: the toolkit will not yet be compiled on palm, its just one step towards palmos...
--
xpt has the destinction between old palm code and new with a #ifdef USE_SDK_35 . use this in sml also.
#ifdef USE_SDK_35
#include <PalmOS.h>
#include <PalmOSCompatibility.h>
#else
#include <Pilot.h>
#endif
sml/wsm/inc/wsm_sm.h:75
sml/lib/all/libutil.c:83
sml/wsm/palm/wsm_sm.c:65
PalmOSCompatibilty.h gives warnings about redefining basic types when included multiple times.
Missing #include <define.h> inserted.
xpt/manager/inc/xptport.h
Non-Fatal: Missing Linux and PalmOS type defines for HTML headers
Missing parameter p in newHmacString
xpt/bindings/http/all/xpt-http.c:194
Only distinction: #ifdef _WIN32 -> Missing __PALM_OS__ and __EPOC_OS__
xpt/bindings/obex/smlobex/iConstants.h
After fixing this, the rest of libiobex.so can't be build as struct sockaddr_in is not declared...
libobex.so can't be built as it needs obexbindingerror.h, which exists only in a win subdirectory
Question: Is this toolkit meant for compiling into my prc or is it meant for compiling into a Palm Shared Library?
Thx!