|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
"MSVC" Hercules Build Instructions updated-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Folks, I've updated my "MSVC" Hercules Build Instructions web page at: http://www.softdevlabs.com/Hercules/hercules-msvc-build.html In addition to the instructions being updated for Visual C++ 2008 they are now much simpler are more streamlined (hopefully!) and include download links for the necessary ZLIB, BZIP2 and PCRE headers and libraries (which I built myself using VC++ 2008). Let me know if you have any problems with them and I'll try to update the instructions as needed. Thanks. - -- "Fish" (David B. Trout) - fish@... Fight Spam! Join CAUCE! <http://www.cauce.org/> 7 reasons why HTML email is a bad thing http://www.georgedillon.com/web/html_email_is_evil.shtml PGP key fingerprints: DH/DSS: 9F9B BAB0 BA7F C458 1A89 FE26 48F5 D7F4 C4EE 3E2A RSA: 6B37 7110 7201 9917 9B0D 99E3 55DB 5D58 FADE 4A52 -----BEGIN PGP SIGNATURE----- Version: PGP Desktop 9.8.0 (Build 2158) Charset: us-ascii wj8DBQFKyCOSSPXX9MTuPioRAv3sAJ9eq2fb2B/WBRQwdQX4gkQIiCpmawCgvNzQ qdoS1ZBVJW+t1RFpO+E3BgQ= =mHqv -----END PGP SIGNATURE----- |
|
|
Re: "MSVC" Hercules Build Instructions updated--- In hercules-390@..., "Fish" <fish@...> wrote:
> > Folks, I've updated my "MSVC" Hercules Build Instructions > web page at: > > http://www.softdevlabs.com/Hercules/hercules-msvc-build.html Thanks Fish. Do you know what is required to execute from the command line instead of GUI? ie is there a command to invoke the .sln file. Also, any idea when there will be a new version of Hercules released that will be shipped with VS2008 so that all the dependencies can be expected to be installed? BFN. Paul. |
|
|
RE: Re: "MSVC" Hercules Build Instructions updated-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 kerravon86 wrote: > --- In hercules-390@..., "Fish" <fish@...> wrote: > > > > Folks, I've updated my "MSVC" Hercules Build Instructions > > web page at: > > > > http://www.softdevlabs.com/Hercules/hercules-msvc-build.html > > Thanks Fish. Do you know what is required to execute > from the command line instead of GUI? ie is there a > command to invoke the .sln file. Entering "makefile /?" provides instructions. > Also, any idea when there will be a new version of > Hercules released that will be shipped with VS2008 > so that all the dependencies can be expected to be > installed? Well I'm not sure BUT... Mike mentioned in his post that Ivan is now building Windows snapshots again (apparently his snapshots mechanism has been broken since August or something), so maybe we'll get lucky and his snapshots are already now being build with the latest C++ Runtimes? <shrug> Don't know. Haven't had time to download any of them to verify since I of course always build Herc directly from source myself. - -- "Fish" (David B. Trout) - fish@... Fight Spam! Join CAUCE! <http://www.cauce.org/> 7 reasons why HTML email is a bad thing http://www.georgedillon.com/web/html_email_is_evil.shtml PGP key fingerprints: DH/DSS: 9F9B BAB0 BA7F C458 1A89 FE26 48F5 D7F4 C4EE 3E2A RSA: 6B37 7110 7201 9917 9B0D 99E3 55DB 5D58 FADE 4A52 -----BEGIN PGP SIGNATURE----- Version: PGP Desktop 9.8.0 (Build 2158) Charset: us-ascii wj8DBQFKyKr/SPXX9MTuPioRAgPIAKCv7OK85FFn8y75nppGVHSSmaL6ggCgiV62 pFlfwn2kQSypyw8nctYs0nc= =o1Pf -----END PGP SIGNATURE----- |
|
|
Re: "MSVC" Hercules Build Instructions updated--- In hercules-390@..., "Fish" <fish@...> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Folks, I've updated my "MSVC" Hercules Build Instructions web page at: > Thanks Fish, my first expedition in the world of C++, works perfectly. One question though, what would be the equivalent for the touch utility in the Windows world ? Christian |
|
|
RE: Re: "MSVC" Hercules Build Instructions updated-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Chris wrote: > Thanks Fish, my first expedition in the world of C++, > works perfectly. One question though, what would be the > equivalent for the touch utility in the Windows world ? > Christian Windows doesn't have a touch utility that I'm aware of, but I personally use the GNU touch that comes with one of the following packages: http://gnuwin32.sourceforge.net/ http://unxutils.sourceforge.net/ I personally use both packages, and I can't remember which one I got touch from. Just download them and unzip them into a 'bin' directory someone on your system and then add that directory to your Windows %PATH% variable. I think everyone should have a bin directory where they can dump all their handy dandy command-line utilities that don't come with or need an installer into. Another separate tool I use is 'msls', a GNU 'ls' knockoff written using native Windows APIs. It's very nice: http://utools.com/msls.asp One IMPORTANT CAVEAT though regarding the above two GnuWin32 and UnxUtils packages: the names of some of the tools collide with the names of some existing Microsoft utilities, so be careful. Before you blindly add your 'bin' directory to your PATH, I would first verify whether there's already an existing tool with that name for each of the tools provided in both packages. (Their "which" utility is especially helpful for this!) Looking at my notes it appears one of them is the "expand" tool: there's already a Microsoft tool called that which does something completely differently so I renamed my GNU expand to "gexpand.exe" instead. I also DELETED the following programs for the very same reason: echo.exe find.exe sort.exe type.exe Good luck! - -- "Fish" (David B. Trout) - fish@... Fight Spam! Join CAUCE! <http://www.cauce.org/> 7 reasons why HTML email is a bad thing http://www.georgedillon.com/web/html_email_is_evil.shtml PGP key fingerprints: DH/DSS: 9F9B BAB0 BA7F C458 1A89 FE26 48F5 D7F4 C4EE 3E2A RSA: 6B37 7110 7201 9917 9B0D 99E3 55DB 5D58 FADE 4A52 -----BEGIN PGP SIGNATURE----- Version: PGP Desktop 9.8.0 (Build 2158) Charset: us-ascii wj8DBQFKyXg/SPXX9MTuPioRAlJLAJ96zRGeEUcr3yd1JrOT2dKhMzJlxACg8L/b N/rcyK6KeGoNK0rtD4d/ATM= =8Jjp -----END PGP SIGNATURE----- |
|
|
Re: "MSVC" Hercules Build Instructions updated--- In hercules-390@..., "Fish" <fish@...> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Chris wrote: > > > Thanks Fish, my first expedition in the world of C++, > > works perfectly. One question though, what would be the > > equivalent for the touch utility in the Windows world ? > > Christian > > Windows doesn't have a touch utility that I'm aware of, but I personally use > the GNU touch that comes with one of the following packages: > > http://gnuwin32.sourceforge.net/ > http://unxutils.sourceforge.net/ > > I personally use both packages, and I can't remember which one I got touch > from. > > Just download them and unzip them into a 'bin' directory someone on your > system and then add that directory to your Windows %PATH% variable. I think > everyone should have a bin directory where they can dump all their handy > dandy command-line utilities that don't come with or need an installer into. > > Another separate tool I use is 'msls', a GNU 'ls' knockoff written using > native Windows APIs. It's very nice: > > http://utools.com/msls.asp > > > One IMPORTANT CAVEAT though regarding the above two GnuWin32 and UnxUtils > packages: the names of some of the tools collide with the names of some > existing Microsoft utilities, so be careful. Before you blindly add your > 'bin' directory to your PATH, I would first verify whether there's already > an existing tool with that name for each of the tools provided in both > packages. (Their "which" utility is especially helpful for this!) > > Looking at my notes it appears one of them is the "expand" tool: there's > already a Microsoft tool called that which does something completely > differently so I renamed my GNU expand to "gexpand.exe" instead. > > I also DELETED the following programs for the very same reason: > > echo.exe > find.exe > sort.exe > type.exe > > Good luck! > > - -- > "Fish" (David B. Trout) - fish@... > Fight Spam! Join CAUCE! <http://www.cauce.org/> > 7 reasons why HTML email is a bad thing > http://www.georgedillon.com/web/html_email_is_evil.shtml > PGP key fingerprints: > DH/DSS: 9F9B BAB0 BA7F C458 1A89 FE26 48F5 D7F4 C4EE 3E2A > RSA: 6B37 7110 7201 9917 9B0D 99E3 55DB 5D58 FADE 4A52 > > > > > > -----BEGIN PGP SIGNATURE----- > Version: PGP Desktop 9.8.0 (Build 2158) > Charset: us-ascii > > wj8DBQFKyXg/SPXX9MTuPioRAlJLAJ96zRGeEUcr3yd1JrOT2dKhMzJlxACg8L/b > N/rcyK6KeGoNK0rtD4d/ATM= > =8Jjp > -----END PGP SIGNATURE----- > Hi, I just tried to re-compile using Fish's instructions and had to do the following to get it to compile cleanly:- First you'll need a SVN client. I downloaded TortoiseSVN. Point it at the SVN as per the URL in Fish's instructions and the source will be downloded. 1) Download UnixUtils, extract and put C:\UnxUtils\usr\local\wbin in your path. This will then pick up "Touch" command. 2) Download "RunJobs-1.1.2" and place "Runjobs.exe" in a directory in your path. I stuck it in the same path as 1. The program "RunJobs" is required to get the rebuild to work. 3) Make sure you select the correct build environment when recompiling in V2008 C++. For example open the Hercules SLN file and then in V2008 C++ next to the "green arrow" select "Release" and "WIN32" in the two drop downs for WIN32. Then rebuild. Works a treat and rebuilds libraries to something like: D:/hercules/svn/trunk/msvc.debug.dllmod.bin/ 4)To start up new version - I use Hercules Gui.... Open configuration file in HercGui. Change prefrences to point to library in 3 and Power Up. Problems.... a)The TUNTAP routines now seem to be unable to load some MFC run time libraries. In particular MFCN42D.DLL. Works OK with the distributed 3.06 level of Hercules. b) Fish's new HercPrt modifiction is unable to open the socket assigned to the printer. I get the following error message: HHCSD014E Failed to bind or listen on socket 192.168.1.20:1403: The requested address is not valid in its context. 13:40:57.640 0000260C HHCCF044E Initialization failed for device 000F The configuration statement looks like:- 000F 1403 192.168.1.20:1403 sockdev I have HercPrt running waiting to connect on port 1403. Any ideas Fish? |
|
|
RE: Re: "MSVC" Hercules Build Instructions updated-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 ed666169 wrote: > Hi, > > I just tried to re-compile using Fish's instructions and had to > do the following to get it to compile cleanly:- > > First you'll need a SVN client. I downloaded TortoiseSVN. Point it > at the SVN as per the URL in Fish's instructions and the source will > be downloded. > > 1) Download UnixUtils, extract and put C:\UnxUtils\usr\local\wbin > in your path. This will then pick up "Touch" command. (ACK!) Gosh darn it all! (grumble) <me: kicks self> I forgot about makefile.bat using 'touch'. When I wrote it I made a note to go back and fix that because I knew Windows didn't have a touch utility, but completely forgot. Sorry about that. I'll get that fixed for you. You shouldn't need any special tools to build Herc with. If you have them then great, but you shouldn't NEED them. > 2) Download "RunJobs-1.1.2" and place "Runjobs.exe" in a directory > in your path. I stuck it in the same path as 1. The program "RunJobs" > is required to get the rebuild to work. Actually it isn't. It's only required for "All" type builds (e.g. "Debug-All", "Release-All" or "All-All"), but for normal "Debug" and/or "Release" builds (which is all most people are interested in) it's not used. Only "Power Developers" use RunJobs to build all the various different build configurations for all the various different supported platforms all in parallel so that they all get built lickity-split by that fancy-schmancy multi-core (multi-cpu) system they're doing their Hercules development on. ;-) But for most people who just want to build a normal "Release" version of Hercules for a specific target platform (Win32 or x64), then runjobs isn't needed as it will never be used. It should also be pointed out that you can also build ALL of the various different configuration for all the various different platforms <cough> "all at once" <cough> WITHOUT runjobs by simply using Visual Studio's [incredibly lame] "Batch Build" facility. Just select 'Batch build...' from Visual Studio's 'Build' menu, select which configurations you want to build, and then click "Rebuild" button. All selected configurations will then be built as a "batch". They will NOT be built in parallel however. Instead, they're built serially, one after the other. RunJobs was written to specifically address that [in my opinion] serious shortcoming in Microsoft's product. So yes, RunJobs is needed to build any of the "xxxx-All" configurations, but it's NOT needed if you're only interested in building one specific configuration. > 3) Make sure you select the correct build environment when > recompiling in V2008 C++. For example open the Hercules > SLN file and then in V2008 C++ next to the "green arrow" > select "Release" and "WIN32" in the two drop downs for > WIN32. Then rebuild. Works a treat and rebuilds libraries > to something like: D:/herc/svn/trunk/msvc.debug.dllmod.bin/ Ummm, you say to select "Release|Win32" (which is correct! That's the build configuration most everyone SHOULD be selecting when they want to build Herc for themselves (either that or "Release|x64" of course)), but then you say the directory where the results are placed is "msvc.DEBUG.dllmod.bin"!! (emphasis mine) That's not right. :) When you do a RELEASE build, the results will be placed in "msvc.dllmod.bin", not msvc.debug.dllmod.bin. "msvc.debug.dllmod.bin" is where DEBUG configuration builds get placed (e.g. "Debug|Win32"). > 4)To start up new version - I use Hercules Gui.... > Open configuration file in HercGui. Change prefrences > to point to library in 3 and Power Up. > > Problems.... > > a) The TUNTAP routines now seem to be unable to load some > MFC run time libraries. In particular MFCN42D.DLL. Works > OK with the distributed 3.06 level of Hercules. That's because you built a DEBUG build of Hercules (and are now trying to run it) instead of a RELEASE build! Unless you have the full Professional Edition of Visual Studio (instead of just the "Express" edition that you probably have) you aren't going to have the necessary debug versions of the MFC dlls. Notice the name of the DLL you mentioned just above: "MFCN42D.DLL". See that 'D' following the "MFCN"? That means "Debug". Since MFC doesn't come with the Express edition of Visual C++ (Professional or greater only) that's why you got your error. Stick with "Release" builds and everything should work fine. > b) Fish's new HercPrt modifiction is unable to open the > socket assigned to the printer. I get the following > error message: > > HHCSD014E Failed to bind or listen on socket 192.168.1.20:1403: > The requested address is not valid in its context. > HHCCF044E Initialization failed for device 000F > > The configuration statement looks like:- > 000F 1403 192.168.1.20:1403 sockdev > > I have HercPrt running waiting to connect on port 1403. > > Any ideas Fish? Yeah: trying using the IP address of your actual network card. :) Open a command-prompt window and enter the command "ipconfig ". Use the IP address that's listed for your Local Area Connection and try again. If you ARE using the correct IP address, then the port# you chose may not be available. "netstat -n" will display all the ones currently in use. Choose one that's not in use (but greater than 1024) and try again. All in all not half bad Ed! Well done! I admire your initiative. :) I'll try to get that 'touch' dependency fixed for as soon as I can. It's late though and I'm getting tired so it may have to wait until tomorrow, but rest assured it WILL get fixed. Thanks for sharing your experience with building Herc for yourself from source. That was good feedback. Much appreciated. - -- "Fish" (David B. Trout) - fish@... Fight Spam! Join CAUCE! <http://www.cauce.org/> 7 reasons why HTML email is a bad thing http://www.georgedillon.com/web/html_email_is_evil.shtml PGP key fingerprints: DH/DSS: 9F9B BAB0 BA7F C458 1A89 FE26 48F5 D7F4 C4EE 3E2A RSA: 6B37 7110 7201 9917 9B0D 99E3 55DB 5D58 FADE 4A52 -----BEGIN PGP SIGNATURE----- Version: PGP Desktop 9.8.0 (Build 2158) Charset: us-ascii wj8DBQFKylMVSPXX9MTuPioRAn+OAKCIBUUyDJF3r7byO8XRkPCUfIitzwCeIQUq Iw76xRz4aec1z8ixgxs8UR8= =0ubn -----END PGP SIGNATURE----- |
| Free embeddable forum powered by Nabble | Forum Help |