Murga-Projects Forums

Full Version: murgaLua-0.5.PREVIEW ... Out now
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
UPDATE ...

Find it here :

http://www.murga-projects.com/murgaLua/m...IEW.tar.gz

Cheers

================================================

Hi,

I haven't given you guys anything in a while, but ...

The truth is that I am in the middle of some complicated and troublesome code right now, so I am tidying up things to a point where I can do a preview release ... This will occur tomorrow, as I'll do a feature cut-off.

This is going to be a PREVIEW release, with very little documentation just so people can play with the new features before the full release.

It'll really just be the runtimes + some examples.

The features that I have cleaned up and put back in so far are :

  • New function "murgaLua.createFltkTimer()" - GREAT for really responsive animation and stuff.
  • New function "murgaLua.getHostOsName()" returns one of "linux", "windows" or "macos".
  • New function "murgaLua.sleep(miliseconds)" (reliable system level).
  • Fixed a few minor FLTK issues.
  • XML api additions (will document later).
  • convertFluidToMurguaLua fixes based on forum feedback.
    sleep).

I will post the package with Linux and Windows support tomorrow, and pass the source to iGame3d so he can post the Mac build shortly after.

I am not including the source until the final release as a few things are a bit of a mess.

Cheers
JohnM
And here are the Mac binaries by iGame3d ...

http://ig3d.homeip.net/murgalua05preview...sIntel.zip

PS : The version number on all these builds is incorrectly reported as 0.4.1 ...
Any feedback on this would be appreciated, for starters I want to state that the drawSleepTest.lua is really an example on how NOT to do things ...

Filtering for events can be risky unless you know exactly what to filter on, for instance I have just noticed that I have to add event "16" to line 3 on one of my Windows machines ... Otherwise the program exists right away.

Secondly, to keep the UI responsive I recommend using the murgaLua.createFltkTimer() control instead of the new sleep function (although the sleep function is pretty useful for other things).

I don't know when I'll make the new release, but I would hope to get a lot of feedback on this release and incorporate some new features, as well as fixes and my own new stuff before the full release.

Cheers
JohnM
initial reaction: I love the timer.
I was trying to think of a need for murgaLua.getHostOsName(). It could be very useful when combined with os.execute or io.popen.
I needed a sleep function in a program which requires a lot of delays in its data display. I replaced the "for loops" with murgaLua.sleep(miliseconds) and I could almost hear my Thinkpad 600 sigh with relief.

Now I can listen to uninterrupted radio on the web and run my program!

Thanks for murgaLua and the puppy linux forum,

Dan
Hi,
I've compiled and tested (quick and dirty) the PREVIEW at OSX 10.4 (PPC).
Compilation problem: OSX has no upx
Solution: build own from source or remark it at Makefile. Makefile seems to have problems with detection of OSX

First test of my own applications did not show any special problems...
Now I'd like to check the old OSX-Problem with SubWindows (not visible, Windows XP works) Big Grin

My special interest are the new timer-function for my RobotSimulator

Bye
Christian

chrimo Wrote:
I've compiled and tested (quick and dirty) the PREVIEW at OSX 10.4 (PPC).
Compilation problem: OSX has no upx
Solution: build own from source or remark it at Makefile. Makefile seems to have problems with detection of OSX

Umm, could you e-mail me the makefile output ? I assume you where doing "make macos" ?

Also, would you mind doing PPC builds for me in the future ?
I have someone doing Intel builds, but not PPC builds (I think you are the sole user).

chrimo Wrote:
First test of my own applications did not show any special problems...
Now I'd like to check the old OSX-Problem with SubWindows (not visible, Windows XP works) Big Grin

Might be worth doing a search in the FLTK forums about that issue ...

I am thinking of trying to get a second hand PPC Mac so I can test and build on macs ...

chrimo Wrote:
My special interest are the new timer-function for my RobotSimulator

Do you have a homepage for that project that I can link to ?

Cheers
JohnM

Hi John,
I try to give you all informations later this night, when I'm at $HOME Big Grin

Cheers
Bye
Christian
Hi John,
after a very long birtday party, I'm now back and try to give you some more informations about murgaLua-0.5-pre at OSX 10.4.10 (PPC)...

make maosx output:

$>make macos
sh ../tools/embedLuaSocket.sh
sh ../tools/embedMurgaLuaLib.sh
make ../bin/murgaLua PLAT=macos
make[1]: `../bin/murgaLua' is up to date.
strip ../bin/murgaLua
../tools/upx --lzma ../bin/murgaLua
../tools/upx: ../tools/upx: cannot execute binary file
make: *** [macos] Error 126


As you see, make tries to execute UPX-Tools, while operating system is not correctly detected...

$(PLATS) :
        sh ../tools/embedLuaSocket.sh
        sh ../tools/embedMurgaLuaLib.sh
        $(MAKE) $(TARGET) PLAT=$@
        strip $(TARGET)$($@EXT)

ifeq ($@,macos)
        @echo "MacOS UPX not available, pack under Linux"
else
        echo $(PLAT)
        #../tools/upx$($@EXT) --lzma $(TARGET)$($@EXT)
endif

A simple output of the variable show the same effect (PLAT ==> none)
Just remarking the usage og UPX helps, but it is just a fake or bad workaround Big Grin


$>uname -a
Darwin m49svr4169g5.moccy.lan 8.10.0 Darwin Kernel Version 8.10.0: Wed May 23 16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC Power Macintosh powerpc

I haven't had time to made more investigations into this problem, but I try to find it out this week...

If I find some more time I can publish my robot-samples at this forum... Currently I have no own homepage available...

Bye Chrimo
Here's the Mac OS Intel Build At more stable location.

this is the sh file I use to build

Code:
#!/bin/sh
## murgaPATH is the location of your murgaLua source folder '/Path/to/murgaLua/'
export murgaPATH='/murgaLua/'

##  build steps as functions
muMakeLua(){
##    First we build lua
cd $murgaPATH
cd lua-5.*/src
make bsd;
make install;
}

muMakesqLite(){
## Followed by sqLite
cd $murgaPATH
cd sqlite-3.*/
./configure
make
make install
cd ..
}

muMakeFltk(){
## The final dependency is Fltk
cd $murgaPATH
cd fltk-1.1*
## --enable-xft (For linux)
./configure --disable-gl --enable-localjpeg --enable-localzlib --enable-localpng
make
make install


## But we also want a working copy of fluid for GUI generation
cp fluid/fluid ../bin/MacOs-Intel
cd ..
cd $murgaPATH
strip bin/MacOs-Intel/fluid
}

muMakeMurgaLua(){
## If there is a MacOS upx equivalent it would be nice to do something like
## upx --lzma bin/MacOs-Intel/fluid
## But assuming there isn't

## we next build murgaLua
make macos
cd bin
mv murgaLua MacOs-Intel
}

## Do the making of murgaLua for Mac OS X

muMakeLua
echo "Finished install lua. Thank you"

muMakesqLite
echo "Finished install sqLite. Thank you"

muMakeFltk
echo "Finished install Fltk. Thank you"

muMakeMurgaLua
echo "Finished building murgaLua. Thank you"

exit;
##END murgaLuamaker.sh

Pages: 1 2
Reference URL's