CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 09-08-2004, 01:55 AM
g2sv g2sv is offline
Junior Member
 
Join Date: Aug 2004
Location: SOME WHERE BETWEEN NORTH POLE AND SOUTHPOLE
Posts: 7
compile-file

Can anybody give me compiled files of attached lisp files. it would be greate help is sombody explains me that procedure too or can give some Refrence documentation.

Regards,
Gav.
Attached Files
File Type: zip abc.zip (694 Bytes, 293 views)
Reply With Quote
  #2  
Old 09-08-2004, 03:28 AM
Thom Ivancso's Avatar
Thom Ivancso Thom Ivancso is offline
Registered User
 
Join Date: Oct 2002
Location: Connecticut, USA
Posts: 212
Post Compiled lisp files..

Hello Gav,

Attached are the two files compiled into dll's for your use.

The procedure I used is the same one explained in the Intergration kit help under OSDM install dir\help\Common\documentation\integration_kit\reference\lispcompilation.html

I open up a session of OSDM and make sure my current folder is the one containing the lisp files I want to compile.

Then from the OSDM user input line I type (compile-file "abc.lsp") Once the hour glass disappears the dll file is created.

I am using Microsoft's Visual Studio 6.0 Professional which includes Visual C++ 6.0 to do the compiling of the lisp files.

Note: Borland C++ does not work for the Windows platform.

To load the dll file into OSDM I use this command syntax.

(load (format nil "path/file.lsp"))

The two files loaded into OSDM without any problems for me.

Hope this helps,
Cheers
Thom
Attached Files
File Type: zip compiled-abc.zip (34.7 KB, 277 views)
Reply With Quote
  #3  
Old 09-23-2004, 02:23 AM
andrea andrea is offline
Registered User
 
Join Date: Sep 2003
Location: italy
Posts: 261
Question error compile-file

I have tried to compile the filee abc.lsp but they give the following error to me... what I can make??
Attached Thumbnails
Click image for larger version

Name:	error-compile.jpg
Views:	341
Size:	12.0 KB
ID:	365  
Reply With Quote
  #4  
Old 09-23-2004, 07:15 AM
Thom Ivancso's Avatar
Thom Ivancso Thom Ivancso is offline
Registered User
 
Join Date: Oct 2002
Location: Connecticut, USA
Posts: 212
Hello Andrea,

Are you using Microsoft's Visual Studio C++ 6.0 to compile this file?


Cheers
Thom
Reply With Quote
  #5  
Old 09-23-2004, 08:02 AM
andrea andrea is offline
Registered User
 
Join Date: Sep 2003
Location: italy
Posts: 261
Question ok ?

