Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 24 Sep 2006
Offline Last Active Jul 28 2012 12:10 PM

Topics I've Started

Linux x86-64 not loading or saving bytecode correctly.

23 July 2012 - 05:05 PM

I'm using Angelscript 2.22.1 in a game I'm porting to Linux.. The release game distributes JUST the compiled angelscript byte code, however this isn't working correctly on x86_64 linux. Here is the breakdown of what it's doing.

32bit linux loads the bytecode generated by the 32bit linux game binary,, does NOT load the bytecode generated by the 64bit binary
64bit linux does not load either bytecode correctly.

Does the bytecode depend on how the calls are registered? As some calls are wrapped (using the autowrapper) on x86_64 linux only. (they use Native calling on all other platforms). This is to work around the passing and returning of certain structs by value.

angelscript and xcode 2.4

24 September 2006 - 08:11 AM

I am having some difficulties compiling Angelscript on OS X 10.4.7 w/ Xcode 2.4 If I compile using the GNUC makefile it does build, however it doesn't build a PIC library (Position Indipendant Code) which is required in order to link angelscript to another library. So I can not link angelscript w/ the game engine library I am porting. ../dependencies/lib/macosx/libangelscript.a(as_callfunc_ppc.o) has local relocation entries in non-writable section (__TEXT,__text) However, if I load up the XCode project ALL files compile except for one.. the as_callfunc_ppc.cpp (ie.. the most important one IMHO). I do not receive a line number for the error just an error message of: {standard input}:unknown:missing indirect symbols for section (__TEXT,__picsymbolstub1__TEXT) The gcc commandline arguments are as follows /usr/bin/gcc-4.0 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -mtune=G5 -mmacosx-version-min=10.4 -I/Users/urkle/Projects/penumbra/angelscript-2.7.0/angelscript/projects/xcode/build/angelscript.build/Release/as.build/as.hmap -F/Users/urkle/Projects/penumbra/angelscript-2.7.0/angelscript/projects/xcode/build/Release -I/usr/include -I/Users/urkle/Projects/penumbra/angelscript-2.7.0/angelscript/projects/xcode/build/Release/include -I/Users/urkle/Projects/penumbra/angelscript-2.7.0/angelscript/projects/xcode/build/angelscript.build/Release/as.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c /Users/urkle/Projects/penumbra/angelscript-2.7.0/angelscript/projects/xcode/../../source/as_callfunc_ppc.cpp -o /Users/urkle/Projects/penumbra/angelscript-2.7.0/angelscript/projects/xcode/build/angelscript.build/Release/as.build/Objects-normal/ppc/as_callfunc_ppc.o http://www.gamedev.net/community/forums/topic.asp?topic_id=395625 [Edited by - urkle on September 25, 2006 11:39:22 PM]