dontpanic92 / wxGo

Golang wxWidgets Wrapper
Other
403 stars 51 forks source link

go get compile error #59

Closed undeadindustries closed 6 years ago

undeadindustries commented 6 years ago

Any idea why I would get this on go get? (Ubuntu 18.04 fresh install)

WORK=/tmp/go-build168990271
mkdir -p $WORK/b001/
cd /home/myusername/go/src/github.com/dontpanic92/wxGo/wx
CGO_LDFLAGS='"-g" "-O2" "-L/home/myusername/go/src/github.com/dontpanic92/wxGo/wx/linux_amd64/lib" "-lwx_gtk3u_xrc-3.1" "-lwx_gtk3u_webview-3.1" "-lwx_gtk3u_stc-3.1" "-lwx_gtk3u_richtext-3.1" "-lwx_gtk3u_ribbon-3.1" "-lwx_gtk3u_propgrid-3.1" "-lwx_gtk3u_aui-3.1" "-lwx_gtk3u_media-3.1" "-lwx_gtk3u_gl-3.1" "-lwx_gtk3u_qa-3.1" "-lwx_baseu_net-3.1" "-lwx_gtk3u_html-3.1" "-lwx_gtk3u_adv-3.1" "-lwx_gtk3u_core-3.1" "-lwx_baseu_xml-3.1" "-lwx_baseu-3.1" "-lwxscintilla-3.1" "-lwxregexu-3.1" "-lgtk-3" "-lgdk-3" "-lcairo-gobject" "-lwebkitgtk-3.0" "-pthread" "-lstdc++" "-lGL" "-lGLU" "-lgthread-2.0" "-lX11" "-lXxf86vm" "-lSM" "-lpangocairo-1.0" "-lpango-1.0" "-latk-1.0" "-lcairo" "-lnotify" "-lgdk_pixbuf-2.0" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "-lpng" "-ljpeg" "-ltiff" "-lexpat" "-lz" "-ldl" "-lm" "-lgstreamer-1.0" "-lgstvideo-1.0"' /usr/lib/go-1.10/pkg/tool/linux_amd64/cgo -objdir $WORK/b001/ -importpath github.com/dontpanic92/wxGo/wx -- -I/home/myusername/go/src/github.com/dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I/home/myusername/go/src/github.com/dontpanic92/wxGo/wx/linux_amd64/ -I $WORK/b001/ -g -O2 ./setup_linux_amd64.go ./wx_linux.go
cd $WORK
gcc -fno-caret-diagnostics -c -x c - || true
gcc -Qunused-arguments -c -x c - || true
gcc -fdebug-prefix-map=a=b -c -x c - || true
gcc -gno-record-gcc-switches -c -x c - || true
cd $WORK/b001
gcc -I /home/myusername/go/src/github.com/dontpanic92/wxGo/wx -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I/home/myusername/go/src/github.com/dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I/home/myusername/go/src/github.com/dontpanic92/wxGo/wx/linux_amd64/ -I ./ -g -O2 -o ./_x001.o -c _cgo_export.c
gcc -I /home/myusername/go/src/github.com/dontpanic92/wxGo/wx -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I/home/myusername/go/src/github.com/dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I/home/myusername/go/src/github.com/dontpanic92/wxGo/wx/linux_amd64/ -I ./ -g -O2 -o ./_x002.o -c setup_linux_amd64.cgo2.c
gcc -I /home/myusername/go/src/github.com/dontpanic92/wxGo/wx -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I/home/myusername/go/src/github.com/dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I/home/myusername/go/src/github.com/dontpanic92/wxGo/wx/linux_amd64/ -I ./ -g -O2 -o ./_x003.o -c wx_linux.cgo2.c
cd $WORK
g++ -fno-caret-diagnostics -c -x c - || true
g++ -Qunused-arguments -c -x c - || true
g++ -fdebug-prefix-map=a=b -c -x c - || true
g++ -gno-record-gcc-switches -c -x c - || true
cd /home/myusername/go/src/github.com/dontpanic92/wxGo/wx
g++ -I . -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I/home/myusername/go/src/github.com/dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I/home/myusername/go/src/github.com/dontpanic92/wxGo/wx/linux_amd64/ -I $WORK/b001/ -g -O2 -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 -o $WORK/b001/_x004.o -c wx_wrap_linux.cxx
cd $WORK/b001
gcc -I /home/myusername/go/src/github.com/dontpanic92/wxGo/wx -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I/home/myusername/go/src/github.com/dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I/home/myusername/go/src/github.com/dontpanic92/wxGo/wx/linux_amd64/ -I ./ -g -O2 -o ./_cgo_main.o -c _cgo_main.c
cd /home/myusername/go/src/github.com/dontpanic92/wxGo/wx
g++ -I . -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -o $WORK/b001/_cgo_.o $WORK/b001/_cgo_main.o $WORK/b001/_x001.o $WORK/b001/_x002.o $WORK/b001/_x003.o $WORK/b001/_x004.o -g -O2 -L/home/myusername/go/src/github.com/dontpanic92/wxGo/wx/linux_amd64/lib -lwx_gtk3u_xrc-3.1 -lwx_gtk3u_webview-3.1 -lwx_gtk3u_stc-3.1 -lwx_gtk3u_richtext-3.1 -lwx_gtk3u_ribbon-3.1 -lwx_gtk3u_propgrid-3.1 -lwx_gtk3u_aui-3.1 -lwx_gtk3u_media-3.1 -lwx_gtk3u_gl-3.1 -lwx_gtk3u_qa-3.1 -lwx_baseu_net-3.1 -lwx_gtk3u_html-3.1 -lwx_gtk3u_adv-3.1 -lwx_gtk3u_core-3.1 -lwx_baseu_xml-3.1 -lwx_baseu-3.1 -lwxscintilla-3.1 -lwxregexu-3.1 -lgtk-3 -lgdk-3 -lcairo-gobject -lwebkitgtk-3.0 -pthread -lstdc++ -lGL -lGLU -lgthread-2.0 -lX11 -lXxf86vm -lSM -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo -lnotify -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lpng -ljpeg -ltiff -lexpat -lz -ldl -lm -lgstreamer-1.0 -lgstvideo-1.0
# github.com/dontpanic92/wxGo/wx
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwebkitgtk-3.0
/usr/bin/x86_64-linux-gnu-ld: cannot find -lGLU
/usr/bin/x86_64-linux-gnu-ld: cannot find -lnotify
/usr/bin/x86_64-linux-gnu-ld: cannot find -ljpeg
/usr/bin/x86_64-linux-gnu-ld: cannot find -ltiff
/usr/bin/x86_64-linux-gnu-ld: cannot find -lgstreamer-1.0
/usr/bin/x86_64-linux-gnu-ld: cannot find -lgstvideo-1.0
collect2: error: ld returned 1 exit status
# github.com/dontpanic92/wxGo/wx
wx_wrap_linux.cxx: In function ‘void _wrap_SVGFileDC_SetClippingRegion__SWIG_3_wx_d5626d6e57cb98ce(wxSVGFileDC*, wxRegion*)’:
wx_wrap_linux.cxx:28836:52: warning: ‘void wxDC::SetClippingRegion(const wxRegion&)’ is deprecated [-Wdeprecated-declarations]
   (arg1)->SetClippingRegion((wxRegion const &)*arg2);
                                                    ^
