I’m having a bit of trouble compiling today’s head of the svn tree using g++ as 
shipped with MacOS 10.9.5.

One failure is with two references to std::mem_fun() in header files. That goes 
away if I explicitly include <functional> beforehand.

The other failure is a missing -lpython when linking the sumo executable.

I did the following to build my existing checkout:

 svn update
 make distclean
 make -f Makefile.cvs
 ./configure --with-xerces-libraries=/opt/local/lib 
--with-xerces-includes=/opt/local/include --with-python
 make

Patches and linker error are included below.

TIA

- Tom


jpl$ g++ --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr 
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix



jpl$ svn diff src/utils/gui
Index: src/utils/gui/div/GLObjectValuePassConnector.h
===================================================================
--- src/utils/gui/div/GLObjectValuePassConnector.h      (revision 17668)
+++ src/utils/gui/div/GLObjectValuePassConnector.h      (working copy)
@@ -36,6 +36,7 @@
 #include <algorithm>
 #include <vector>
 #include <map>
+#include <functional>
 #include <utils/common/ValueSource.h>
 #include <utils/common/ValueRetriever.h>
 #include <utils/gui/globjects/GUIGlObject.h>
Index: src/utils/gui/div/GUIParameterTableWindow.h
===================================================================
--- src/utils/gui/div/GUIParameterTableWindow.h (revision 17668)
+++ src/utils/gui/div/GUIParameterTableWindow.h (working copy)
@@ -35,6 +35,7 @@
 #include <vector>
 #include <string>
 #include <algorithm>
+#include <functional>
 #include <fx.h>
 #include <utils/foxtools/MFXMutex.h>
 #include <utils/common/ValueSource.h>




libtool: link: g++ -O2 -DNDEBUG -msse2 -mfpmath=sse -o sumo sumo_main.o 
./microsim/MSMoveReminder.o -Wl,-bind_at_load  ./netload/libnetload.a 
./microsim/libmicrosim.a ./microsim/cfmodels/libmicrosimcfmodels.a 
./microsim/lcmodels/libmicrosimlcmodels.a ./microsim/devices/libmicrosimdevs.a 
./microsim/output/libmicrosimoutput.a ./microsim/trigger/libmicrosimtrigger.a 
./microsim/actions/libmsactions.a ./microsim/traffic_lights/libmicrosimtls.a 
./microsim/pedestrians/libmicrosimpeds.a ./utils/geom/libgeom.a 
./utils/vehicle/libvehicle.a ./utils/shapes/libshapes.a 
./utils/emissions/libemissions.a ./traci-server/libtraciserver.a 
./utils/traci/libtraci.a ./utils/options/liboptions.a ./utils/xml/libxml.a 
./utils/common/libcommon.a ./utils/importio/libimportio.a 
./utils/iodevices/libiodevices.a ./foreign/tcpip/libtcpip.a -lxerces-c 
-L/opt/local/lib -lFOX-1.6 -lX11 -lXext -lfreetype -lXft -lXcursor -lXrender 
-lXrandr -lXfixes -lXi -ldl -lpthread -ljpeg -lpng -ltiff -lz -lbz2 -lGLU -lGL
Undefined symbols for architecture x86_64:
  "_PyArg_ParseTuple", referenced from:
      traciemb_execute(_object*, _object*) in libtraciserver.a(TraCIServer.o)
…


------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
sumo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-devel

Reply via email to