I think im doing something severly wrong but i been at it for ages,
I Grabbed 0.0.2

opengl32 is the library on windows and cygwin has bindings to it instead of GL
and i made a libneko.a via

$ pexports neko.dll | sed 's/^_//' > neko.def
$ dlltool --input-def neko.def --dllname neko.dll --output-lib libneko.a -k

then went to compile via
$ gcc -shared -lneko -lopengl32 -I. -o GL.ndll GL_wrap.c cptr.c

and I get a sh!tload of
/tmp/cc5ZIDQT.o:GL_wrap.c:(.text+0x2a4f8): undefined reference to `_glMultiTexCo
ord1dARB'
/tmp/cc5ZIDQT.o:GL_wrap.c:(.text+0x2a4fd): undefined reference to `_val_true' /tmp/cc5ZIDQT.o:GL_wrap.c:(.text+0x2a631): undefined reference to `_glMultiTexCo
ord1dvARB'
/tmp/cc5ZIDQT.o:GL_wrap.c:(.text+0x2a636): undefined reference to `_val_true' /tmp/cc5ZIDQT.o:GL_wrap.c:(.text+0x2a77a): undefined reference to `_glMultiTexCo
ord1fARB'

...

/tmp/ccDV2skk.o:cptr.c:(.text+0x436c): undefined reference to `_neko_val_throw'
/tmp/ccDV2skk.o:cptr.c:(.text+0x4371): undefined reference to `_val_null'
/tmp/ccDV2skk.o:cptr.c:(.text+0x4516): undefined reference to `_neko_alloc_strin
g'
/tmp/ccDV2skk.o:cptr.c:(.text+0x451e): undefined reference to `_neko_val_throw'
/tmp/ccDV2skk.o:cptr.c:(.text+0x4523): undefined reference to `_val_null'
/tmp/ccDV2skk.o:cptr.c:(.text+0x4797): undefined reference to `_neko_alloc_array
'
/tmp/ccDV2skk.o:cptr.c:(.text+0x4a19): undefined reference to `_val_true'
/tmp/ccDV2skk.o:cptr.c:(.text+0x4a51): undefined reference to `_neko_alloc_strin
g'
/tmp/ccDV2skk.o:cptr.c:(.text+0x4a69): undefined reference to `__neko_failure' /tmp/ccDV2skk.o:cptr.c:(.text+0x4a8f): undefined reference to `_neko_alloc_abstr
act'
/tmp/ccDV2skk.o:cptr.c:(.text+0x4abc): undefined reference to `_neko_alloc_abstr
act'
/tmp/ccDV2skk.o:cptr.c:(.text+0x4ad7): undefined reference to `_val_null'
/tmp/ccDV2skk.o:cptr.c:(.text+0x4af2): undefined reference to `_val_false'
/tmp/ccDV2skk.o:cptr.c:(.text+0x4b05): undefined reference to `_val_false'
/tmp/ccDV2skk.o:cptr.c:(.text+0x4b0f): undefined reference to `_val_true'
collect2: ld returned 1 exit status

I thought I was probably referencing the libraries incorrectly but it wouldnt
get that far if it couldnt...
any ideas?


On Fri, 02 Jun 2006 18:49:14 +0800, daniel fischer <[EMAIL PROTECTED]> wrote:

"Jarrad Hope" <[EMAIL PROTECTED]> (on Fri, 02 Jun 2006 11:37:26
+0800):

  > One last problem :)
we'll see about that :)


  > GL_wrap.c:1: warning: -fPIC ignored for target (all code is position
 > independent)

just leave away the -fPIC argument to gcc to get rid of this warning, it
seems to be unneeded on win32.


  > GL_wrap.c: In function `neko_glProgramCallbackMESA':
  > GL_wrap.c:5316: error: `GLprogramcallbackMESA' undeclared (first use
in
  > this fun
  > ction)

ah- well, obviously, win32 doesnt do MESA. well. i've removed all MESA
references in the new package (see below).


  > You mentioned using SDL beforehand, are you creating bindings for
that as
  > well or doing it from another language?

what other language? :)

i've packed up my sdl binding in the same (preliminary) way. i've also
split the "cptr" lib into its own package. it's being used to share
plain C pointers between those different libraries, and manipulate them
from neko. you need to make sure cptr.h is in the include path when
compiling them.


get them new packages here:
 http://iterative.org/neko/bindings/

if you manage to build these on win32, please post your gcc command
lines so i can put them in a README (or makefile). thanks.

-dan





--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to