LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-12-2005, 07:31 AM   #1
quarry_06
Member
 
Registered: Oct 2004
Posts: 77

Rep: Reputation: 15
Question 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
 
Old 12-12-2005, 01:22 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
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.
 
Old 12-13-2005, 12:28 PM   #3
quarry_06
Member
 
Registered: Oct 2004
Posts: 77

Original Poster
Rep: Reputation: 15
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
 
Old 12-13-2005, 12:32 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
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.
 
Old 12-19-2005, 06:41 AM   #5
quarry_06
Member
 
Registered: Oct 2004
Posts: 77

Original Poster
Rep: Reputation: 15
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
 
Old 12-21-2005, 03:29 PM   #6
quarry_06
Member
 
Registered: Oct 2004
Posts: 77

Original Poster
Rep: Reputation: 15
please help
 
Old 12-21-2005, 06:03 PM   #7
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 31
Not sure if there are any Debian packages with it, but you can get OpenGLUT here
 
Old 12-22-2005, 03:32 AM   #8
quarry_06
Member
 
Registered: Oct 2004
Posts: 77

Original Poster
Rep: Reputation: 15
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) ?
 
Old 12-23-2005, 11:00 AM   #9
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 31
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
printf unsigned long long int? blackzone Programming 9 03-04-2008 12:41 PM
How to print unsigned long int alaios Programming 6 07-14-2005 10:27 AM
convert unsigned char * to unsigned long int linux_lover2005 Programming 3 04-26-2005 11:38 PM
64 bit CPU unsigned long int GodSendDeath Programming 8 03-29-2005 01:19 PM
int value larger then unsigned long jpc82 Programming 3 03-12-2004 03:54 PM


All times are GMT -5. The time now is 07:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration