I am trying to build mpl cvs on a computer on campus that I think is
the exact same Ubuntu install I have on my laptop at home. The build
is failing with this error:
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
src/_tkagg.cpp: In function 'int PyAggImagePhoto(void*, Tcl_Interp*,
int, char**)':
src/_tkagg.cpp:71: warning: unused variable 'srcstride'
src/_tkagg.cpp:72: warning: unused variable 'srcwidth'
./CXX/Extensions.hxx: In constructor
'Py::PythonExtension<T>::PythonExtension() [with T = BufferRegion]':
src/_backend_agg.h:49: instantiated from here
./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect
./CXX/Extensions.hxx: In constructor
'Py::PythonExtension<T>::PythonExtension() [with T = LazyValue]':
src/_transforms.h:27: instantiated from here
./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect
./CXX/Extensions.hxx: In constructor
'Py::PythonExtension<T>::PythonExtension() [with T = Func]':
src/_transforms.h:378: instantiated from here
./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect
./CXX/Extensions.hxx: In constructor
'Py::PythonExtension<T>::PythonExtension() [with T = FuncXY]':
src/_transforms.h:465: instantiated from here
./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect
./CXX/Extensions.hxx: In constructor
'Py::PythonExtension<T>::PythonExtension() [with T = Transformation]':
src/_transforms.h:537: instantiated from here
./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect
g++ -pthread -shared build/temp.linux-i686-2.4/src/_tkagg.o
build/temp.linux-i686-2.4/CXX/IndirectPythonInterface.o
build/temp.linux-i686-2.4/CXX/cxx_extensions.o
build/temp.linux-i686-2.4/CXX/cxxsupport.o
build/temp.linux-i686-2.4/CXX/cxxextensions.o -L/usr/lib/tcl8.4/../ -
L / u s r / l i b / t k 8 . 4 / . . / -L/usr/local/lib
-L/usr/local/lib -ltk8.4 -ltcl8.4 -lpng -lz -lstdc++ -lm -lfreetype
-lz -lstdc++ -lm -o
build/lib.linux-i686-2.4/matplotlib/backends/_tkagg.so
g++: L: No such file or directory
g++: u: No such file or directory
g++: s: No such file or directory
g++: r: No such file or directory
g++: l: No such file or directory
g++: i: No such file or directory
g++: b: No such file or directory
g++: t: No such file or directory
g++: k: No such file or directory
g++: 8: No such file or directory
g++: 4: No such file or directory
g++: -E or -x required when input is from standard input
g++: L: No such file or directory
g++: u: No such file or directory
g++: s: No such file or directory
g++: r: No such file or directory
g++: l: No such file or directory
g++: i: No such file or directory
g++: b: No such file or directory
g++: t: No such file or directory
g++: k: No such file or directory
g++: 8: No such file or directory
g++: 4: No such file or directory
g++: -E or -x required when input is from standard input
error: Command "g++ -pthread -shared
build/temp.linux-i686-2.4/src/_tkagg.o
build/temp.linux-i686-2.4/CXX/IndirectPythonInterface.o
build/temp.linux-i686-2.4/CXX/cxx_extensions.o
build/temp.linux-i686-2.4/CXX/cxxsupport.o
build/temp.linux-i686-2.4/CXX/cxxextensions.o -L/usr/lib/tcl8.4/../ -
L / u s r / l i b / t k 8 . 4 / . . / -L/usr/local/lib
-L/usr/local/lib -ltk8.4 -ltcl8.4 -lpng -lz -lstdc++ -lm -lfreetype
-lz -lstdc++ -lm -o
build/lib.linux-i686-2.4/matplotlib/backends/_tkagg.so" failed with
exit status 1
I have the tk8.4 and 8.4-dev package installed as well as g++ 4.0 and 3.4.
Any idea where this is coming from?
Thanks,
Ryan
This was on the dev list about a week or so ago.....
My current mpl cvs checkout wont build. I guess this is a problem
with my OS (gentoo), although I just built numpy and scipy without
problems. Could anyone suggest why
- L / u s r / l i b 6 4 / t k 8 . 4 / . . /
appears on line 2 instead of
-L/usr/lib64/tk8.4/../
I found the problem. In setupext.py, line 320, tk_lib is formatted as unicode
on my machine. I changed this:
o.tk_lib = os.path.join((tk.getvar('tk_library')), '../')
to this:
o.tk_lib = os.path.join(str(tk.getvar('tk_library')), '../')
and I can build mpl again.
changes in cvs.
ยทยทยท
On Thursday 02 February 2006 09:05, Darren Dale wrote:
On 2/9/06, Ryan Krauss <ryanlists@...287...> wrote:
I am trying to build mpl cvs on a computer on campus that I think is
the exact same Ubuntu install I have on my laptop at home. The build
is failing with this error:
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
src/_tkagg.cpp: In function 'int PyAggImagePhoto(void*, Tcl_Interp*,
int, char**)':
src/_tkagg.cpp:71: warning: unused variable 'srcstride'
src/_tkagg.cpp:72: warning: unused variable 'srcwidth'
./CXX/Extensions.hxx: In constructor
'Py::PythonExtension<T>::PythonExtension() [with T = BufferRegion]':
src/_backend_agg.h:49: instantiated from here
./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect
./CXX/Extensions.hxx: In constructor
'Py::PythonExtension<T>::PythonExtension() [with T = LazyValue]':
src/_transforms.h:27: instantiated from here
./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect
./CXX/Extensions.hxx: In constructor
'Py::PythonExtension<T>::PythonExtension() [with T = Func]':
src/_transforms.h:378: instantiated from here
./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect
./CXX/Extensions.hxx: In constructor
'Py::PythonExtension<T>::PythonExtension() [with T = FuncXY]':
src/_transforms.h:465: instantiated from here
./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect
./CXX/Extensions.hxx: In constructor
'Py::PythonExtension<T>::PythonExtension() [with T = Transformation]':
src/_transforms.h:537: instantiated from here
./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect
g++ -pthread -shared build/temp.linux-i686-2.4/src/_tkagg.o
build/temp.linux-i686-2.4/CXX/IndirectPythonInterface.o
build/temp.linux-i686-2.4/CXX/cxx_extensions.o
build/temp.linux-i686-2.4/CXX/cxxsupport.o
build/temp.linux-i686-2.4/CXX/cxxextensions.o -L/usr/lib/tcl8.4/../ -
L / u s r / l i b / t k 8 . 4 / . . / -L/usr/local/lib
-L/usr/local/lib -ltk8.4 -ltcl8.4 -lpng -lz -lstdc++ -lm -lfreetype
-lz -lstdc++ -lm -o
build/lib.linux-i686-2.4/matplotlib/backends/_tkagg.so
g++: L: No such file or directory
g++: u: No such file or directory
g++: s: No such file or directory
g++: r: No such file or directory
g++: l: No such file or directory
g++: i: No such file or directory
g++: b: No such file or directory
g++: t: No such file or directory
g++: k: No such file or directory
g++: 8: No such file or directory
g++: 4: No such file or directory
g++: -E or -x required when input is from standard input
g++: L: No such file or directory
g++: u: No such file or directory
g++: s: No such file or directory
g++: r: No such file or directory
g++: l: No such file or directory
g++: i: No such file or directory
g++: b: No such file or directory
g++: t: No such file or directory
g++: k: No such file or directory
g++: 8: No such file or directory
g++: 4: No such file or directory
g++: -E or -x required when input is from standard input
error: Command "g++ -pthread -shared
build/temp.linux-i686-2.4/src/_tkagg.o
build/temp.linux-i686-2.4/CXX/IndirectPythonInterface.o
build/temp.linux-i686-2.4/CXX/cxx_extensions.o
build/temp.linux-i686-2.4/CXX/cxxsupport.o
build/temp.linux-i686-2.4/CXX/cxxextensions.o -L/usr/lib/tcl8.4/../ -
L / u s r / l i b / t k 8 . 4 / . . / -L/usr/local/lib
-L/usr/local/lib -ltk8.4 -ltcl8.4 -lpng -lz -lstdc++ -lm -lfreetype
-lz -lstdc++ -lm -o
build/lib.linux-i686-2.4/matplotlib/backends/_tkagg.so" failed with
exit status 1
I have the tk8.4 and 8.4-dev package installed as well as g++ 4.0 and 3.4.
Any idea where this is coming from?
Thanks,
Ryan
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options