Hi the other weekend I spend some hours figuring out how to build gpsim on Mac OS X. So I'm sharing my recepie here:
This was done Mac OS X 10.5 / Leopard 1. Get the source code for version 0.22.0 http://sourceforge.net/projects/gpsim/ I just downloaded the file: gpsim-0.22.0.tar.gz 2. Get and install MacPorts http://www.macports.org/ 3. From the Terminal command line install the following packages using MacPort as follows: sudo port install pkg-config sudo port install gtk2 sudo port install gtk2-extra sudo port install popth I think I installed automake also but I'm not sure if that is required. 4. Edit/fix gpsim/main.cc file as follows: File: gpsim/main.cc change line: optCon = poptGetContext(0, argc, (char **)argv, optionsTable, 0); to: optCon = poptGetContext(0, argc, (const char **)argv, optionsTable, 0); 5. configure and compile as usual ./configure ./configure make make install You can also configure it to compile without the gui with the --disable-gui option. Note that even if you do not want the gui you need gtk2 and gt2-extra. 6. You can now launch if from the command line with: gpsim To use it without the gui you use the -i option. 7. To use it load a compiled code in from a .cod file (A small note: if the processor model you are using is not supported by gpsim, then the processor list shows empty! I think this is normal.) Hope this helps someone, as the instructions on the gpsim homepage at: http://www.dattalo.com/gnupic/gpsim.html Fail to mention some of the required packages and also there is an error I think main.cc file that is common to many programs using popth that surfaces with more strict (=modern?) compilers. Why am I posting this here? Well, because several times I've tried to join the gpsim mailing list but never been able to do that. br Kusti ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user