In file included from dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:14:0,
                 from wx_wrap_linux.cxx:254:
dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include/wx/dc.h:949:30: note: declared here
     wxDEPRECATED_INLINE(void SetClippingRegion(const wxRegion& region),
                              ^
dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include/wx/defs.h:642:43: note: in definition of macro ‘wxDEPRECATED’
 #define wxDEPRECATED(x) wxDEPRECATED_DECL x
                                           ^
dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include/wx/dc.h:949:5: note: in expansion of macro ‘wxDEPRECATED_INLINE’
     wxDEPRECATED_INLINE(void SetClippingRegion(const wxRegion& region),
     ^~~~~~~~~~~~~~~~~~~
wx_wrap_linux.cxx: In function ‘bool _wrap_DataViewCustomRenderer_LeftClick_wx_d5626d6e57cb98ce(wxDataViewCustomRenderer*, wxPoint*, wxRect*, wxDataViewModel*, wxDataViewItem*, intgo)’:
wx_wrap_linux.cxx:69640:85: warning: ‘virtual bool wxDataViewCustomRendererBase::LeftClick(wxPoint, wxRect, wxDataViewModel*, const wxDataViewItem&, unsigned int)’ is deprecated [-Wdeprecated-declarations]
   result = (bool)(arg1)->LeftClick(arg2,arg3,arg4,(wxDataViewItem const &)*arg5,arg6);
                                                                                     ^
In file included from dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:14:0,
                 from wx_wrap_linux.cxx:254:
dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include/wx/dvrenderers.h:284:22: note: declared here
         virtual bool LeftClick(wxPoint WXUNUSED(cursor),
                      ^
dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include/wx/defs.h:642:43: note: in definition of macro ‘wxDEPRECATED’
 #define wxDEPRECATED(x) wxDEPRECATED_DECL x
                                           ^
dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include/wx/dvrenderers.h:283:5: note: in expansion of macro ‘wxDEPRECATED_BUT_USED_INTERNALLY_INLINE’
     wxDEPRECATED_BUT_USED_INTERNALLY_INLINE(
     ^
wx_wrap_linux.cxx: In function ‘bool _wrap_DataViewCustomRenderer_Activate_wx_d5626d6e57cb98ce(wxDataViewCustomRenderer*, wxRect*, wxDataViewModel*, wxDataViewItem*, intgo)’:
wx_wrap_linux.cxx:69668:79: warning: ‘virtual bool wxDataViewCustomRendererBase::Activate(wxRect, wxDataViewModel*, const wxDataViewItem&, unsigned int)’ is deprecated [-Wdeprecated-declarations]
   result = (bool)(arg1)->Activate(arg2,arg3,(wxDataViewItem const &)*arg4,arg5);
                                                                               ^
In file included from dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:14:0,
                 from wx_wrap_linux.cxx:254:
dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include/wx/dvrenderers.h:276:22: note: declared here
         virtual bool Activate(wxRect WXUNUSED(cell),
                      ^
dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include/wx/defs.h:642:43: note: in definition of macro ‘wxDEPRECATED’
 #define wxDEPRECATED(x) wxDEPRECATED_DECL x
                                           ^
dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include/wx/dvrenderers.h:275:5: note: in expansion of macro ‘wxDEPRECATED_BUT_USED_INTERNALLY_INLINE’
     wxDEPRECATED_BUT_USED_INTERNALLY_INLINE(
     ^
wx_wrap_linux.cxx: In function ‘intgo _wrap_PGProperty_GetFlags_wx_d5626d6e57cb98ce(wxPGProperty*)’:
wx_wrap_linux.cxx:260533:75: warning: ‘wxPGProperty::FlagType wxPGProperty::GetFlags() const’ is deprecated: Use HasFlag or HasFlagsExact functions instead. [-Wdeprecated-declarations]
   result = (wxPGProperty::FlagType)((wxPGProperty const *)arg1)->GetFlags();
                                                                           ^
In file included from dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include/wx/propgrid/propgridiface.h:18:0,
                 from wx_wrap_linux.cxx:913:
dontpanic92/wxGo/wx/../wxWidgets/wxWidgets-3.1.0/include/wx/propgrid/property.h:1794:14: note: declared here
     FlagType GetFlags() const
              ^~~~~~~~
dontpanic92 commented 6 years ago

Some dependencies are missing. please make sure you installed the follwing packages:

According to the logs, it seems that libnotify-dev, libgtk-3-dev, libglu1-mesa-dev, libtiff-dev,libgstreamer1.0-dev, libwebkitgtk-3.0-dev are missing.

undeadindustries commented 6 years ago

That worked. Thanks!

Possibly list those dependencies in readme.md? That way you avoid duplicate tickets?

Thanks again.