Yake - Community Forum
July 31, 2010, 06:09:25 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: News #2: Feel free to pester the members of the Community Support! Look out for blue stars! Smiley
 
   Home   Help Search Login Register  
Pages: 1 2 [3] 4 5   Go Down
  Print  
Author Topic: Building yake on linux  (Read 31383 times)
R3N3G4D3
Newbie
*
Posts: 11


View Profile
« Reply #30 on: January 31, 2008, 05:35:48 PM »

I have those libraries too, but luabind that the script gets refuses to compile with them. I tried getting libluabind0 from Synaptic, and using make with "-lluabind" library flag, but that causes the same error.
Logged
cdkeito
Sr. Member
****
Posts: 381


View Profile WWW
« Reply #31 on: January 31, 2008, 06:17:01 PM »

sorry, i can't reproduce the problem here.
have you tried last resort method like, clean all lua libs and reinstall?

or maybe they have updated some file from when i've got them, try checking dates. (EDIT:yes it is, they have patch there and there, later i'll try downloading it again and recompile it.)

EDIT: question: do you have exported those 3 variables before compiling? are they ok ?
« Last Edit: January 31, 2008, 06:19:15 PM by cdkeito » Logged

R3N3G4D3
Newbie
*
Posts: 11


View Profile
« Reply #32 on: January 31, 2008, 07:34:46 PM »

I tried removing all of lua 50 before, I'll try with all of it today (even 5.1). Not sure what you meant about the patch, do I need older version of luabind to compile?

And yes, I exported all 3 variables, even tried not exporting them to see that the errors are not the same, so the exports are fine.
Logged
psyclonist
Administrator
Hero Member
*****
Gender: Male
Posts: 2811



View Profile WWW
« Reply #33 on: January 31, 2008, 09:20:41 PM »

Which version of Luabind did you use?
Logged
R3N3G4D3
Newbie
*
Posts: 11


View Profile
« Reply #34 on: January 31, 2008, 10:40:12 PM »

I tried it with the latest one:
Code:
svn co https://luabind.svn.sourceforge.net/svnroot/luabind/trunk luabind
I'm not at my home pc to check now, but I remember subversion saying something that the luabind is 508th revision or something after the checkout finishes.
Logged
cdkeito
Sr. Member
****
Posts: 381


View Profile WWW
« Reply #35 on: February 01, 2008, 12:41:10 AM »

well, when i last compiled it was rev.503/4 (not sure) now is 508.
gotta check as i can, if can still compile.
« Last Edit: February 01, 2008, 11:52:16 AM by cdkeito » Logged

cdkeito
Sr. Member
****
Posts: 381


View Profile WWW
« Reply #36 on: February 01, 2008, 12:02:34 PM »

ok i got something that compile, the last rev is a mess so use:
svn co -r 505 https://luabind.svn.sourceforge.net/svnroot/luabind/trunk luabind

tests don't compile, there is a bad error.
src compile but only with make because of liblua.a

and i founded that it need more changes:
- in ./Jamfile : comment last line : build-project test
- in ./config : uncomment CONFIG and DNDEBUG lines
- in ./src/makefile delete "-g" from the command compile line (40)
- in ./luabind  : add #define NDEBUG

i didn't check rev 503 and 504, but till 502 or 501 (check release date) are prior to those new changes and perhaps without all this errors.
perhaps it'll be a good things to contact the luabind authors  or invite him here for responses...
« Last Edit: February 01, 2008, 04:39:39 PM by cdkeito » Logged

cdkeito
Sr. Member
****
Posts: 381


View Profile WWW
« Reply #37 on: February 01, 2008, 12:33:13 PM »

i'm tring to get help on the chat, but seems no one here,
they are saying that HEAD is 51 compatible
and if you look at
http://luabind.svn.sourceforge.net/viewvc/luabind/branches/build-system/
that is 501 !
so try it and let me know.

edit: tried 501 but bjam fails as over and make compile only the lib but not samples.
« Last Edit: February 01, 2008, 05:08:49 PM by cdkeito » Logged

