PDA

View Full Version : Hel with my first plug-in box.c



atomik35
03-29-2007, 09:58 AM
Hello to all.
I have followed the example of plug-in "box.c", but I have many problems.
I use VC++ 6.0
LW 9.0
Win XP Pro Sp2
help Me please

kmacphail
03-29-2007, 11:21 AM
Hey there atomik35,

I can't tell from the screen grab, have you followed Ernie's steps to build the SDK library?

-Kevin

Mr Big
03-29-2007, 07:53 PM
This should help

http://www.auroragrafx.com/Tutorials/Prog_PluginProjCreation/LWProjCreation.shtml

Its the settings. If the website doesn't help I'll post the compiler settings.

atomik35
03-30-2007, 01:52 AM
Ok.
Thanks a lot.
Later I try to us and I make to know you.
Ciao

atomik35
03-30-2007, 09:49 AM
whyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy????
will not never succeed to us

Mr Big
03-30-2007, 09:20 PM
Hello World compiles with the LW 8 sdk using the server.lib
The plugin runs in versions 8 & 9

Sensei
03-31-2007, 02:56 AM
whyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy????
will not never succeed to us

Define _MSWIN..

atomik35
03-31-2007, 04:14 AM
Ok.
:)))))))))))))))
for c=1 to 1000
Thank You
next

But.......
another problem....please see the attachment
Please continue help me

Sensei
03-31-2007, 04:29 AM
serv_w.obj is the same file as servmain.obj.. So, just rename it or change name in makefile..

atomik35
03-31-2007, 04:49 AM
Ok...
i ricompiled th first tutorial "Box"...:) and all ok.
But don't work in modeler...won't run...why?

Sensei
03-31-2007, 04:56 AM
Did you use serv.def file? It exports mod_descrip.. Otherwise LightWave does not know your plug-in's database.. You should check linker settings and find where to use .def files..

Mr Big
03-31-2007, 11:05 AM
Did you build server.lib with the version 8 sdk? & add it to you source files. The project crashes the compiler if I use the
version 9 sdk.

atomik35
04-01-2007, 02:18 AM
Ok.
but...where is the server.lib???
how I make to create it?
it is possible to have an ambient already set up for the creation of plugin
please continue help me.
thank you
I would want a lot to speak well in English

Sensei
04-01-2007, 02:23 AM
You have directly added LWSDK/source files to project, so you don't need server.lib which is normally made from them..
I am not sure what do you mean by "ambient".. Example project? I don't think so developers use VC v6.0 these days, and later VC projects probably are not loadable in it..

Sensei
04-01-2007, 02:25 AM
For 99% not loading plug-in to LW is problem with def file, not set up properly in linking settings..

atomik35
04-01-2007, 02:50 AM
ambient = set up vc for plugin creation

atomik35
04-01-2007, 03:00 AM
Ok.
Please see the attachments
this is my configuration of vc6

atomik35
04-01-2007, 03:01 AM
and

atomik35
04-01-2007, 03:02 AM
ambient = configuration of vc for plugin creation

Sensei
04-01-2007, 04:12 AM
ambient = configuration of vc for plugin creation

I won't give it to you.. Never used VC 6.0 to compile LW plug-ins..

Sensei
04-01-2007, 04:13 AM
Try moving serv.def file from Sources/ to Resources/, and Resources/box.c to Sources/ and Rebuild whole project..

Mr Big
04-01-2007, 12:24 PM
Sensei what compiler do you use?

Mr Big
04-01-2007, 12:56 PM
atomik35 to build the server lib


Microsoft Visual C++

To build an MSVC version of the SDK library,
Create a new project workspace, or insert a new project into an existing workspace. The project type should be "Static Library." Name the project "server".

Settings dialog, C/C++ tab, add _X86_ (or _ALPHA_) and _WIN32 to the preprocessor definitions field.
You have 2 _WIN32? :bangwall:


In the field for additional include directories, type the path to the plug-in SDK include directory.

Add servdesc.c, username.c, startup.c, and shutdown.c to the project. These are located in the SDK\source directory.

Build server.lib.

Then add that file to your box project as a source file like this

atomik35
04-01-2007, 02:36 PM
Ok.
I create the server.lib finally.
the tutorial hello it works well
the tutorial box it comes compiled with zero errors, but in modeler it does not work.
however I must put _ MSWIN by force, like suggested to me from SENSEI, otherwise does not compile
Please continue help me
then I invite to you in Italy..eh eh :)

atomik35
04-01-2007, 02:44 PM
Please continue to hel me.
ciao

Mr Big
04-01-2007, 03:08 PM
Hello world is a layout plugin. Not a modeller plugin, congrats for getting it to work in layout 9. Continue with the SDK samples.

Persistence pays off...
Mr Big

#include <lwgeneric.h> // For the LayoutGeneric class