28 mar 2007 kl. 22.50 skrev Francesco Montorsi:

> Hi,
>
> Bengt Nilsson ha scritto:
>> I got further when I commented out the wxICON line.
>> But I saw this in docview.cpp:
>> // Include icon header
>> #if defined(__WXGTK__) || defined(__WXMOTIF__)
>>    #include "mondrian.xpm"
>> #endif
>>
>> Should there be a || __WXMAC__ also?
> yes

I added this condition, and this now works.

>
>> Or am I expected to have __WXGTK__?
> no
>
>
>> Anyway, I got more errors:
>> Linking CXX executable mars
>> cd /Users/bnilsson/Programming/OpenSource/wxArt2Dbuild/apps/mars &&
>> /opt/local/bin/cmake -P CMakeFiles/mars.dir/cmake_clean_target.cmake
>> cd /Users/bnilsson/Programming/OpenSource/wxArt2Dbuild/apps/mars &&
>> /usr/bin/c++     -headerpad_max_install_names -fPIC
> I see you're compiling in shared mode... try to build wxWidgets and  
> then wxArt2d
> in static mode...

I will try it after this mail

>
>> "CMakeFiles/mars.dir/src/docframe.o"
>> "CMakeFiles/mars.dir/src/document.o" "CMakeFiles/mars.dir/src/docv.o"
>> "CMakeFiles/mars.dir/src/elements.o"
>> "CMakeFiles/mars.dir/src/mastertool.o"
>> "CMakeFiles/mars.dir/src/object.o" "CMakeFiles/mars.dir/src/page.o"
>> "CMakeFiles/mars.dir/src/part.o" "CMakeFiles/mars.dir/src/ 
>> view.o"   -o
>> mars  -L/Users/bnilsson/Programming/OpenSource/wxArt2Dbuild/lib
>> -L/opt/local/bin/../lib
>> -L/Users/bnilsson/Programming/OpenSource/wxArt2Dbuild/lib/
>> -L/opt/local/lib -lwxart2d_macud_aggdrawer-2.8
>> -lwxart2d_macud_curves-2.8 -lwxart2d_macud_editor-2.8
>> -lwxart2d_macud_canextobj-2.8 -lwxart2d_macud_canvas-2.8
>> -lwxart2d_macud_artbase-2.8 -lwxart2d_macud_docview-2.8
>> -lwxart2d_macud_svgio-2.8 -lwxart2d_macud_gdsio-2.8
>> -lwxart2d_macud_xmlparse-2.8 -lwxart2d_macud_general-2.8 -lkbool
>> -lantigrain -lexpat -L/opt/local/lib -framework QuickTime -framework
>> IOKit -framework Carbon -framework Cocoa -framework System
>> -lwx_macud_stc-2.8 -lwx_macud-2.8 -lpng -lz -ljpeg -ltiff -framework
>> WebKit -lwxregexud-2.8 -lpthread -liconv -lwxart2d_macud_editor-2.8
>> -lwxart2d_macud_canvas-2.8 -lwxart2d_macud_xmlparse-2.8
> the order of the libs is not perfect here: the wxart2d_* libs must  
> _all_ come
> before the wx_* ones.
> If you haven't already tried, move the _editor, the _canvas, the  
> _xmlparse libs
> (which are duplicated from those above).

I will try it, but is this really the cause of all this?

>
>> /usr/bin/ld: multiple definitions of symbol
>> a2dSmrtPtr<a2dMultiSelectGroup>::PointerListInit()
>> CMakeFiles/mars.dir/src/docframe.o definition of
>> a2dSmrtPtr<a2dMultiSelectGroup>::PointerListInit()         in section
>> (__TEXT,__text)
>> CMakeFiles/mars.dir/src/document.o definition of
>> a2dSmrtPtr<a2dMultiSelectGroup>::PointerListInit()         in section
>> (__TEXT,__text)
> it looks like both docframe.o and document.o contain the definition of
> a2dSmrtPtr<a2dMultiSelectGroup>::PointerListInit.
>
> You can use "nm" on these object files to check if "it's true"...

It really contains a lot of stuff

nm docframe.o | grep a2dSmrtPtr

0001304c S __ZN10a2dSmrtPtrI11a2dBaseToolE15PointerListInitEv
0001a8cc S __ZN10a2dSmrtPtrI11a2dBaseToolE15PointerListInitEv.eh
000130b4 S __ZN10a2dSmrtPtrI11a2dBaseToolE18RmvFromPointerListEv
0001a920 S __ZN10a2dSmrtPtrI11a2dBaseToolE18RmvFromPointerListEv.eh
00013068 S __ZN10a2dSmrtPtrI11a2dBaseToolEC1Ev
0001a8f4 S __ZN10a2dSmrtPtrI11a2dBaseToolEC1Ev.eh
0001312c S __ZN10a2dSmrtPtrI11a2dBaseToolED1Ev
0001a974 S __ZN10a2dSmrtPtrI11a2dBaseToolED1Ev.eh
000086f4 T __ZN10a2dSmrtPtrI19a2dMultiSelectGroupE15PointerListInitEv
00000000 A __ZN10a2dSmrtPtrI19a2dMultiSelectGroupE15PointerListInitEv.eh
000087a8 T __ZN10a2dSmrtPtrI19a2dMultiSelectGroupE16AddToPointerListEv
00000000 A  
__ZN10a2dSmrtPtrI19a2dMultiSelectGroupE16AddToPointerListEv.eh
0000899c T __ZN10a2dSmrtPtrI19a2dMultiSelectGroupE18RmvFromPointerListEv
00000000 A  
__ZN10a2dSmrtPtrI19a2dMultiSelectGroupE18RmvFromPointerListEv.eh



>
>
>> ..and so on a few thousand lines.
> all about multiple definitions? and all about templates ?

all about definitions, I searched for the word "template" in the  
terminal text mass and go no hit.

>
> HTH,
> Francesco
>
>
> ---------------------------------------------------------------------- 
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wxart2d-users_dev mailing list
> Wxart2d-users_dev@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to