cdkeito
Sr. Member
****
Posts: 381


View Profile WWW
« Reply #38 on: February 01, 2008, 12:43:16 PM »

try this one as last resort:

https://launchpad.net/ubuntu/+source/luabind
Logged

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



View Profile WWW
« Reply #39 on: February 01, 2008, 01:24:26 PM »

perhaps it'll be a good things to contact the luabind authors  or invite him here for responses...
I'm on the mailing list. It got a little bit more activity during the last few months. I'll have a look at the latest revision and report it. (And fix it if I can.)
Logged
cdkeito
Sr. Member
****
Posts: 381


View Profile WWW
« Reply #40 on: February 01, 2008, 04:20:47 PM »

i managed to compile a lua5.1.3 with liblualib .a and .so
using this patch:
https://dev.openwrt.org/browser/packages/lang/lua/patches/lua-5.1.1-so.patch?rev=5911

and adding to src/Makefile :
to CFLAGS : -fPIC
line after PKG_VERSION= 5.1.3

compile without problems just : make linux install

EDIT: i want to attach those Makefiles (renamed as .txt) but it blocked it...
« Last Edit: February 01, 2008, 04:33:43 PM by cdkeito » Logged

cdkeito
Sr. Member
****
Posts: 381


View Profile WWW
« Reply #41 on: February 01, 2008, 05:04:30 PM »

ok, now i've it compiling (trunk) , but ONLY the src to get the libluabind.a
- patched ./luabind/object.hpp like on page1 of this thread
- patched as post above #36

