For future reference, if you aren't intending to primarily contribute what you're working on back to M5, you should use m5-users. It's a fuzzy distinction but that's the going rule of thumb. More people will see your question that way too.
Gabe Quoting Cong Wang <[email protected]>: > Hi Nate: > I will following your advice in my SConstruct file. But I am not > sure if I will eventually put that code in M5. Thanks for your advice. > > Regards > James Wang > > > > On Fri, Jun 19, 2009 at 10:58 AM, nathan binkert<[email protected]> wrote: >>> Thanks Nate. I just added env.Append(LIBS=['bz2']) to my SConscript >>> and it works like charm now. Thank you for your quick reply. >> >> I'm not sure if you plan to eventually integrate your code into M5 >> itself, but if you do, that's not quite the correct way. You'll see >> this code in the SConstruct file: >> # Check for zlib. If the check passes, libz will be automatically >> # added to the LIBS environment variable. >> if not conf.CheckLibWithHeader('z', 'zlib.h', 'C++','zlibVersion();'): >> print 'Error: did not find needed zlib compression library '\ >> 'and/or zlib.h header file.' >> print ' Please install zlib and try again.' >> Exit(1) >> >> You should do the same thing replacing the zlib stuff with bz2 stuff. >> Something like this: >> >> # Check for libbz2. If the check passes, libbz2 will be automatically >> # added to the LIBS environment variable. >> if not conf.CheckLibWithHeader('bz2', 'bzlib.h', >> 'C++','BZ2_bzlibVersion();'): >> print 'Error: did not find needed libbz2 compression library '\ >> 'and/or bzlib.h header file.' >> print ' Please install bzlib and try again.' >> Exit(1) >> _______________________________________________ >> m5-dev mailing list >> [email protected] >> http://m5sim.org/mailman/listinfo/m5-dev >> > > > > -- > Regards > James Wang > _______________________________________________ > m5-dev mailing list > [email protected] > http://m5sim.org/mailman/listinfo/m5-dev > _______________________________________________ m5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/m5-dev
