Originally posted by arrow014
Ok, I finally found some time to start working on this on my Mandriva 2006 partition. I downloaded, built and installed SVN, checked out the source, ran autoconf, got errors, installed autoconf and automake packages, ran ./configure, got errors, installed the byacc package, ran ./configure and it seems to get through just about everything fine now;
Ok, I finally found some time to start working on this on my Mandriva 2006 partition. I downloaded, built and installed SVN, checked out the source, ran autoconf, got errors, installed autoconf and automake packages, ran ./configure, got errors, installed the byacc package, ran ./configure and it seems to get through just about everything fine now;
.
it generates a bunch of makefiles and then gives me a slightly wierd error:
...
config.status: creating ctp2_code/ui/Makefile
config.status: creating ctp2_code/ui/interface/Makefile
config.status: creating ctp2_code/os/include/config.h
config.status: executing depfiles commands
configure: configuring in ctp2_code/libs/anet
configure: running /bin/sh ctp2_code/os/autoconf/config/configure --prefix=/usr/local --cache-file=/dev/null --srcdir=.
/bin/sh: ctp2_code/os/autoconf/config/configure: No such file or directory
configure: error: /bin/sh ctp2_code/os/autoconf/config/configure failed for ctp2_code/libs/anet
Not sure what to do about this...is it really a problem? If so, any ideas what I need to do to fix it?
...
config.status: creating ctp2_code/ui/Makefile
config.status: creating ctp2_code/ui/interface/Makefile
config.status: creating ctp2_code/os/include/config.h
config.status: executing depfiles commands
configure: configuring in ctp2_code/libs/anet
configure: running /bin/sh ctp2_code/os/autoconf/config/configure --prefix=/usr/local --cache-file=/dev/null --srcdir=.
/bin/sh: ctp2_code/os/autoconf/config/configure: No such file or directory
configure: error: /bin/sh ctp2_code/os/autoconf/config/configure failed for ctp2_code/libs/anet
Not sure what to do about this...is it really a problem? If so, any ideas what I need to do to fix it?
Actually, I'm rather proud of myself for getting this far by myself...I really haven't had much success building stuff from sources in the past, but I've been learning a lot about Linux development lately and it's starting to work a lot better.
. Learning to use these autotools (especially understanding their error messages) can be an uphill struggle. Tip for the day: when you get a strange error, look up for the last non-strange line. In this case, the line that tells you what's really going wrong wasCode:
configure: configuring in ctp2_code/libs/anet
Tomorrow I'll try to get around to finishing those instructions in the post above (and adding a note about this problem), but once you've done those which are there, you should at least be able to get to the ctp2 main menu. Let me know if anything else stumps you
.

Whenever you see a crash when dereferencing a pointer cast to uint32 *, try to pass the pointer around or for a quick workaround cast to uint32 again. My vague guess is that this is a hack to provide a kind of unique id of an instance of an object. If so, an UUID algorithm placed somewhere (e.g. in ID class) could be an alternative.
Comment