CUDPP 1.1

2 views
Skip to first unread message

susan

unread,
Dec 4, 2009, 1:11:49 PM12/4/09
to CUDPP
Hi everyone,
I have built the CUDPP 1.1 on CUDA 2.2 on linux ubuntu successfully,
but I still got some problems in building the test program,


nst@amt63:~/cudpp_1.1/apps/simpleCUDPP$ make
/usr/bin/ld.real: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [../../bin/linux/release/simpleCUDPP] Error 1


Do anyone knows how to solve this problem?

Thank you in advance

John Owens

unread,
Dec 4, 2009, 1:17:35 PM12/4/09
to cu...@googlegroups.com
On Fri, Dec 4, 2009 at 10:11 AM, susan <salmaze...@yahoo.com> wrote:
Hi everyone,
I have built the CUDPP 1.1 on CUDA 2.2 on linux ubuntu successfully,
but I still got some problems in building the test program,


nst@amt63:~/cudpp_1.1/apps/simpleCUDPP$ make
/usr/bin/ld.real: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [../../bin/linux/release/simpleCUDPP] Error 1

I don't know where your libraries are on Ubuntu, but this is an error in linking against the GL library, probably libGL.so or libGL.a. Make sure these are installed? I bet they are and it's just a matter of editing the makefile with a -L flag for the path where they are.

JDO

susan

unread,
Dec 4, 2009, 1:25:25 PM12/4/09
to CUDPP
Hi again,

My libraries are on NVIDIA_CUDA_SDK/lib

Thank you for your help

John Owens

unread,
Dec 4, 2009, 1:34:03 PM12/4/09
to cu...@googlegroups.com
Your system libraries, like libGL, are located elsewhere (in /usr/lib or something like that)

JDO

--

You received this message because you are subscribed to the Google Groups "CUDPP" group.
To post to this group, send email to cu...@googlegroups.com.
To unsubscribe from this group, send email to cudpp+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cudpp?hl=en.



susan

unread,
Dec 4, 2009, 4:15:22 PM12/4/09
to CUDPP
Hello,
how do I link it? like this

nst@amt63:~/cudpp_1.1/apps/cudpp_testrig$ make -L/usr/lib/Glib -lGL

many thanks

On Dec 4, 7:34 pm, John Owens <jow...@gmail.com> wrote:
> Your system libraries, like libGL, are located elsewhere (in /usr/lib or
> something like that)
>
> JDO
>
> On Fri, Dec 4, 2009 at 10:25 AM, susan <salmazedi4e...@yahoo.com> wrote:
> > Hi again,
>
> > My libraries are on NVIDIA_CUDA_SDK/lib
>
> > Thank you for your help
>
> > On Dec 4, 7:11 pm, susan <salmazedi4e...@yahoo.com> wrote:
> > > Hi everyone,
> > > I have built the CUDPP 1.1 on CUDA 2.2 on linux ubuntu successfully,
> > > but I still got some problems in building the test program,
>
> > > nst@amt63:~/cudpp_1.1/apps/simpleCUDPP$ make
> > > /usr/bin/ld.real: cannot find -lGL
> > > collect2: ld returned 1 exit status
> > > make: *** [../../bin/linux/release/simpleCUDPP] Error 1
>
> > > Do anyone knows how to solve this problem?
>
> > > Thank you in advance
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "CUDPP" group.
> > To post to this group, send email to cu...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > cudpp+un...@googlegroups.com <cudpp%2Bunsu...@googlegroups.com>.

John Owens

unread,
Dec 4, 2009, 4:39:39 PM12/4/09
to cu...@googlegroups.com
Go into common/common.mk and add -L/usr/lib/Glib to the front of the LIB variable:

LIB       := -L/usr/lib/Glib -L$(CUDA_INSTALL_PATH)/lib -L$(LIBDIR) -L$(COMMONDIR)/lib -lcuda -lcudart ${OPENGLLIB} ${LIB}

(assuming that /usr/lib/Glib/libGL.something is present and the right library)

Then just "make" as usual.

JDO

To unsubscribe from this group, send email to cudpp+un...@googlegroups.com.

Mark Harris

unread,
Dec 4, 2009, 4:53:28 PM12/4/09
to cu...@googlegroups.com
This is a hack that will probably work, but the common makefile already has opengl linkage, it just must be looking at the wrong place for Susan's system.  The sad thing is that simpleCUDPP should not need OpenGL, so we should not be linking against it -- in other words this is a makefile bug.

Mark
Reply all
Reply to author
Forward
0 new messages