Author Topic: How to Compile OpenDCL V4  (Read 6375 times)

0 Members and 1 Guest are viewing this topic.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8715
  • AKA Daniel
How to Compile OpenDCL V4
« on: June 21, 2007, 11:22:39 AM »
System Requirements:
 Visual Studio 2002 to build for AutoCAD 2004-2006
 Visual Studio 2005 to build for AutoCAD 2007-2008
 Owen Wengerd’s VC Build Hook utility
 Arx SDK for Acad2004
 Arx SDK for Acad2007

Setting up System variables to point to the location of the SDK
In Windows XP go to the control panel->System->advanced tab-> Environment Variables and add your paths as shown:

See pic 1

In the same window add the paths for visual studio as explained on Owens webpage.
See pic 2

The solution on sourceforge is already all setup with the environment variables needed to compile.
On my computer I just needed to set "Use Unicode response files" = no in the zlib project.
And error reporting to default. This is also explained on Owen's page
http://www.manusoft.com/Resources/ARXTips/Index.stm#VC8ForARX2000

« Last Edit: June 21, 2007, 11:23:44 AM by Danielm103 »

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8715
  • AKA Daniel
Re: How to Compile OpenDCL V4
« Reply #1 on: June 21, 2007, 11:34:01 AM »
Make sure you add the paths to System Variables and not User variables

LE

  • Guest
Re: How to Compile OpenDCL V4
« Reply #2 on: June 21, 2007, 12:19:37 PM »
I end up, not using Owen's hook utility and also I have the ARX as separate projects too - well they will be just for my personal use :).

BazzaCAD

  • Guest
Re: How to Compile OpenDCL V4
« Reply #3 on: June 21, 2007, 12:46:44 PM »
Will this work for VS 2005 Express?
(For Acad2007/8 of course)

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8715
  • AKA Daniel
Re: How to Compile OpenDCL V4
« Reply #4 on: June 21, 2007, 01:02:52 PM »
Sorry, I don’t know.  :-(
I am using the standard edition

LE

  • Guest
Re: How to Compile OpenDCL V4
« Reply #5 on: June 21, 2007, 01:06:28 PM »
Will this work for VS 2005 Express?
(For Acad2007/8 of course)


Barry;

Wait for the masters, for a better response.

I tried in the past (in my early days when learning C++) and could not make it work, the MFC is needed, and it is not available in the express...

Do a search in the ARX forum of adesk, to have a better idea.

owenwengerd

  • Bull Frog
  • Posts: 451
Re: How to Compile OpenDCL V4
« Reply #6 on: June 21, 2007, 08:18:42 PM »
Will this work for VS 2005 Express?
(For Acad2007/8 of course)

I've been planning to test VS Express one of these days, but haven't had a chance yet. If Luis is correct and Express doesn't include the MFC libraries, then I'm afraid it will not work.

owenwengerd

  • Bull Frog
  • Posts: 451
Re: How to Compile OpenDCL V4
« Reply #7 on: June 21, 2007, 08:21:57 PM »
On my computer I just needed to set "Use Unicode response files" = no in the zlib project.
And error reporting to default.

These project settings will be correct in the next build of OpenDCL. BTW, I didn't notice this before because the latest version of VCBuildHook automatically fixes things before passing the project off to the build tools. If they caused your build to fail, you may want to update to the latest version of VCBuildHook.

LE

  • Guest
Re: How to Compile OpenDCL V4
« Reply #8 on: June 21, 2007, 09:14:52 PM »
Quote
Visual C++ 2005 Express
This Microsoft Visual C++ (or Visual C++ 8.0) is available in two flavors: as a part of Microsoft Visual Studio 2005, and as a standalone "Express Edition" product. Both should be available for MSDN subscribers and were released officially in October of 2005.

Microsoft Visual C++ 2005 Express Edition is available from the Microsoft Developer Network (MSDN) web site as a free download. However, the Visual C++ 2005 SP1 Redistributables are not included and could not be downloaded from Microsoft. As Microsoft says, "Once an application is rebuilt with Visual C++ 2005 Service Pack 1, it will need the Visual C++ 2005 Service Pack 1 version of the Visual C++ libraries during runtime."[1] Thus, an executable compiled using default options (dynamic linking) in Visual C++ 2005 Express SP1 could not be deployed to PC's that do not have Visual C++ 2005 Express SP1 installed. This problem was solved in April 2007, when Visual C++ 2005 SP1 Redistributable Package became available on Microsoft's website

Here is the url link:

http://en.wikipedia.org/wiki/Visual_C++


<HTH>
« Last Edit: June 22, 2007, 10:42:33 AM by LE »

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8715
  • AKA Daniel
Re: How to Compile OpenDCL V4
« Reply #9 on: June 21, 2007, 09:29:04 PM »

Chuck Gabriel

  • Guest
Re: How to Compile OpenDCL V4
« Reply #10 on: June 21, 2007, 10:03:53 PM »
VC++ 2005 Express does not include the MFC libraries, and neither does the Platform SDK.  You've got to part with the green to get your hands on it.