View Full Version : Trouble Compiling for OS X
Hi,
I'm trying to compile the sample VecMath plug-in for OS X using MPW. I compiled both server.lib, and the plug-in source according to the steps in the SDK documentation. However, when I try to add the plug-in in Layout, I get an error saying, "Plug-ins were not found or could not be added."
Does anyone know the likely cause of this? Perhaps I have an out of date SDK? I looked in the Developer Center, but I couldn't find a consolidated SDK for version 7.x.
I'm running Lightwave version 7.5c.
Thanks,
--Ian
Lynx3d
10-01-2005, 09:27 AM
I bet 5 bucks that you screwed up here:
"Click the Exported Symbols button and enter _mod_descrip in the Export Symbols box."
Nah, I did that too...
Here are my make files, first for server.lib, and then for VecMath.p:
# File: server.lib.make
# Target: server.lib
# Created: Saturday, October 1, 2005 02:44:06 AM
MAKEFILE = server.lib.make
¥MondoBuild¥ = {MAKEFILE} # Make blank to avoid rebuilds when makefile is modified
ObjDir = :
Includes = ¶
-i "IKHD:Applications:LightWave 3D 7.5:SDK:include:"
Sym-PPC = -sym off
PPCCOptions = {Includes} {Sym-PPC} -d TARGET_API_MAC_CARBON=1 -d _MACOS -d _PPC_
### Source Files ###
SrcFiles = ¶
servdesc.c ¶
shutdown.c ¶
startup.c ¶
username.c
### Object Files ###
ObjFiles-PPC = ¶
"{ObjDir}servdesc.c.x" ¶
"{ObjDir}shutdown.c.x" ¶
"{ObjDir}startup.c.x" ¶
"{ObjDir}username.c.x"
### Libraries ###
LibFiles-PPC =
### Default Rules ###
.c.x Ä .c {¥MondoBuild¥}
{PPCC} {depDir}{default}.c -o {targDir}{default}.c.x {PPCCOptions}
### Build Rules ###
server.lib ÄÄ server.lib.o
server.lib.o ÄÄ {ObjFiles-PPC} {LibFiles-PPC} {¥MondoBuild¥}
PPCLink ¶
-o {Targ} ¶
{ObjFiles-PPC} ¶
{LibFiles-PPC} ¶
{Sym-PPC} ¶
-mf -d ¶
-t 'XCOF' ¶
-c 'MPS ' ¶
-xm l
### Required Dependencies ###
"{ObjDir}servdesc.c.x" Ä servdesc.c
"{ObjDir}shutdown.c.x" Ä shutdown.c
"{ObjDir}startup.c.x" Ä startup.c
"{ObjDir}username.c.x" Ä username.c
### Optional Dependencies ###
### Build this target to generate "include file" dependencies. ###
Dependencies Ä $OutOfDate
MakeDepend ¶
-append {MAKEFILE} ¶
-ignore "{CIncludes}" ¶
-objdir "{ObjDir}" ¶
-objext .x ¶
{Includes} ¶
{SrcFiles}
Here's the VecMath.pl make file:
# File: VecMath.p.make
# Target: VecMath.p
# Created: Saturday, October 1, 2005 02:46:42 AM
MAKEFILE = VecMath.p.make
¥MondoBuild¥ = {MAKEFILE} # Make blank to avoid rebuilds when makefile is modified
ObjDir = :
Includes = ¶
-i "IKHD:Applications:LightWave 3D 7.5:SDK:include:"
Sym-PPC = -sym off
PPCCOptions = {Includes} {Sym-PPC} -d TARGET_API_MAC_CARBON=1 -d _MACOS -d _PPC_ -typecheck relaxed
### Source Files ###
SrcFiles = ¶
vecmath.c ¶
"IKHD:Applications:LightWave 3D 7.5:SDK:source:servmain.c"
### Object Files ###
ObjFiles-PPC = ¶
"{ObjDir}vecmath.c.x" ¶
"{ObjDir}servmain.c.x"
### Libraries ###
LibFiles-PPC = ¶
"IKHD:Applications:LightWave 3D 7.5:SDK:source:server.lib" ¶
"{SharedLibraries}CarbonLib" ¶
"{SharedLibraries}StdCLib" ¶
"{PPCLibraries}StdCRuntime.o" ¶
"{PPCLibraries}PPCCRuntime.o" ¶
"{PPCLibraries}PPCToolLibs.o"
### Default Rules ###
.c.x Ä .c {¥MondoBuild¥}
{PPCC} {depDir}{default}.c -o {targDir}{default}.c.x {PPCCOptions}
### Build Rules ###
VecMath.p ÄÄ {ObjFiles-PPC} {LibFiles-PPC} {¥MondoBuild¥}
PPCLink ¶
-o {Targ} ¶
{ObjFiles-PPC} ¶
{LibFiles-PPC} ¶
{Sym-PPC} ¶
-mf -d ¶
-t 'shlb' ¶
-c '????' ¶
-xm s ¶
-export _mod_descrip
### Required Dependencies ###
"{ObjDir}vecmath.c.x" Ä vecmath.c
"{ObjDir}servmain.c.x" Ä "IKHD:Applications:LightWave 3D 7.5:SDK:source:servmain.c"
### Optional Dependencies ###
### Build this target to generate "include file" dependencies. ###
Dependencies Ä $OutOfDate
MakeDepend ¶
-append {MAKEFILE} ¶
-ignore "{CIncludes}" ¶
-objdir "{ObjDir}" ¶
-objext .x ¶
{Includes} ¶
{SrcFiles}
Some strange characters were introduced when I copied this file from my Mac to my PC. It should be safe to ignore them.
--Ian
I got the SDK for version 8, compiled with it, and all is well.
--Ian
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.