JuliaGraphics / Winston.jl

2D plotting for Julia
MIT License
171 stars 55 forks source link

Build problems with julia 0.5.0 dev #263

Closed ethomag closed 8 years ago

ethomag commented 8 years ago

I want to interface some external C++ libs, using @Keno 's amazing Cxx package and I have followed the instructions on https://github.com/Keno/Cxx.jl so my Make.user looks like:

override LLVM_ASSERTIONS=1
override BUILD_LLVM_CLANG=1
override USE_LLVM_SHLIB=1

I use this to build bleeding edge julia from master. using Winston works with a few deprecated warnings. But I can't get it to produce any plots:

master $ ./julia 
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-dev+3235 (2016-03-23 05:32 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit c29bff1* (0 days old master)
|__/                   |  x86_64-linux-gnu

julia> using Winston

WARNING: deprecated syntax "AbstractVecOrMat{T} (" at /home/ethomag/.julia/v0.5/Winston/src/Winston.jl:96.
Use "AbstractVecOrMat{T}(" instead.
WARNING: requiring "Dates" in module "Winston" did not define a corresponding module.
WARNING: module Winston should explicitly import * from Base
WARNING: Method definition deproject(Winston.LinearProjection, Any) in module Winston at /home/ethomag/.julia/v0.5/Winston/src/geom.jl:77 overwritten at /home/ethomag/.julia/v0.5/Winston/src/geom.jl:85.
WARNING: super(T::DataType) is deprecated, use supertype(T) instead.
 [inlined code] from ./error.jl:26
 in depwarn(::ASCIIString, ::Symbol) at ./deprecated.jl:64
 in super(::DataType) at ./deprecated.jl:50
 in #iniattr#89(::Array{Any,1}, ::Any, ::Winston.HalfAxisX) at /home/ethomag/.julia/v0.5/Winston/src/Winston.jl:2677
 [inlined code] from ./boot.jl:307
 in (::Winston.##call#35#36)(::Array{Any,1}, ::Type{T}) at /home/ethomag/.julia/v0.5/Winston/src/Winston.jl:2676
 [inlined code] from ./boot.jl:307
 in (::Winston.##call#41#42)(::Array{Any,1}, ::Type{T}) at /home/ethomag/.julia/v0.5/Winston/src/Winston.jl:1038
 in include(::ASCIIString) at ./boot.jl:240
 in include_from_node1(::ASCIIString) at ./loading.jl:417
 in eval(::Module, ::Any) at ./boot.jl:243
 [inlined code] from ./sysimg.jl:11
 in require(::Symbol) at ./loading.jl:348
 in eval(::Module, ::Any) at ./boot.jl:243
while loading /home/ethomag/.julia/v0.5/Winston/src/Winston.jl, in expression starting on line 2814
WARNING: Base.LambdaStaticData is deprecated, use LambdaInfo instead.
  likely near /home/ethomag/.julia/v0.5/Tk/src/core.jl:115

julia> plot(1:10, 1:10)
Error showing value of type Winston.FramedPlot:
ERROR: type ##11#22 has no field code

This will open a broken, empty X frame.

JeffBezanson commented 8 years ago

Fixed on Tk and Winston master.