Help needed getting started
Jean-Michel
jmc.bruck at orange.fr
Sun May 17 17:33:56 BST 2020
Hi Dave,
> On 17 May, Dave Lambley via oslib-user <oslib-user at lists.compton.nu> wrote:
>>> [...] I can also attach the code I have (if this is allowed) or upload it
>>> somewhere. I have looked at the !Dustbin demo app but obviously I am
>>> still doing something wrong. If there is another example app which uses
>>> toolbox + OSLib + Shared Makefiles this might also help me to find the
>>> error.
>> I suspect the errors you see aren't errors as such, but merely warnings. It
>> appears to succeed without errors the second time because "make" realises
>> nothing has changed, so does not attempt to recompile.
>> I think you may be pulling in two header files which conflict. If you can
>> upload the code somewhere, I could take a look. You could copy-paste it in
>> to https://gist.github.com/
> Thanks for the fast answer, I have uploaded the main file here:
> https://gist.github.com/gerbracht/f3bdb3102bcb28b3cf1bbee6b46fb4bd
> My makefile looks like this:
> COMPONENT = !HTTPTest.!RunImage
> OBJS = main
> CINCLUDES = -IC:,OSLibSupport:,OSLib:
> LIBS = OSLibSupport:o.OSLibSupport32 OSLib:o.OSLib32 o.HTTPLib
> include CApp
Good idea to use DDE shared makefiles and Oslib, it works well.
These are the tools I use, not simple at start-up, there are a few rules.
shared makefiles can do a lot to simplify our work.
I struggled a lot to find the informations, if I can help ...
An error in your makefile: !RunImage is the TARGET
COMPONENT = !HTTPTest
TARGET = !RunImage
OBJS = main
CINCLUDES = -IC:,OSLibSupport:,OSLib:
LIBS = OSLibSupport:o.OSLibSupport32 OSLib:o.OSLib32 o.HTTPLib
include CApp
Yours Includes and library are correct.
If you want to build an application the best is to make a copy of the DDE
MinApp example, you will have a complete structure in order to install
your application and everything that does what is necessary in the
resources directory.
You just need to rename "minapp" in sprites, messages and! Run content.
In your code you need to prefix the headers from oslib support like for
oslib
#include "OSLibSupport:event.h"
Add a global variable
wimp_t gTaskHandle;
and use it in main_initialise(void):
gTaskHandle = toolbox_initialise(flags,.....
This variable must be added to wimp_close_down()
wimp_close_down(gTaskHandle);
Your test program can works....
Thanks for the GitHub link, I was able to recover your file. I do not
know. Can files be uploaded with! Netsurf.
good test.
--
Jean-Michel
More information about the oslib-user
mailing list