I have launch the command ("compile-file "c:/abc.lsp") give to Solidesigner .......

It goes well? or what I must make?
Reply With Quote
  #6  
Old 09-23-2004, 08:06 AM
clausb's Avatar
clausb clausb is offline
Registered User
 
Join Date: Nov 2002
Posts: 1,168
You either did not install a C++ compiler (VC++ 6.0) on the system, or for some reason the compiler executables (cl.exe, link.exe) are not in your PATH.

First, check whether Visual C++ is installed on your system.

If so, open a DOS shell window, then type "cl.exe". If the response is "cl.exe is not recognized as an internal or external command, operable program or batch file", then you know that the directory containing cl.exe is not in the PATH environment variable. Fix the PATH environment variable, then try compiling again.

Claus

PS: You might have to fix the INCLUDE and LIB environment variables as well.
Reply With Quote
  #7  
Old 09-23-2004, 08:13 AM
andrea andrea is offline
Registered User
 
Join Date: Sep 2003
Location: italy
Posts: 261
Question

The variable ones I must setting in :

Windows
SET INCLUDE=C:\Programmi\Microsoft Visual Studio .NET 2003\Vc7\bin
and
SET LIB=C:\Programmi\Microsoft Visual Studio .NET 2003\Vc7\bin


or OSD start

????????????
Reply With Quote
  #8  
Old 09-23-2004, 08:35 AM
clausb's Avatar
clausb clausb is offline
Registered User
 
Join Date: Nov 2002
Posts: 1,168
See also my reply in the other read on encrypting LISP files.

Setting the environment variable in the shell using the SET command will NOT be sufficient to fix your problem. You need to set them in the System Control Panel.

The INCLUDE environment variable only contains references to C/C++ header file directories, NOT to binary directories. The LIB environment variable refers to library file directories, NOT to binary directories either.

If you do not know what header files, libraries and binary files are, maybe you should rather re-run the Visual C++ setup program and have it set the environment variables for you.

Claus
Reply With Quote
  #9  
Old 09-24-2004, 07:17 AM
andrea andrea is offline
Registered User
 
Join Date: Sep 2003
Location: italy
Posts: 261
Question SORRY I do not succeed to make to work it

I do not succeed just...
repeated installation of
"Visual Studio .NET 2003"
I have verified and as variable of system
I have:
LIB=C:\Programmi\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\
INCLUDE=C:\Programmi\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\

from solid I see this variable pear tree if launch......
gives always the usual error to me...

Like from the forum http://www.cocreateusers.org/forum/showthread.php?s=&threadid=5151

if launch the command cl.exe from one shell of dos gives error to me...

WHERE MISTAKE? WHERE MISTAKE? WHERE MISTAKE?

Last edited by andrea; 09-24-2004 at 07:23 AM.
Reply With Quote
  #10  
Old 09-24-2004, 07:53 AM
Thom Ivancso's Avatar
Thom Ivancso Thom Ivancso is offline
Registered User
 
Join Date: Oct 2002
Location: Connecticut, USA
Posts: 212
Re: SORRY I do not succeed to make to work it

Hello andrea,

Quote:
Originally posted by andrea
I do not succeed just...
repeated installation of
"Visual Studio .NET 2003"
Visual Studio .NET 2003 will not work to compile the Lisp code for OneSpace Designer, you need to have Visual Studio 6.0 installed to be able to compile the Lisp code.

Cheers
Thom

Last edited by Thom Ivancso; 09-24-2004 at 07:55 AM.
Reply With Quote
  #11  
Old 09-24-2004, 07:57 AM
Andy Poulsen Andy Poulsen is offline
Administrator
 
Join Date: Apr 2003
Location: Fort Collins, Colorado
Posts: 273
Hello Andrea,

We also tried compiling using Visual Studio .NET, and were unable to get it to work.

When I checked with CoCreate on this issue they said that ONLY Visual c++ 6.0 would work -- the later versions are NOT SUPPORTED.

I'm not sure what the differences are, but we got a copy of 6.0 just for the purpose of compiling OSD code. It's now old enough software that it's not too difficult or expensive to get a copy.

We were going to try to find a workaround for this issue, but since CoCreate said that we would most likely have problems doing that, and since it was so inexpensive just to get a copy, that's what we did.

Perhaps CoCreate has made some changes in the newer versions of OSD Modeling to support Visual Studio .NET or .Net 2003 -- if so, I'm sure Claus or another helpful person will let us know!

Good luck! I hope this helps!

andy
__________________
Andy Poulsen
AI MAXTools: Dream. Design. Done. It's that easy!
Add-ins bringing new functionality and speed to Creo Elements/Direct and CoCreate products. Now available for v17-v20+!
See them in action at www.ai-maxtools.com and then try them for yourself -- FREE!
Reply With Quote
  #12  
Old 09-24-2004, 08:26 AM
clausb's Avatar
clausb clausb is offline
Registered User
 
Join Date: Nov 2002
Posts: 1,168
Andy: OSDM 2005 will indeed support VS.NET 2003 for LISP compilation.

Andrea: If you get an error when trying to run cl.exe from the DOS shell, it means that the directory which contains cl.exe is not in your PATH yet.

Claus
Reply With Quote
  #13  
Old 09-27-2004, 12:08 AM
andrea andrea is offline
Registered User
 
Join Date: Sep 2003
Location: italy
Posts: 261
The rows cl.exe are in the folder...
C:\Programmi\Microsoft Visual Studio .NET 2003\Vc7\bin
various from those of the variable ones LIB and INCLUDE

A remedy or not? Or I must install Visual Study 6.0

THANKS
Reply With Quote
  #14  
Old 09-27-2004, 12:14 AM
clausb's Avatar
clausb clausb is offline
Registered User
 
Join Date: Nov 2002
Posts: 1,168
We do not support VS.NET 2003 with any of the released versions of OSDM, so yes, you will have to install VC++ 6 if you want to compile your LISP code. Alternatively, wait for the OSDM 2005 release which supports VS.NET 2003.

The name of the directory which contains cl.exe must be added to the PATH environment variable. INCLUDE is for header file directories only.

Claus
Reply With Quote
  #15  
Old 09-27-2004, 05:39 AM
andrea andrea is offline
Registered User
 
Join Date: Sep 2003
Location: italy
Posts: 261
Smile ok .... thanks

I have installed Visual Study 6, I have setting variable the total LIB and INCLUDES, and as for magic all it works

INFINITELY THANKS To ALL....
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:06 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
You Rated this Thread: