compiling uox3 on linux: yat (yet another try)

Want to discuss changes to the UOX3 source code? Got a code-snippet you'd like to post? Anything related to coding/programming goes here!
Post Reply
GhostTyper
UOX3 Neophyte
Posts: 26
Joined: Sun Sep 18, 2005 2:00 pm
Has thanked: 0
Been thanked: 0
Contact:

compiling uox3 on linux: yat (yet another try)

Post by GhostTyper »

hi,

i tried compiling uox3 after this tutorial: viewtopic.php?t=457 => post from "Inkvisitor".

everything worked fine after removing globals.cpp/o from makefiles, until this errors:

Code: Select all

...
UOXJSPropertyFuncs.cpp:(.text+0x8d80): undefined reference to `UOX::JSEngine'
UOXJSPropertyFuncs.cpp:(.text+0x8d90): undefined reference to `UOX::CJSEngine::AcquireObject(UOX::IUEEn                                           tries, void*, unsigned char)'
UOXJSPropertyFuncs.cpp:(.text+0x8f6c): undefined reference to `UOX::JSEngine'
UOXJSPropertyFuncs.cpp:(.text+0x8f74): undefined reference to `UOX::CJSEngine::FindActiveRuntime(JSRunt                                           ime*) const'
UOXJSPropertyFuncs.cpp:(.text+0x8f89): undefined reference to `UOX::JSEngine'
UOXJSPropertyFuncs.cpp:(.text+0x8f95): undefined reference to `UOX::CJSEngine::AcquireObject(UOX::IUEEn                                           tries, void*, unsigned char)'
UOXJSPropertyFuncs.cpp:(.text+0x8fb3): undefined reference to `UOX::JSEngine'
UOXJSPropertyFuncs.cpp:(.text+0x8fbb): undefined reference to `UOX::CJSEngine::FindActiveRuntime(JSRunt                                           ime*) const'
UOXJSPropertyFuncs.cpp:(.text+0x8fd4): undefined reference to `UOX::JSEngine'
UOXJSPropertyFuncs.cpp:(.text+0x8fdc): undefined reference to `UOX::CJSEngine::AcquireObject(UOX::IUEEn                                           tries, void*, unsigned char)'
UOXJSPropertyFuncs.cpp:(.text+0x8ffa): undefined reference to `UOX::JSEngine'
UOXJSPropertyFuncs.cpp:(.text+0x9002): undefined reference to `UOX::CJSEngine::FindActiveRuntime(JSRunt                                           ime*) const'
UOXJSPropertyFuncs.cpp:(.text+0x901b): undefined reference to `UOX::JSEngine'
UOXJSPropertyFuncs.cpp:(.text+0x9023): undefined reference to `UOX::CJSEngine::AcquireObject(UOX::IUEEn                                           tries, void*, unsigned char)'
UOXJSPropertyFuncs.cpp:(.text+0x9078): undefined reference to `UOX::JSEngine'
UOXJSPropertyFuncs.cpp:(.text+0x9080): undefined reference to `UOX::CJSEngine::FindActiveRuntime(JSRunt                                           ime*) const'
UOXJSPropertyFuncs.cpp:(.text+0x9099): undefined reference to `UOX::JSEngine'
UOXJSPropertyFuncs.cpp:(.text+0x90a1): undefined reference to `UOX::CJSEngine::AcquireObject(UOX::IUEEn                                           tries, void*, unsigned char)'
collect2: ld returned 1 exit status
make: *** [uox3] Error 1
i used a old configure.in from a old cvs tree on sourceforge. (i think the configure.in is 2 years old!) and lookes like this:

Code: Select all

AC_INIT(uox3.cpp)

AM_INIT_AUTOMAKE(uox3,0.97)

AC_PROG_CXX

AC_C_CONST

CXXFLAGS="-O2 -I./mozilla/js/src"

AC_ARG_ENABLE(debug,   [  --enable-debug          compile with debugging support],,enable_debug=no)

if test "$enable_debug" = yes ; then
CXXFLAGS="$CXXFLAGS -g3"
AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
fi

dnl To enable debugger support, remove the "dnl" from the line 3 lines down
dnl and recompile the entire application

dnl CXXFLAGS="$CXXFLAGS -g"

AC_OUTPUT(Makefile)
any ideas? thanks.
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

add CJSEngine.cpp/.o to the makfile
Scott
GhostTyper
UOX3 Neophyte
Posts: 26
Joined: Sun Sep 18, 2005 2:00 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by GhostTyper »

thanks! i'll now compiled uox3 successfully on linux.
Post Reply