to compile test you need to add "-ldl" to ./src/makefile command compile line after "%.exe:"
but you return to the same error:
Code:
../luabind/class.hpp: In static member function ‘static void luabind::detail::convert_holder<HeldType, ConstHolderType>::apply(void*, void*) [with HeldType = boost::shared_ptr<base>, ConstHolderType = luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr]’:
../luabind/class.hpp:343:   instantiated from ‘static void (* luabind::detail::const_converter<HeldType>::apply(ConstHolderType*))(void*, void*) [with ConstHolderType = luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr, HeldType = boost::shared_ptr<base>]’
../luabind/class.hpp:1159:   instantiated from ‘void luabind::class_<T, X1, X2, X3>::init() [with T = base, X1 = boost::shared_ptr<base>, X2 = luabind::detail::unspecified, X3 = luabind::detail::unspecified]’
../luabind/class.hpp:860:   instantiated from ‘luabind::class_<T, X1, X2, X3>::class_(const char*) [with T = base, X1 = boost::shared_ptr<base>, X2 = luabind::detail::unspecified, X3 = luabind::detail::unspecified]’
test_held_type.cpp:156:   instantiated from here
../luabind/class.hpp:330: error: no matching function for call to ‘luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr(boost::shared_ptr<base>&)’
../luabind/class.hpp:132: note: candidates are: luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr()
../luabind/class.hpp:132: note:                 luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr(const luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr&)
../luabind/class.hpp: In static member function ‘static const void* luabind::detail::extract_underlying_const_type<UnderlyingT, HeldT>::extract(void*) [with UnderlyingT = base, HeldT = luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr]’:
../luabind/class.hpp:376:   instantiated from ‘static const void* (* luabind::detail::internal_const_holder_extractor<HeldType>::get_extractor(luabind::detail::type_<T>, ConstHolderType*))(void*) [with T = base, ConstHolderType = luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr, HeldType = boost::shared_ptr<base>]’
../luabind/class.hpp:370:   instantiated from ‘static const void* (* luabind::detail::internal_const_holder_extractor<HeldType>::apply(luabind::detail::type_<T>))(void*) [with T = base, HeldType = boost::shared_ptr<base>]’
../luabind/class.hpp:1159:   instantiated from ‘void luabind::class_<T, X1, X2, X3>::init() [with T = base, X1 = boost::shared_ptr<base>, X2 = luabind::detail::unspecified, X3 = luabind::detail::unspecified]’
../luabind/class.hpp:860:   instantiated from ‘luabind::class_<T, X1, X2, X3>::class_(const char*) [with T = base, X1 = boost::shared_ptr<base>, X2 = luabind::detail::unspecified, X3 = luabind::detail::unspecified]’
test_held_type.cpp:156:   instantiated from here
../luabind/class.hpp:295: error: no matching function for call to ‘get_pointer(luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr&)’
../luabind/class.hpp: In static member function ‘static void luabind::detail::internal_construct_holder<HeldType, T>::apply(void*, void*) [with HeldType = luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr, T = base]’:
../luabind/class.hpp:479:   instantiated from ‘static void (* luabind::detail::const_holder_constructor<HolderType>::get_const_holder_constructor(luabind::detail::type_<T>, ConstHolderType*))(void*, void*) [with T = base, ConstHolderType = luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr, HolderType = boost::shared_ptr<base>]’
../luabind/class.hpp:471:   instantiated from ‘static void (* luabind::detail::const_holder_constructor<HolderType>::apply(luabind::detail::type_<T>))(void*, void*) [with T = base, HolderType = boost::shared_ptr<base>]’
../luabind/class.hpp:1159:   instantiated from ‘void luabind::class_<T, X1, X2, X3>::init() [with T = base, X1 = boost::shared_ptr<base>, X2 = luabind::detail::unspecified, X3 = luabind::detail::unspecified]’
../luabind/class.hpp:860:   instantiated from ‘luabind::class_<T, X1, X2, X3>::class_(const char*) [with T = base, X1 = boost::shared_ptr<base>, X2 = luabind::detail::unspecified, X3 = luabind::detail::unspecified]’
test_held_type.cpp:156:   instantiated from here
../luabind/class.hpp:422: error: no matching function for call to ‘luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr(base*)’
../luabind/class.hpp:132: note: candidates are: luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr()
../luabind/class.hpp:132: note:                 luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr(const luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr&)
../luabind/class.hpp: In static member function ‘static const void* luabind::detail::extract_underlying_const_type<UnderlyingT, HeldT>::extract(void*) [with UnderlyingT = derived, HeldT = luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr]’:
../luabind/class.hpp:376:   instantiated from ‘static const void* (* luabind::detail::internal_const_holder_extractor<HeldType>::get_extractor(luabind::detail::type_<T>, ConstHolderType*))(void*) [with T = derived, ConstHolderType = luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr, HeldType = boost::shared_ptr<base>]’
../luabind/class.hpp:370:   instantiated from ‘static const void* (* luabind::detail::internal_const_holder_extractor<HeldType>::apply(luabind::detail::type_<T>))(void*) [with T = derived, HeldType = boost::shared_ptr<base>]’
../luabind/class.hpp:1159:   instantiated from ‘void luabind::class_<T, X1, X2, X3>::init() [with T = derived, X1 = base, X2 = boost::shared_ptr<base>, X3 = luabind::detail::unspecified]’
../luabind/class.hpp:860:   instantiated from ‘luabind::class_<T, X1, X2, X3>::class_(const char*) [with T = derived, X1 = base, X2 = boost::shared_ptr<base>, X3 = luabind::detail::unspecified]’
test_held_type.cpp:160:   instantiated from here
../luabind/class.hpp:295: error: no matching function for call to ‘get_pointer(luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr&)’
../luabind/class.hpp: In static member function ‘static void luabind::detail::internal_construct_holder<HeldType, T>::apply(void*, void*) [with HeldType = luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr, T = derived]’:
../luabind/class.hpp:479:   instantiated from ‘static void (* luabind::detail::const_holder_constructor<HolderType>::get_const_holder_constructor(luabind::detail::type_<T>, ConstHolderType*))(void*, void*) [with T = derived, ConstHolderType = luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr, HolderType = boost::shared_ptr<base>]’
../luabind/class.hpp:471:   instantiated from ‘static void (* luabind::detail::const_holder_constructor<HolderType>::apply(luabind::detail::type_<T>))(void*, void*) [with T = derived, HolderType = boost::shared_ptr<base>]’
../luabind/class.hpp:1159:   instantiated from ‘void luabind::class_<T, X1, X2, X3>::init() [with T = derived, X1 = base, X2 = boost::shared_ptr<base>, X3 = luabind::detail::unspecified]’
../luabind/class.hpp:860:   instantiated from ‘luabind::class_<T, X1, X2, X3>::class_(const char*) [with T = derived, X1 = base, X2 = boost::shared_ptr<base>, X3 = luabind::detail::unspecified]’
test_held_type.cpp:160:   instantiated from here
../luabind/class.hpp:422: error: no matching function for call to ‘luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr(derived*)’
../luabind/class.hpp:132: note: candidates are: luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr()
../luabind/class.hpp:132: note:                 luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr(const luabind::detail::you_need_to_define_a_get_const_holder_function_for_your_smart_ptr&)
make[1]: *** [test_held_type.o] Error 1

