News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Help setting up Code::BLocks with Lightwave plugins

Started by tonkv, February 11, 2007, 09:58:34 AM

Previous topic - Next topic

tonkv

To build a plug-in,

Compile your source files.
gcc -c -D_MSWIN -D_X86_ -O6 -I$(LWSDK_INCL) myplug.c

Link to the SDK library and generate a DLL.
dllwrap -o myplug.p --export-all --dllname myplug.p myplug.o $(LWSDK_LIB)servmain.o $(LWSDK_LIB)libserver.a

An equivalent makefile would look like this:

   LWSDK_CFLAGS = -D_MSWIN -D_X86_ -O6

   %.o: %.c
   gcc $(LWSDK_CFLAGS) -I$(LWSDK_INCL) -c $<

   myplug.p: myplug.o
      dllwrap -o $@ --export-all --dllname $@ \
      myplug.o $(LWSDK_LIB)servmain.o $(LWSDK_LIB)libserver.a


----------------------------------------------------------------------------------
As described above, how should the configure!!!

stahta01

#1
If you are asking for help, I have no idea on what question you are asking.
From my point of view you appear to be giving directions on how to setup Lightwave; I have no idea on what Lightwave is about.

Edit: found info on: Lightwave at
http://www.newtek.com/lightwave/developer/LW80/8lwsdk/docs/compile.html

Because your info seems to be almost exactly what is on link, I am guessing you want directions on how to use the info under Code::Blocks.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

I have uploaded a CB template (lwsdk_codeblocks_template) based on Lightwave devcpp plugin template
to http://www.savefile.com/projects/1039215
direct link http://www.savefile.com/files/483925

Note, I have no idea on how to use Lightwave, so no idea if the plugin works but it does compile.

lwsdk global variable needs set to the SDK folder and the lib needs set to sdk source sub folder.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

tonkv

#3
Thank you, brothers, the help   :lol:


tonkv

Very good ! I tested several source code that can be run in the normal LW ^_^