Qhull Compilation problem

View: New views
3 Messages — Rating Filter:   Alert me  

Qhull Compilation problem

by Yan Wu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
  I was compiling octave 2.9.18 with the qhull static library built from source and the enable-shared flag. It turned out with an error asking for a dynamic qhull library libqhull.so.
  I tried with the following script into the Makefile of qhull-2003.1:

libqhull.so: $(OBJS)
        c++ -shared -Xlinker -soname -Xlinker $@ -o libqhull.so $(OBJS)

  But it failed with the following:

/usr/lib/crt1.o(.text+0x41): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [libqhull.so] Error 1

  Can anybody enlighten me about how to create the dynamic library?

Best wishes,
Yan

Re: Qhull Compilation problem

by kahacjde :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yan Wu wrote:
Hi,
  I was compiling octave 2.9.18 with the qhull static library built from source and the enable-shared flag. It turned out with an error asking for a dynamic qhull library libqhull.so.
  I tried with the following script into the Makefile of qhull-2003.1:

libqhull.so: $(OBJS)
        c++ -shared -Xlinker -soname -Xlinker $@ -o libqhull.so $(OBJS)

  But it failed with the following:

/usr/lib/crt1.o(.text+0x41): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [libqhull.so] Error 1

  Can anybody enlighten me about how to create the dynamic library?

Best wishes,
Yan
Use the src-rpm package [1] it includes a target for a dynamic library.

Kai

[1] http://www.qhull.org/download/qhull-2003.1-1mdk.src.rpm

Re: Qhull Compilation problem

by Yan Wu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks a lot. But what if I don't have root access?