LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   invalid conversion from 'long unsigned int*' to 'uint32*' (https://www.linuxquestions.org/questions/programming-9/invalid-conversion-from-long-unsigned-int%2A-to-uint32%2A-391871/)

quarry_06 12-12-2005 07:31 AM

invalid conversion from 'long unsigned int*' to 'uint32*'
 
hi

I am trying to compile some sources.

Code:

make
follows:

Code:

makedepend -f .depend -I./image -I./framewk  painter.cpp  2> /dev/null
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
g++ -g -Wall -Wno-deprecated -I/usr/pack/gfxlibs-2.3-rp/include -o imagergba.o -c imagergba.cpp
imagergba.cpp: In function 'ImageRGBA* imageRgbaReadTIFF(const char*)':
imagergba.cpp:152: error: invalid conversion from 'long unsigned int*' to 'uint32*'
imagergba.cpp:152: error:  initializing argument 4 of 'int TIFFReadRGBAImage(TIFF*, uint32, uint32, uint32*, int)'
make[1]: *** [imagergba.o] Error 1
make[1]: Leaving directory `/home/flavio/eth/informatik/mini-project/painter/image'
make: *** [mylibs] Error 2

seems like something is not defined... Am I missing some libraries?

thanks alot

quarry_06

jtshaw 12-12-2005 01:22 PM

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.

quarry_06 12-13-2005 12:28 PM

Quote:

Originally Posted by jtshaw
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

thanks alot

jtshaw 12-13-2005 12:32 PM

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.

quarry_06 12-19-2005 06:41 AM

Quote:

Originally Posted by jtshaw
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?

thx alot

quarry

quarry_06 12-21-2005 03:29 PM

please help ;)

deiussum 12-21-2005 06:03 PM

Not sure if there are any Debian packages with it, but you can get OpenGLUT here

quarry_06 12-22-2005 03:32 AM

Quote:

Originally Posted by deiussum
Not sure if there are any Debian packages with it, but you can get OpenGLUT here

thx the for the link.

not sure, but what is the difference between openglut and libglut3 debian package (the OpenGL Utility Toolkit 3.7) ?

deiussum 12-23-2005 11:00 AM

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.


All times are GMT -5. The time now is 04:11 AM.