invalid conversion from 'long unsigned int*' to 'uint32*'
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can you show us line 152 plus the declarations for any type's used on line 152 of imagrgba.cpp? Looks like you are passing something with out casting or have an inappropriate cast. Also, if that line is a function call it would be helpful to have the prototype for the function.
Can you show us line 152 plus the declarations for any type's used on line 152 of imagrgba.cpp? Looks like you are passing something with out casting or have an inappropriate cast. Also, if that line is a function call it would be helpful to have the prototype for the function.
problem somehow solved with typecast
now next error is following, and i don't understand it.
Code:
make -C image
make[1]: Entering directory `/home/flavio/eth/informatik/mini-project/painter/image'
makedepend -f .depend clip.cpp imagegray.cpp imagergba.cpp clip.h imagegray.h imagergba.h 2> /dev/null
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/flavio/eth/informatik/mini-project/painter/image'
make -C framewk
make[1]: Entering directory `/home/flavio/eth/informatik/mini-project/painter/framewk'
makedepend -f .depend -I../image framewk.cpp framewk.h 2> /dev/null
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/flavio/eth/informatik/mini-project/painter/framewk'
g++ -g -Wall -Wno-deprecated -I/usr/pack/openglut-0.6.3-mo/include -I/usr/pack/gfxlibs-2.3-rp/include -I./image -I./framewk -o painter painter.o -L./lib/ -limage -lframewk -L/usr/pack/openglut-0.6.3-mo/i686-debian-linux3.1/lib -Wl,-rpath -Wl,/usr/pack/openglut-0.6.3-mo/i686-debian-linux3.1/lib -lopenglut -lGL -lGLU -L/usr/pack/gfxlibs-2.3-rp/i686-debian-linux3.1/lib -Wl,-rpath -Wl,/usr/pack/gfxlibs-2.3-rp/i686-debian-linux3.1/lib -ltiff
/usr/bin/ld: cannot find -lopenglut
collect2: ld returned 1 exit status
make: *** [painter] Error 1
It can't link against libopenglut. You need to find the directory that libopenglut.so lives in, add it after a -L in your build commandline and then add a -lopenglut to your build comandline as well.
It can't link against libopenglut. You need to find the directory that libopenglut.so lives in, add it after a -L in your build commandline and then add a -lopenglut to your build comandline as well.
thx for the info, but my system doesn't seem to have a libopenglut.so. which debian packages should contain the following file?
OpenGLUT is a slightly different library from the standard GLUT. The "official" GLUT project is no longer under development. I think that most OpenGL developers would agree that it is good for writing quick little apps for learning, but isn't well suited for larger development. I haven't used it myself, but OpenGLUT is meant to remedy that, I believe.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.