Yake - Community Forum
May 13, 2008, 09:13:24 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to the YAKE Project Forums, the place for getting help, providing help and enjoying friendly discussions related to YAKE products.
 
   Home   Help Search Login Register  
Pages: [1] 2 3 ... 5   Go Down
  Print  
Author Topic: Building yake on linux  (Read 4795 times)
cdkeito
Sr. Member
****
Posts: 335


View Profile WWW
« on: December 12, 2007, 07:31:14 PM »

hi,

at the moment i've gather almost all the deps with the following procedure (there is all ?)
only problem at the moment is to compile luabind: either the ones in yake-deps.0.7_lastver and the cvs have errors
(cvs)it report error on line 723 for object.hpp (undefined object, using adl::object = mess)

Done (working on date 16-12-2007)

EDIT: check my site for an updated version. (01/01/2008) (as i have time i'll update even the yake.deb there and even add a ogre.deb)
« Last Edit: January 01, 2008, 02:06:50 PM by cdkeito » Logged

psyclonist
Administrator
Hero Member
*****
Gender: Male
Posts: 2718



View Profile WWW
« Reply #1 on: December 12, 2007, 08:08:02 PM »

Sweet!  grin
Logged
cdkeito
Sr. Member
****
Posts: 335


View Profile WWW
« Reply #2 on: December 12, 2007, 08:50:19 PM »

the error with luabind or the pseudo script ?

(as i can, i'll search for versions applied this way,
for example there is a luabind deb, but it's 0.7 -> lua 5.0, so it's no good;
and a way to get automatically property tree ) ?
Logged

psyclonist
Administrator
Hero Member
*****
Gender: Male
Posts: 2718



View Profile WWW
« Reply #3 on: December 12, 2007, 09:04:57 PM »

The pseudo script, of course. Wink

Anyway, which compiler did you use to compile Luabind? I have successfully built Luabind several times on Debian with varying GCCs (3.4, 4.x).
Logged
cdkeito
Sr. Member
****
Posts: 335


View Profile WWW
« Reply #4 on: December 12, 2007, 09:34:23 PM »

i'll look for it tomorrow, now i'm on another so.
Logged

psyclonist
Administrator
Hero Member
*****
Gender: Male
Posts: 2718



View Profile WWW
« Reply #5 on: December 12, 2007, 09:56:17 PM »

i'll look for it tomorrow, now i'm on another so.
"so" ? (I don't understand. Smiley)
Logged
cdkeito
Sr. Member
****
Posts: 335


View Profile WWW
« Reply #6 on: December 13, 2007, 12:56:43 AM »

what it was the def for SO...
ah! you are right in english it is OS (you know: *nix, win, ...)...sorry
Logged

cdkeito
Sr. Member
****
Posts: 335


View Profile WWW
« Reply #7 on: December 13, 2007, 03:17:51 PM »

ok,
- updated the above pseudo script with versions
- updated the above pseudo script in a script  grin
- i'm using gcc 4.1.3
- i've played around with luabind:
the error was:
Code:
../luabind/object.hpp: In static member function ‘static void luabind::value_wrapper_traits<luabind::adl::call_proxy<ValueWrapper, Arguments> >::unwrap(lua_State*, const luabind::adl::call_proxy<W, A>&)’:
../luabind/object.hpp:723: error: ‘object’ was not declared in this scope
../luabind/object.hpp:723: error: expected `;' before ‘result’
../luabind/object.hpp:724: error: request for member ‘push’ in ‘luabind::<unnamed>::result’, which is of non-class type ‘boost::arg<0> ()()’
../luabind/object.hpp:724: error: request for member ‘interpreter’ in ‘luabind::<unnamed>::result’, which is of non-class type ‘boost::arg<0> ()()’
make[1]: *** [test_abstract_base.o] Error 1
make[1]: Leaving directory `/home/meg/yake/luabind/test'
make: *** [all] Error 2
now the code is:
Code:
#ifndef LUABIND_USE_VALUE_WRAPPER_TAG
template <class ValueWrapper, class Arguments>
struct value_wrapper_traits<adl::call_proxy<ValueWrapper, Arguments> >
#else
template<>
struct value_wrapper_traits<adl::call_proxy_tag>
#endif
{
    typedef boost::mpl::true_ is_specialized;

    template<class W, class A>
    static lua_State* interpreter(adl::call_proxy<W,A> const& proxy)
    {
        return value_wrapper_traits<W>::interpreter(*proxy.value_wrapper);
    }

    template<class W, class A>
    static void unwrap(lua_State* interpreter, adl::call_proxy<W,A> const& proxy)
    {
        //object result = const_cast<adl::call_proxy<W,A>&>(proxy);  //<<<<<<<<<<<<<<<<<<<<<<<<<
        //result.push(result.interpreter());                         //<<<<<<<<<<<<<<<<<<<<<<<<<
const_cast<adl::call_proxy<W,A>&>(proxy).push(interpreter);  //>>>my patch
    }
};
but now i'm getting a error in :
Code:
g++ test_abstract_base.o main.o -o test_abstract_base.exe -g -L/usr/include/lua5.1/lib -L../lib -lluabind -llualib -llua
/usr/bin/ld: cannot find -llualib
collect2: ld returned 1 exit status
make[1]: *** [test_abstract_base.exe] Error 1
rm test_abstract_base.o main.o
make[1]: Leaving directory `/home/meg/yake/luabind/test'
make: *** [all] Error 2
but lua5.1 doesn't have a liblualib51 !

edit: solved with bjam instead of make
« Last Edit: December 13, 2007, 05:03:17 PM by cdkeito » Logged

cdkeito
Sr. Member
****
Posts: 335


View Profile WWW
« Reply #8 on: December 13, 2007, 09:03:19 PM »

- see above post for how i've patched luabind, it's correct?
- see the first post for the script updated
in particular i've to patch there and there for includes directories ( for example: "Ogre.h"  -> <OGRE/Ogre.h> )

now i'm stuck at " Building ceguiOgreRendererAdapter "
Code:
plugin.cpp
/usr/include/CEGUI/elements/CEGUICheckbox.h:159: error: ‘CheckboxProperties’ has not been declared
/usr/include/CEGUI/elements/CEGUICheckbox.h:159: error: expected ‘;’ before ‘d_selectedProperty’
/usr/include/CEGUI/elements/CEGUIRadioButton.h:195: error: ‘RadioButtonProperties’ has not been declared
/usr/include/CEGUI/elements/CEGUIRadioButton.h:195: error: expected ‘;’ before ‘d_selectedProperty’
/usr/include/CEGUI/elements/CEGUIRadioButton.h:196: error: ‘RadioButtonProperties’ has not been declared
/usr/include/CEGUI/elements/CEGUIRadioButton.h:196: error: expected ‘;’ before ‘d_groupIDProperty’
/usr/include/CEGUI/elements/CEGUITitlebar.h:156: error: ‘TitlebarProperties’ has not been declared
/usr/include/CEGUI/elements/CEGUITitlebar.h:156: error: expected ‘;’ before ‘d_dragEnabledProperty’
...
perhaps it's missing a include same where... some hints Huh

only 3 modules left: this, inputOgreOIS and graphicsOgre.

EDIT:
- updated the above script
- i'm patching for -lOgreGUIRenderer to -lCEGUIOgreRenderer (correct ?)
- yake debug "all" compiled, the only module left out is this (Building ceguiOgreRendererAdapter) and storing yake under /user/include & /usr/lib

PS: an idea: since cegui, at today, isn't the only best gui out there, why not let it out of yake in a completely separate module (or add a option in config.lua to add or not it) ?
« Last Edit: December 14, 2007, 05:27:24 PM by cdkeito » Logged

cdkeito
Sr. Member
****
Posts: 335


View Profile WWW
« Reply #9 on: December 14, 2007, 05:44:34 PM »

above post updated! read that first...

+ to make a deb file, i'll add makefile patching (to add a new target)
but instead of a pre-install script inside the deb i'll let the one above out, as it need attention and fine tuning by the user (and it need to be run only the first time, at the right time there will an update script)
« Last Edit: December 15, 2007, 01:15:32 PM by cdkeito » Logged

psyclonist
Administrator
Hero Member
*****
Gender: Male
Posts: 2718



View Profile WWW
« Reply #10 on: December 15, 2007, 02:50:22 PM »

PS: an idea: since cegui, at today, isn't the only best gui out there, why not let it out of yake in a completely separate module (or add a option in config.lua to add or not it) ?
My thoughts exactly! We'll do that in .8, i.e. in SVN trunk.
Logged
cdkeito
Sr. Member
****
Posts: 335


View Profile WWW
« Reply #11 on: December 15, 2007, 07:56:06 PM »

any idea on the problem with "Building ceguiOgreRendererAdapter" ?
in mean time i'll patch things to let him out...sad

ah! another thing: do you think to make a repository for this ? or else i'll do it (if i've space on the host...)
Logged

cdkeito
Sr. Member
****
Posts: 335


View Profile WWW
« Reply #12 on: December 16, 2007, 05:51:49 PM »

the above script is complete (minus the above problem):
it'll install required libs, setup them, download yake, patch it, compile it, make a deb pkg, install it.
i'll provide here the deb pkg for your testing (you'll need only to run the script for deps)
Logged

psyclonist
Administrator
Hero Member
*****
Gender: Male
Posts: 2718



View Profile WWW
« Reply #13 on: December 16, 2007, 06:59:32 PM »

Very cool! I will give it a try over the next few days!
Logged
cdkeito
Sr. Member
****
Posts: 335


View Profile WWW
« Reply #14 on: December 16, 2007, 10:31:08 PM »

ALERT: before moving hands read every thing in this thread.

EDIT: for an updated script, see my site. if i've time, i'll add a Ogre 1.4.5 for ubuntu.

ok, i've updated the script with the last things, letting out the luabind patch as above.

it's been made for a ubuntu 7.10, but, with little modding, it could run on every *nix (your work, i can only help, but it's so simple ...) (ALERT: checkinstall will auto install the deb ! use --install=no if you don't want this )

Only for tester here you could get the deb compiled by me, no warranty given: let me know if it run, if you like/dislike some thing. ONE things, pretty important, because of those miscellaneous libs, i haven't set deps for it, you MUST run the above script until the marked line.

@psy: you've to check the description used (see description-pak in the script)

@ubuntu users: ubuntu reposities don't have the ogre-plugins-cgprogrammanager, and ogre is version 1.4.3 (the above pkg is compiled this way)

@debians users: debian reposities (Sid) have ogre 1.4.5 and the ogre-plugins-cgprogrammanager (add this to the script)
here the 1.4.5 debs for Debian (from Sid repository) (don't mix with those from Ubuntu):
Code:
http://ftp.it.debian.org/debian/pool/main/o/ogre/libogre14_1.4.5-3_amd64.deb
http://ftp.it.debian.org/debian/pool/main/o/ogre/libogre14-dbg_1.4.5-3_amd64.deb
http://ftp.it.debian.org/debian/pool/main/o/ogre/libogre-dev_1.4.5-3_amd64.deb
http://ftp.it.debian.org/debian/pool/main/o/ogre/libceguiogre14_1.4.5-3_amd64.deb
http://ftp.it.debian.org/debian/pool/main/o/ogre/libceguiogre14-dbg_1.4.5-3_amd64.deb
http://ftp.it.debian.org/debian/pool/main/o/ogre/libceguiogre-dev_1.4.5-3_amd64.deb
http://ftp.it.debian.org/debian/pool/contrib/o/ogre-contrib/ogre-plugins-cgprogrammanager_1.4.5-1_amd64.deb
http://ftp.it.debian.org/debian/pool/main/o/ogre/ogre-tools_1.4.5-3_amd64.deb
http://ftp.it.debian.org/debian/pool/contrib/o/ogre-contrib/ogre-plugins-cgprogrammanager-dbg_1.4.5-1_amd64.deb

if you want to compile Ogre add this after the deps-script:
Code:
apt-get install libdevil* libfreetype* libzzip* zziplib* libpng12* libfreeimage* libjpeg62* libmng* libtiff4* zlib1g* x11proto-xf86vidmode-dev libxrandr* libXxf86vm* libxt6 libxt-dev libxaw* libpcre3 libpcrecpp0 freeglut3 libglut3
download the source packs
./bootstrasp (only if is from the cvs)
./configure --disable-ogre-demos --prefix='/usr' (prefix colud give problems with libtool, i've to check this)
make
checkinstall --install=no

ALERT: by defaul Ogre will install on /usr/local/, prefix will adjust that on the standard /usr/
« Last Edit: December 18, 2007, 01:52:41 PM by cdkeito » Logged

Pages: [1] 2 3 ... 5   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!