Closed GoogleCodeExporter closed 8 years ago
Hello,
wxWidgets 3.0 support is still experimental.
Could you try to use wxWidgets 2.8 or 2.9, please?
Original comment by neomil...@gmail.com
on 6 Jul 2014 at 11:22
in the previous case, i had installed
$ pacman -Q | grep -i wx
wxgtk 3.0.1-1
wxgtk2.8 2.8.12.1-1
wxpython 3.0.0.0-2
wxpython2.8 2.8.12.1-1
After build and install package wxwidgets 2.8.12-1
$ pacman -Q | grep -i wx
wxgtk 3.0.1-1
wxgtk2.8 2.8.12.1-1
wxpython 3.0.0.0-2
wxpython2.8 2.8.12.1-1
wxwidgets 2.8.12-1
$ cmake ..
-- The C compiler identification is GNU 4.9.0
-- The CXX compiler identification is GNU 4.9.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found wxWidgets: TRUE
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for module 'libarea'
-- package 'libarea' not found
-- libarea_INCLUDE_DIRS: /usr/local/include/area
-- libarea_LIBRARIES: /usr/local/lib/libarea.so
-- CMAKE_BUILD_TYPE:
-- CMAKE_INSTALL_PREFIX: /usr/local
-- Found PythonLibs: /usr/lib64/libpython3.4m.so (found version "3.4.1")
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so -
found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Found OpenGL: /usr/lib64/libGL.so
-- wxWidgets_LIBRARIES:
-L/usr/local/lib;-pthread;-Wl,-O1,--sort-common,--as-needed,-z,relro;;-lwx_base-
2.8;-lwx_gtk2_core-2.8;-lwx_gtk2_gl-2.8;-lwx_gtk2_aui-2.8
-- wxWidgets_ROOT_DIR:
-- wxWidgets_INCLUDE_DIRS:
/usr/local/lib/wx/include/gtk2-ansi-release-2.8;/usr/local/include/wx-2.8
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/user/Downloads/heeksbuild/heekscad/build
$ make
[ 1%] Building CXX object interface/CMakeFiles/heeksintf.dir/DoubleInput.cpp.o
[ 2%] Building CXX object interface/CMakeFiles/heeksintf.dir/Geom.cpp.o
[ 2%] Building CXX object interface/CMakeFiles/heeksintf.dir/HDialogs.cpp.o
[ 3%] Building CXX object
interface/CMakeFiles/heeksintf.dir/HeeksCADInterface.cpp.o
In file included from
/home/user/Downloads/heeksbuild/heekscad/interface/HeeksCADInterface.cpp:28:0:
/home/user/Downloads/heeksbuild/heekscad/src/GraphicsCanvas.h:54:41: error:
expected class-name before ',' token
class CGraphicsCanvas: public wxGLCanvas, public CViewport, Observer
^
/home/user/Downloads/heeksbuild/heekscad/interface/HeeksCADInterface.cpp: In
member function 'virtual wxWindow* CHeeksCADInterface::GetGraphicsCanvas()':
/home/user/Downloads/heeksbuild/heekscad/interface/HeeksCADInterface.cpp:108:29:
error: cannot convert 'CGraphicsCanvas*' to 'wxWindow*' in return
return wxGetApp().m_frame->m_graphics;
^
/home/user/Downloads/heeksbuild/heekscad/interface/HeeksCADInterface.cpp:109:1:
warning: control reaches end of non-void function [-Wreturn-type]
}
^
interface/CMakeFiles/heeksintf.dir/build.make:123: recipe for target
'interface/CMakeFiles/heeksintf.dir/HeeksCADInterface.cpp.o' failed
make[2]: *** [interface/CMakeFiles/heeksintf.dir/HeeksCADInterface.cpp.o] Error
1
CMakeFiles/Makefile2:75: recipe for target
'interface/CMakeFiles/heeksintf.dir/all' failed
make[1]: *** [interface/CMakeFiles/heeksintf.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
After build and install package wxwidgets 3.0.1-1
$ pacman -Q | grep -i wx
wxgtk 3.0.1-1
wxgtk2.8 2.8.12.1-1
wxpython 3.0.0.0-2
wxpython2.8 2.8.12.1-1
wxwidgets 3.0.1-1
$ cmake ..
-- The C compiler identification is GNU 4.9.0
-- The CXX compiler identification is GNU 4.9.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found wxWidgets: TRUE
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for module 'libarea'
-- package 'libarea' not found
-- libarea_INCLUDE_DIRS: /usr/local/include/area
-- libarea_LIBRARIES: /usr/local/lib/libarea.so
-- CMAKE_BUILD_TYPE:
-- CMAKE_INSTALL_PREFIX: /usr/local
-- Found PythonLibs: /usr/lib64/libpython3.4m.so (found version "3.4.1")
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so -
found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Found OpenGL: /usr/lib64/libGL.so
-- wxWidgets_LIBRARIES:
-L/usr/local/lib;-pthread;;;-lwx_baseu-3.0;-lwx_gtk2u_core-3.0;-lwx_gtk2u_gl-3.0
;-lwx_gtk2u_aui-3.0
-- wxWidgets_ROOT_DIR:
-- wxWidgets_INCLUDE_DIRS:
/usr/local/lib/wx/include/gtk2-unicode-3.0;/usr/local/include/wx-3.0
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/user/Downloads/heeksbuild/heekscad/build
$ make
Scanning dependencies of target heeksintf
[ 1%] Building CXX object interface/CMakeFiles/heeksintf.dir/DoubleInput.cpp.o
...
[100%] Built target heekscad
$ heekscad-1.0.0
heekscad-1.0.0: error while loading shared libraries: libheekstinyxml.so.1.0.0:
cannot open shared object file: No such file or directory
After
sudo ln -s /usr/local/lib/libheekstinyxml.so.1.0.0
/usr/lib/libheekstinyxml.so.1.0.0
sudo ln -s /usr/local/lib/libheeksintf.so.1.0.0 /usr/lib/libheeksintf.so.1.0.0
or
cmake -DCMAKE_INSTALL_PREFIX=/usr .. & make & sudo make install
$ heekscad-1.0.0
heekscad-1.0.0: relocation error: /usr/lib/libheeksintf.so.1.0.0: symbol
_ZThn624_NK8wxChoice8GetCountEv, version WXU_3.0 not defined in file
libwx_gtk2u_core-3.0.so.0 with link time reference
Original comment by user0...@gmail.com
on 7 Jul 2014 at 11:42
Attachments:
Error seems to mention wxWidget 3.0 usage (WXU_3.0 not defined) while you
should be sure that it use only wxWidget 2.8 (never tried on 2.9 but "should
work").
So, there is an error there and you also have to be sure to follow this order:
- compile heekscad with wx2.8
- install heekscad (this is important: it also installed used files to compile plugins - ie. heekscnc)
- compile heekscnc against freshly installed heekscad and 2.8
- install it
Original comment by neomil...@gmail.com
on 14 Jul 2014 at 7:52
Hello,
matael updated packages HeeksCAD, HeeksCNC (and libarea) to AUR for ArchLinux.
Feel free to try these packages :-)
https://aur.archlinux.org/packages/heekscnc-svn/
For the record: problems come from an "auto-selection" of wx3.0 files while
wx2.8 is the only supported version ATM. So, to fix it matael forces wxWidget
2.8 usage at build time:
cmake -DCMAKE_INSTALL_PREFIX=/usr
-DwxWidgets_wxrc_EXECUTABLE='/usr/bin/wxrc-2.8'
-DwxWidgets_CONFIG_EXECUTABLE='/usr/bin/wx-config-2.8' ..
Original comment by neomil...@gmail.com
on 4 Aug 2014 at 3:56
Original issue reported on code.google.com by
user0...@gmail.com
on 5 Jul 2014 at 10:20Attachments: