Compiling ADCH++ on POSIX
September 12, 2006 3 Comments
An early disclaimer; I am not a experienced POSIX user, and I’m certainly no expert at compiling ADCH++, but it’ll have to do.
The following libraries/commands are what I experienced I had to do when trying to compile ADCH++.
Create the directory ~/adch++/. (Or wherever/whatever you want to call it.)
Enter the directory, and download ADCH++ by doing “svn checkout https://svn.sourceforge.net/svnroot/adchpp/ –username anonymous”
Extract STLport in ~/adch++/, so you have ~/adch++/STLport/. Enter ~/adch++/STLport/build/lib and do ./configure, then do “make -f gcc.mak depend” and then “make -f gcc.mak install”.
Extract boost_1_33_1 so you have ~/adch++/boost_1_33_1/. Do ./configure, then “make” and then “make install”.
Extract swig anywhere, enter the directory it is in. Do ./configure, then “make” and then “make install”.
Enter ~/adch++/, and do “scons”.
Now, I should say that I encountered two problems. You may not experience them. Firstly; the variable ‘versionString’ was apparently unreachable, so I just removed it and put any string in quotes. So, s/versionString/”ADCH++”. Secondly; the variable ‘FULLVERSIONSTRING’ was also apparently unreachable, so I just removed it and put any string in quotes. So, s/FULLVERSIONSTRING/”ADCH++”.
Doing just “scons” will produce ADCH++ in ‘debug’ mode. If you want it in ‘release’ mode, do “scons mode=release”. (You can ofcourse specify ‘debug’ the same way.)
When scons is complete, enter ~/adch++/build. You will see either the debug or release directory (or both). Enter now ~/adch++/build/debug-default/bin/. And now do “./adchpp”. You should now have a working ADCH++!
The default port is 2780, but you can change that in ~/adch++/etc/. Open adchpp.xml and scroll down to the port, and enter whatever you want. (Remember, there is no default port in ADC.)
If you know something that isn’t necessary, please do tell. If you encounter any problems, I’d prefer the ADCH++ forum.