problems with loading a plugin in tvpaint
Posted: 03 Apr 2013, 19:21
Hi,
I am trying to compile a plug-in I wrote for tvpaint. Everything goes through without errors and the dll es created, but after I copied the dll over to the tvPaint/Plugins directory tvpaint doesn't show it anywhere.
I was thinking that it might be my code, but then I compiled the example flip plugin from the SDK and this isnt shown eigther.
So I guess it has something to do with my compiler settings.
Does anyone know how to compule it with gcc and cygwin?
this is what I did:
SOURCE = $(SOURCE)/flip.c $(TVPAINTAPI)/lib/dllx.c
gcc -c -std=gnu99 -I$(TVPAINTAPI)/includes $(SOURCE)
gcc -mdll -o $(PREFIX)/junk.tmp -Wl,--base-file,$(PREFIX)/base.tmp $(PREFIX)/flip.o $(PREFIX)/dllx.o
dlltool --dllname $(PREFIX)/bar.dll --base-file $(PREFIX)/base.tmp --output-exp $(PREFIX)/temp.exp --def $(EXPORTS)
gcc -mdll -o $(TVPAINTPLUGINS)/flip.dll -Wl,$(PREFIX)/temp.exp $(PREFIX)/flip.o $(PREFIX)/dllx.o
to check if it was loaded, I was making a new Tool Bar. RMB>AddAction on the first action LMB>setPlugins and it wasn't there. It would be awesome if anyone of you knows what I am doing wrong.
cheers
I am trying to compile a plug-in I wrote for tvpaint. Everything goes through without errors and the dll es created, but after I copied the dll over to the tvPaint/Plugins directory tvpaint doesn't show it anywhere.
I was thinking that it might be my code, but then I compiled the example flip plugin from the SDK and this isnt shown eigther.
So I guess it has something to do with my compiler settings.
Does anyone know how to compule it with gcc and cygwin?
this is what I did:
SOURCE = $(SOURCE)/flip.c $(TVPAINTAPI)/lib/dllx.c
gcc -c -std=gnu99 -I$(TVPAINTAPI)/includes $(SOURCE)
gcc -mdll -o $(PREFIX)/junk.tmp -Wl,--base-file,$(PREFIX)/base.tmp $(PREFIX)/flip.o $(PREFIX)/dllx.o
dlltool --dllname $(PREFIX)/bar.dll --base-file $(PREFIX)/base.tmp --output-exp $(PREFIX)/temp.exp --def $(EXPORTS)
gcc -mdll -o $(TVPAINTPLUGINS)/flip.dll -Wl,$(PREFIX)/temp.exp $(PREFIX)/flip.o $(PREFIX)/dllx.o
to check if it was loaded, I was making a new Tool Bar. RMB>AddAction on the first action LMB>setPlugins and it wasn't there. It would be awesome if anyone of you knows what I am doing wrong.
cheers