elliotf / heekscad

Automatically exported from code.google.com/p/heekscad
0 stars 0 forks source link

Linker problem with wxPropertyGrid #303

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Ubuntu 10.04 64Bit
2. checkout latest version (1279)
3. install prerequisits
4. build (error messages attached)

I could succesfully build HeeksCad succesfully around two weeks ago on the very 
same PC.

I use wxPropGrid in my projects, too. It seems the version coming with wxPack 
is brocken (since a longer time). As far as i know, the best way to use 
wxPropgrid Addon is to download src from 
http://wxpropgrid.sourceforge.net/cgi-bin/index?page=download and compile and 
install it in the system and replace files from wxPack. Since then in my 
application it is working well under Linux and Windows . But it seems you 
included propgrid files in the source which makes replacing difficult.

Best reguards.

Original issue reported on code.google.com by er12345...@googlemail.com on 27 Aug 2010 at 7:39

Attachments:

GoogleCodeExporter commented 8 years ago
it appears that the changes made to -r 1276 broke things for a stock 
Ubuntu10.04 system

Original comment by ddfalck2...@yahoo.com on 27 Aug 2010 at 9:05

GoogleCodeExporter commented 8 years ago
I reverted to stdafx.h from rev 1275 and it builds

Original comment by ddfalck2...@yahoo.com on 27 Aug 2010 at 10:55

GoogleCodeExporter commented 8 years ago
Thanks, with this version of the file it is build here too.
> svn update -r 1275 stdafx.h
> make clean
> make install

But I can not execute a ZigZag operation anymore (have not tried others). On 
Execute Script i get:
python: /home/mic/HeeksCAD/HeeksCNC/opencamlib/src/cutters/cylcutter.cpp:31: 
ocl::CylCutter::CylCutter(): Assertion `0' 

Original comment by er12345...@googlemail.com on 28 Aug 2010 at 11:31

GoogleCodeExporter commented 8 years ago
I copied this from Chris Peterson's notes on the Ubuntu build wiki page. This 
is the same issue:
Just wanted to state here that I was having all sorts of issues building this 
on Ubuntu. I kept getting errors similar to the following during linking: {{{ 
manager.o: In function `wxPropertyGridManager::SetSplitterLeft(bool, bool)': 
/home/me/Projects/HeeksCAD/src/manager.cpp:1701: undefined reference to 
`wxLogDebug(wchar_t const*, ...)' manager.o: In function 
`wxPropertyGridManager::OnPropertyGridSelect(wxPropertyGridEvent&)': 
/home/me/Projects/HeeksCAD/src/manager.cpp:1719: undefined reference to 
`wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*)' 
manager.o: In function `wxPropertyGridManager::AppendCategory(wxString const&, 
wxString const&)': /home/me/Projects/HeeksCAD/src/manager.h:295: undefined 
reference to `wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, 
wchar_t const*)' manager.o: In function 
`wxPropertyGridManager::Append(wxPGProperty*)': 
/home/me/Projects/HeeksCAD/src/manager.h:302: undefined reference to 
`wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*)' 
/home/me/Projects/HeeksCAD/src/manager.h:303: undefined reference to 
`wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*)' 
manager.o: In function `wxPropertyGridManager::Append(wxString const&, wxString 
const&, wxString const&)': /home/me/Projects/HeeksCAD/src/manager.h:309: 
undefined reference to `wxOnAssert(wchar_t const*, int, char const*, wchar_t 
const*, wchar_t const*)' 
manager.o:/home/me/Projects/HeeksCAD/src/manager.h:310: more undefined 
references to `wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, 
wchar_t con }}} Doing in internet search yielded that {{{__WXDEBUG__}}} was 
being defined. Searching through the source did not turn up anything. After a 
bunch of trial and error, I found stdafx.h had the following at the top: {{{ 
#define _DEBUG 1 }}} Removing that line fixed all the linking issues for me.

Original comment by ddfalck2...@yahoo.com on 29 Aug 2010 at 2:08