let me guess: they don't have updated the "test" 's code Huh

EDIT: from a little chat on their channel with a user, the only one of 7 talking, it's a common problem that test doesn't work, you could ignore it.
He said that there is a patch on the tracker in sourceforge to compile it on debian, but he was using 501.
« Last Edit: February 01, 2008, 05:29:45 PM by cdkeito » Logged

R3N3G4D3
Newbie
*
Posts: 11


View Profile
« Reply #42 on: February 01, 2008, 08:43:12 PM »

So which luabind to use? I tried 505 and made the changes you suggested (I assume the last one (./luabind) means ./luabind/luabind.hpp), and it compiled, will see how the rest of installation of yake will go.
Logged
psyclonist
Administrator
Hero Member
*****
Gender: Male
Posts: 2811



View Profile WWW
« Reply #43 on: February 01, 2008, 09:15:47 PM »

The revision I tested on Debian was 501. Newer revisions may work... or not.
Logged
R3N3G4D3
Newbie
*
Posts: 11


View Profile
« Reply #44 on: February 01, 2008, 11:30:11 PM »

Weird, using either rev 505 or 501, I now run into different error:
Code:
==== Building base ====
yakeMovable.cpp
yakeUniqueId.cpp
yakeUniqueName.cpp
yakeString.cpp
yakeParamHolder.cpp
yakeMimeTypeManager.cpp
yakeConfigFile.cpp
yakeLog.cpp
yakeException.cpp
yake.cpp
yakeStderrLog.cpp
yakeDataChunk.cpp
yakeLibrary.cpp
yakePCH.cpp
yakeFileLog.cpp
yakeMatrix3.cpp
yakeVector3.cpp
yakeQuaternion.cpp
yakeRand.cpp
yakeMath.cpp
yakeSimpleSpline.cpp
yakeMatrix4.cpp
yakeVolume.cpp
yakeRay.cpp
yakeSingleton.cpp
yakeSmartAssertHandlers.cpp
yakeSmartAssert.cpp
yakeSignals.cpp
yakeCriticalSection.cpp
yakeNativeLibrary.cpp
yakeDebug.cpp
yakeApplication.cpp
yakeTime.cpp
Linking base
/usr/bin/ld: cannot find -ldl-lm
collect2: ld returned 1 exit status
make[1]: *** [../../common/bin/libyake_base_d.so] Error 1
make: *** [base] Error 2
It seems that the error is because some file says "-ldl-lm" instead of "-ldl -lm" and ld thinks they're one library instead of 2, but I searched every single file on my computer and could not find anything that has "-ldl-lm" string inside of it. I thought it was one of the makefiles, but it seems not. Even tried yake rev 1907 just in case, same error. I'm really confused.
Logged
Pages: 1 2 [3] 4 5   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.074 seconds with 17 queries.