PDA

View Full Version : VSNET 7.1 - PERL


KhaN
03-27-2004, 10:10 PM
I have VSNET 7.1, PERL is installed as IO:SCALAR.
Reading http://www.eqemulator.net/forums/viewtopic.php?t=12827
select zone-win32-Release and press add
set the configuration name to Relase with Perl
set copy configuration from zone-win32-Release
menu-- build,set active configuration
select zone-win32-Relase with Perl
I dont see any "Release with Perl", only "Debug / GotFrags / Guildwars / Guildwars Debug / Profiling / Release / Win9x"

My question is ... what is have done wrong ... I have try to change the name "Release" by "Release with Perl", followed instruction, but when compiling i have some errors ... Geezzz, i would have better chance to learn chinese ...

samandhi
03-29-2004, 08:20 AM
You are using VS.NET, while the guide says:
To create another build configuration with perl support in VC++6 ... Im nost sure how much has changed between the versions, but it looks like you didnt get the step where it says to choose win32 release and then click add...This is where you have to type in the name win32 release with perl... That is why it is NOT on the list when you go to choose it later...

codemonkey
03-30-2004, 09:07 AM
Or you could take the Ghetto-Fabulous route and do it by hand with Notepad.

Run Notepad
Drag the "Zone.vcproj" file into notepad
Edit -> Find
Type "Release|Win32" to find the right section.
Scroll down a few lines to the PreprocessorDefinitions area.
Just type in EMBPERL, EMBPERL_PLUGIN in the preproc line:

PreprocessorDefinitions="EMBPERL,EMBPERL_PLUGIN,SHAREMEM,CATCH_CRASH.... blah blah blah

Save the file.
Open it up again in VS.NET
Select "Release" from the drop down list box in the toolbar
Add the perl .cpp and .h files to your project
Compile zone.exe with Perl support.
Praise Jesus.

(this assumes you installed Perl and IO::Scalars, and followed one of those "How to setup emu server 5.x" posts showing you which .h and libs to include in your project. Plenty of posts here with info on how to do that)