For more on this issue see this thread: http://root.cern.ch/root/roottalk/roottalk03/2137.html -- Fons On Thu, 2003-10-09 at 00:11, cstrato wrote: > Dear Remi > > Thank you for trying my example. I am glad to hear that you can > reproduce my problem. > I hope that someone finds an explanation, otherwise we may have to wait > for Panther? > > Best regards > Christian > > Remi Mommsen wrote: > > > Hi Christian > > > > I tried your example on mac os x 10.2.8 and root 3.05/07 from fink. I > > see the same problem. I played with the linker option, but no solution > > so far. I'd like to try it with gcc 3.3 to see if that helps. However, > > I don't have much time right now to investigate. > > > > Concerning setting MACOSX_DEPLOYMENT_TARGET, the only thing it does in > > context of ROOT is to suppress the warning message. This will change > > with Panther AFAIK. > > > > Cheers, > > Remi > > > > > > On Wednesday, October 8, 2003, at 12:17 PM, cstrato wrote: > > > >> Dear Daniel > >> > >> Meanwhile I have set the variable in my startup shell script, and > >> no longer get the "warning dynamic shared library..." message. > >> > >> Sorrowly, this does NOT solve the problem with not being able > >> to create 3D histograms in the compiled code. > >> > >> Are you and other Mac users able to compile and run my example > >> "HistGui" without problems? > >> > >> Best regards > >> Christian > >> > >> > >> daniel cussol wrote: > >> > >>> cstrato a écrit: > >>> > >>>> > >>>> Dear MacRooters > >>>> > >>>> The following problem seems to be Mac-specific: > >>>> I have created a GUI macro to draw 1D-, 2D-, and 3D-histograms > >>>> (see attached macro histGuiMacro.C). > >>>> When I run this macro from root, I can display all histograms. > >>>> The same is true when I compile the macro with ACLiC. > >>>> > >>>> However, when I compile the macro code as a standalone program > >>>> (see attached files HistGui.h, HistGui.cxx, Makefile4HistGui), > >>>> then I can only create 1D and 2D histograms, but when I try to > >>>> create a 3D histogram, the following error message is displayed: > >>>> > >>>> Error: class,struct,union or type $TPolyMarker3D not defined > >>>> FILE:(tmpfile) LINE:1 > >>>> Error: class,struct,union or type $TPolyMarker3D not defined > >>>> FILE:(tmpfile) LINE:1 > >>>> Error: Function PaintH3((TH1*)0x2895af0,"scat") is not defined in > >>>> current scope FILE:(tmpfile) LINE:1 > >>>> Possible candidates are... > >>>> filename line:size busy function type and name *** > >>>> Interpreter error recovered *** > >>>> > >>>> When I compile my program on my Mac (MacOS X 10.2.4, root 3.10/00), > >>>> the following messages are displayed: > >>>> > >>>> [TiBookie:~/ROOT/rootcode/histgui] rabbitus% make -f MakeFile4HistGui > >>>> c++ -O -pipe -Wall -I/Users/rabbitus/ROOT/root/include -c HistGui.cxx > >>>> c++ -O -Xlinker -bind_at_load -flat_namespace HistGui.o > >>>> HistGuiDict.o -L/Users/rabbitus/ROOT/root/lib -lCore -lCint -lHist > >>>> -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix > >>>> -lPhysics -lGui -u _G__cpp_setup_initializerG__Tree -lm -L/sw/lib > >>>> -ldl -o HistGui > >>>> ld: warning dynamic shared library: > >>>> /Users/rabbitus/ROOT/root/lib/libGraf.dylib not made a weak library > >>>> in output with MACOSX_DEPLOYMENT_TARGET environment variable set > >>>> to: 10.1 > >>>> ld: warning dynamic shared library: > >>>> /Users/rabbitus/ROOT/root/lib/libGpad.dylib not made a weak library > >>>> in output with MACOSX_DEPLOYMENT_TARGET environment variable set > >>>> to: 10.1 > >>>> ld: warning dynamic shared library: > >>>> /Users/rabbitus/ROOT/root/lib/libMatrix.dylib not made a weak > >>>> library in output with MACOSX_DEPLOYMENT_TARGET environment > >>>> variable set to: 10.1 > >>>> ld: warning dynamic shared library: /sw/lib/libdl.dylib not made a > >>>> weak library in output with MACOSX_DEPLOYMENT_TARGET environment > >>>> variable set to: 10.1 > >>>> HistGui done > >>>> > >>>> The output shows that libGraf3d is linked (-lGraf3d), but interestingly > >>>> there is no warning regarding libGraf3d.dylib. > >>>> It seems, that libGraf3d.dylib is not linked?? Is this the case? > >>>> > >>>> How can I link libGraf3d.dylib if this is the problem? > >>>> If not, what could be the problem and how can I solve it? > >>>> > >>>> Thank you in advance. > >>>> > >>>> P.S.: I have already sent this mail yesterday to roottalk, but for > >>>> some reason it did not get thru to the mailing-list. > >>>> Is roottalk@pcroot.cern.ch still the correct address? > >>>> > >>>> Best regards > >>>> Christian > >>>> _._._._._._._._._._._._._._._._ > >>>> C.h.i.s.t.i.a.n S.t.r.a.t.o.w.a > >>>> V.i.e.n.n.a A.u.s.t.r.i.a > >>>> _._._._._._._._._._._._._._._._ > >>>> > >>>> > >>> Hello Christian, > >>> It seems that your MACOSX_DEPLOYMENT_TARGET environment variable is > >>> not set correctly. Your should set it to 10.2, since you are running > >>> under system 10.2.4, and see if it fixes your problem. > >>> I hope this helps > >>> Regards > >>> > >> > >> > >> > > > > > > --------------------------------------------------------------------- > > If it's green, it's biology. If it stinks, it's chemistry. If it has > > numbers, it's math. If it doesn't work, it's technology. (anonymous) > > > > ********************************************************************* > > Remigius K. Mommsen e-mail: mommsen@slac.stanford.edu > > University of California, Irvine URL: http://cern.ch/mommsen > > c/o SLAC voice: ++1 (650) 926-3595 > > 2575 Sand Hill Road #35 fax: ++1 (650) 926-3882 > > Menlo Park, CA 94025, US home: ++1 (650) 233-9041 > > ********************************************************************* > > > > > > -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://www.rademakers.org/fons/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET