Jump to content

Q3osc: Difference between revisions

From CCRMA Wiki
Rob (talk | contribs)
No edit summary
Rob (talk | contribs)
No edit summary
Line 10: Line 10:
[http://tremulous.net/forum/index.php?topic=7017.0 Tremulous thread]
[http://tremulous.net/forum/index.php?topic=7017.0 Tremulous thread]


[http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html mixing C and C++]
[http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html mixing C and C++]<br>
 
[http://developers.sun.com/solaris/articles/mixing.html mixing]


===current status===
===current status===

Revision as of 02:02, 1 January 2008

about

q3osc is an attempt to update the manner in which the quake3 gaming engine can be used to export player locations and entity actions outside of the q3 server via OSC. While q3osc is working from a fresh ioquake3 codebase, the inspiration came from pix + delire's excellent q3apd project, which unfortunately makes use of the string-based FUDI protocol instead of a more flexible proper OSC protocol.

links

oscpack
q3apd
original project page
ChatBear thread
Tremulous thread

mixing C and C++
mixing

current status

12/29/07

initial compilation success with test.cpp, thanks to ge's sweet sweet compiler flags:

$(B)/baseq3/qagame$(ARCH).$(SHLIBEXT) : $(Q3GOBJ)
 $(CC) $(SHLIBLDFLAGS) -lstdc++ -o $@ $(Q3GOBJ)
$(B)/baseq3/cgame$(ARCH).$(SHLIBEXT) : $(Q3GOBJ)
 $(CC) $(SHLIBLDFLAGS) -lstdc++ -o $@ $(Q3GOBJ)
DO_CPP=$(CPP) $(BASE_CPPFLAGS) $(SHLIBCFLAGS) -o $@ -c $<

Makefile
Makefile.local

12/07

uber-beta floundering; while test .cpp classes are compiling correctly, something is going screwy in the linking process, which causes qagamei386.so to fail on the foo method call (see below)

Loading dll file qagame.
Sys_LoadDll(/user/r/rob/data/q3/dev/ccrma-kdevelop/build/release-linux-i386/ccrma/qagamei386.so)...
Sys_LoadDll(/user/r/rob/data/q3/dev/ccrma-kdevelop/build/release-linux-i386/ccrma/qagamei386.so) failed:
"Failed loading /user/r/rob/data/q3/dev/ccrma-kdevelop/build/release-linux-i386/ccrma/qagamei386.so:   
/user/r/rob/data/q3/dev/ccrma-kdevelop/build/release-linux-i386/ccrma/qagamei386.so: undefined symbol: foo"