[haiku-appserver] Re: private development

  • From: Adi Oanca <adioanca@xxxxxxxxxxxxxx>
  • To: haiku-appserver@xxxxxxxxxxxxx
  • Date: Thu, 24 Mar 2005 10:37:25 +0200

Hi,

        I'm not that lazy as DW :-) so I don't use BeIDE for compiling 
app_server.
My setup is easy:
mkdir ~/srv
mkdir ~/srv/lib
./configure
cd .../servers/app/server
jam
cp .../distro/.../servers/app_server ~/srv
cp .../distro/.../lib(IIRC)/libappserver.so ~/srv/lib
        [same for libz.so and libpng.so]
[often you only need to copy app_server, rarely libappserver.so,
        and only one time libz.so and libpng.so]
cd ~/srv
./app_server

the client app is no more than a BeIDE project with MyApp, MyWin, MyView 
objects, MyView added to MyWin,
4 instances of MyWin in BApplication::ReadyToRun().
* There is a catch however, I edited project settings so that include paths 
point to trunk/headers/[os/cpp/posix] ONLY,
lib paths to .../distro/.../system/lib (for libopenbeos.so), then removed 
libbe.so from my project and added
libopenbeos.so. That's it. Now compile this project an run. (Note that 
RUN_WITHOUT_REGISTRAR must be defined for
easier testing) (NOTE2: libroot.so must be R5's one, so leave it into project. 
Same goes for the library path in Project settings)

I don't mind putting my testapp into repository, but I don't see the point. 
It's just a simple main.cpp file with lots of
commented lines and a few basic objects. Maybe we should put a simple test app, 
but we still have to write a howto in order
to make it run under haiku app_server...


bye,
Adi.

Stephan Assmus wrote:
> Hello gang,
> 
> with this mail, I want to encourage that we reduce the private 
> development in private build systems, and start using the Haiku 
> repository more. For me as a newbie to app_server development, it is 
> quite irritating. I would really like whatever test applications you 
> guys are using, to be checked into src/tests/servers/app/, I have put 
> the "painter" test there already. Up until now, I actually never 
> succeeded running the Haiku app_server, let alone running a test 
> BApplication that uses it. I'm just trying to say that it would 
> encourage digging into app_server development more, if there was 
> already a clean way to test it or to start writing own tests from. With 
> the recent achievements of Michael Lotz, I think there is the potential 
> of gaining some momentum, and maybe we can even show something at 
> BeGeistert. DarkWyrm has posted BeIDE project files at one time, but 
> when I build app_server this way, I didn't get very far, because the 
> executable was crashing right after launch. When I recently tried it 
> again, the build system seemed to be broken somehow, I didn't have time 
> to investigate more. Anyway, if you are interested in help, I would 
> suggest you make it as easy for people to get up to speed with the 
> current state of development as possible, and from my own experience 
> with "digging in", I would welcome it, if there would be test 
> applications in the Haiku tree. I mean, so that what gets build by the 
> jam system is actually the real thing, with everything it needs to run 
> for testing it. What do you think?
> 
> Best regards,
> -Stephan
> 
> 
> 


Other related posts: