Author Topic: Help setting up Code::BLocks with Lightwave plugins  (Read 8869 times)

tonkv

  • Guest
Help setting up Code::BLocks with Lightwave plugins
« on: February 11, 2007, 09:58:34 am »
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!!!

Online stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Help setting up Code::BLocks with Lightwave plugins
« Reply #1 on: February 11, 2007, 11:56:52 am »
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
« Last Edit: February 11, 2007, 12:41:51 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Online stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Help setting up Code::BLocks with Lightwave plugins
« Reply #2 on: February 11, 2007, 08:35:07 pm »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

tonkv

  • Guest
Re: Help setting up Code::BLocks with Lightwave plugins
« Reply #3 on: February 12, 2007, 03:53:06 am »
Thank you, brothers, the help   :lol:

« Last Edit: February 12, 2007, 03:59:07 am by tonkv »

tonkv

  • Guest
Re: Help setting up Code::BLocks with Lightwave plugins
« Reply #4 on: February 12, 2007, 04:22:41 am »
Very good ! I tested several source code that can be run in the normal LW ^_^