|
From: Ignacio E. <na...@gm...> - 2010-05-09 16:18:39
|
Thanks for your help Braden.
I added :
libboost_thread-mt.dylib
libxml2.2.dylib
libopenvrml.9.dylib
as you suggested and I could successfully run pretty_print.cpp , I got
my sample wrl file very well indented ;)
It seems that Xcode does not automatically pull dylibs.
Just one more question:
Is regarding sdl_viewer.cpp example
I added SDL headers and dylibs:
libSDL-1.2.0.dylib
libopenvrml-gl.8.dylib
besides the everything needed for pretty_print.cpp and I got one last
link error:
Undefined symbols:
"_main", referenced from:
start in crt1.10.6.o
(maybe you meant: _SDL_main)
ld: symbol(s) not found
collect2: ld returned 1 exit status
I get this error when compiling 10.5 and 10.6. with i386 arch.
Is this relevant to openvrml?
I want to be able to render some vrml in a GLUT or Cocoa window
(NSOpenGLView) , so I only need, libboost_thread, libxml, libopenvrml
and libopenvrml-gl. Is this correct?
Thanks in advance.
When I try to run the next example It
On Sun, May 9, 2010 at 12:04 PM, Braden McDaniel <br...@en...> wrote:
> On Sun, 2010-05-09 at 06:17 +0900, Ignacio Enriquez wrote:
>> Hi, all
>> Long time ago I did almost the same question:
>> http://old.nabble.com/NEWBIE:-using-openvrml-in-mac-OS-10.6-td26253956.html
>> I had troubles setting my project in Xcode with openvrml from Macports.
>>
>> Now, I did as suggested but I found that Xcode does not link necessary
>> dylibs. (They have to be explicitly added to the project)
>> sample: pretty_print.cpp compiles ok, but fails when linking.
>> So I dug into /opt/local/libs and brought libopenvrml.9.dylib into
>> Xcode and 13 link errors became 6!. (So my theory is right)
>> Also found libopenvrml.la file and realized that there are many
>> dependency libraries. So, doing this manually is like a never-ending
>> work.
>
> .la are "libtool libraries", which is to say that they are actually text
> files with information for libtool (which is typically known as glibtool
> on your Mac).
>
>> So my questions are:
>> What are the dylibs needed to get pretty_print.cpp to work?
>
> Well, give us a hint, at least: what symbols are undefined?
>
>> Is there any way I can make Xcode read *.la files? (or an alternative
>> way?) so he can link libraries automatically.
>
> I'm pretty sure that there's no way Xcode will understand a .la file.
>
> I'm under the (possibly mistaken?) impression that .dylibs are aware of
> their dependencies. I could be wrong about that; or there could be
> something wrong with the way libopenvrml.dylib was created such that
> this isn't working as it should.
>
> libopenvrml doesn't depend on much; but off the top of my head, there's
> libboost_thread and libxml.
>
>> Even though Xcode knows the library search path does not seems to be
>> searching for dylibs. How this can be?
>
> I'm not sure exactly what you mean here; but if the question is, "Why
> aren't the .dylib dependencies being pulled in automatically?" see
> above.
>
>> I am kind of lost here. I have a big program that requires VRML in the
>> last part and would like to have it running in Mac OS also.
>>
>> I am using OpenVRML 1.8.5, SnowLeopard 10.6.3 and Xcode 3.2.3
>> (Pre-release <- Is this the reason??)
>
> Based on what I know so far, probably not.
>
> --
> Braden McDaniel <br...@en...>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> openvrml-develop mailing list
> ope...@li...
> https://lists.sourceforge.net/lists/listinfo/openvrml-develop
>
--
________________________________
慶應義塾大学大学院 理工学研究科
開放環境科学専攻 斎藤英雄研究室
修士2年 Guillermo Ignacio Enriquez G.
e-mail : na...@hv...
________________________________
_____________________________________________
|