LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-24-2011, 09:07 PM   #1
ifonly
LQ Newbie
 
Registered: Jan 2011
Posts: 6

Rep: Reputation: 0
make: *** [.obj/matrix.o] Error


Greetings all,

I am a newbie, and this is my first post here.

I am trying to install a program and it spews out an error about the .obj/matrix.o file.

The output is quoted here:

Code:
[root@robot007 Graspit]# make
g++ -c -m64 -pipe -g -Wall -W -D_REENTRANT -DGRASPIT_COLLISION -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/Qt3Support -I/usr/include -I/usr/include/QtAssistantClient -I/usr/include/QtAssistant -I/usr/lib64/qt4/include -I/usr/local/Coin/include -Iqhull -Isrc -Isrc/Collision -Iinclude -Iinclude/math -Iinclude/Planner -Iinclude/EGPlanner -Iui -Iui/Planner -Iui/EGPlanner -Isrc/Collision/Graspit -Iui -Iui/Planner -Iui/EGPlanner -Itinyxml -I.moc -Iui -o .obj/matrix.o src/math/matrix.cpp
In file included from src/math/matrix.cpp:26:
include/math/matrix.h:114: error: ‘stderr’ was not declared in this scope
src/math/matrix.cpp: In member function ‘int Matrix::rank() const’:
src/math/matrix.cpp:349: warning: deprecated conversion from string constant to ‘char*’
src/math/matrix.cpp:349: warning: deprecated conversion from string constant to ‘char*’
src/math/matrix.cpp: In function ‘int underDeterminedSolveSVD(Matrix&, Matrix&, Matrix&)’:
src/math/matrix.cpp:667: warning: deprecated conversion from string constant to ‘char*’
src/math/matrix.cpp:667: warning: deprecated conversion from string constant to ‘char*’
src/math/matrix.cpp: In function ‘int underDeterminedSolveQR(Matrix&, Matrix&, Matrix&)’:
src/math/matrix.cpp:764: warning: deprecated co

nversion from string constant to ‘char*’
src/math/matrix.cpp:764: warning: deprecated conversion from string constant to ‘char*’
src/math/matrix.cpp:764: warning: deprecated conversion from string constant to ‘char*’
src/math/matrix.cpp: At global scope:
src/math/matrix.cpp:849: warning: unused parameter ‘objVal’
src/math/matrix.cpp: In function ‘void testQP()’:
src/math/matrix.cpp:964: warning: unused variable ‘objVal’
src/math/matrix.cpp: At global scope:
src/math/matrix.cpp:985: warning: unused parameter ‘objVal’
make: *** [.obj/matrix.o] Error 1
To be more specific, here lists more information:
OS: RHEL 6 /64bit
Kernel: 2.6.32-71.el6.x86_64
Qt: Qt4
The program I was trying to install is a robot simulator which performs lots of matrix manipulation and linear system solving. I followed every step in the installation guide, except for this one:
Quote:
On Ubuntu, all you need to do is install the following packages from the package manager:
libblas-dev
liblapack-dev
As shown above, I am using RHEL 6, which has different libraries with Ubuntu. I tried "yum search" and installed these libraries instead:
lapack.x86_64 : Numerical linear algebra package libraries
blas.x86_64 : The Basic Linear Algebra Subprograms library

For the last step, I typed make and got those errors. I searched online but found no related topics. Hope someone here would have some idea and give me some suggestions.
 
Old 02-25-2011, 02:05 PM   #2
lsalab
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Rep: Reputation: 1
Your problem seems to be around this:

Code:
include/math/matrix.h:114: error: ‘stderr’ was not declared in this scope
Take a look at this header file "matrix.h" and try to find out how is it declaring "stderr", maybe they didn't include <iostream>

Code:
#include <iostream>
 
1 members found this post helpful.
Old 02-26-2011, 12:40 AM   #3
ifonly
LQ Newbie
 
Registered: Jan 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for pointing it out, isalab.

I didn't notice there was an error on that line...

I checked the file "matrix.h", it already included <iostream>. But I found that another header should be included:

#include <cstdio> (I guess it is because of the gcc version)

Then I run make, those errors were gone. It showed me some other errors but then I eventually got all those fixed. The program is running now.

Thanks again for your help,

Regards,
vincent

Last edited by ifonly; 02-26-2011 at 12:42 AM.
 
Old 06-15-2011, 09:33 AM   #4
shy8675
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Rep: Reputation: Disabled
So I'm actually trying to install the same program and got the same error (that's what led me to this page). I fixed the initial error but now I'm getting this one.
Code:
ui/mainWindow.cpp:38: fatal error: QAssistantClient: No such file or directory
compilation terminated.
Did you encounter this error? If so, how did you fix it?
 
Old 06-15-2011, 09:48 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,916

Rep: Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586
Quote:
Did you encounter this error? If so, how did you fix it?
apt-cache search QAssistantClient
sudo apt-get install libqt4-dev

EDIT : Sorry, for RHEL6 it is : yum provides */QAssistantClient

# yum install qt-devel

..

Last edited by knudfl; 06-15-2011 at 10:07 AM.
 
Old 06-15-2011, 10:04 AM   #6
shy8675
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Rep: Reputation: Disabled
Code:
libqt4-dev is already the newest version.
I read somewhere on the Internet that the newest versions of Qt don't use QAssistant client anymore. Could that be the problem?

The weird thing is that I was able to get this program up and running last week on a different computer (same hardware, same OS, using the same procedure).
 
Old 06-15-2011, 10:31 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,916

Rep: Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586
# yum provides */QAssistantClient

1:qt-devel-4.6.2-16.el6.x86_64 : Development files for the Qt toolkit
Repo : sl
Matched from:
Filename : /usr/include/QtAssistant/QAssistantClient


So the file is present, not as /usr/include/QAssistantClient,
but /usr/include/QtAssistant/QAssistantClient


Which application is it about ? graspit-2.2_prerelease_2 ? ?

..
 
Old 06-15-2011, 10:40 AM   #8
shy8675
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Rep: Reputation: Disabled
I downloaded it from this website (the Linux version). http://www.cs.columbia.edu/~cmatei/g...oad/getit.html So I guess it's graspit-2.1.0. I feel like there was something I did in the installation of the prerequisite programs even though all I did was follow the instructions in the manual.

(Also, sorry to ifonly for hijacking your thread.)
 
1 members found this post helpful.
Old 06-15-2011, 12:35 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,916

Rep: Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586
Yes, I can see now, that it is version 2.1.0 :
Quote:
[root@robot007 Graspit]#
graspit-2.2_prerelease_2.tar.gz is here ( sourceforge )
http://switch.dl.sourceforge.net/pro...lease_2.tar.gz
.. and may be easier to build on RHEL :

I made one workaround : cd /usr/include/
# ln -s Coin2/Inventor


Build requirements used :
Coin2-2.5.0-10.el6.x86_64.rpm Coin2-devel-2.5.0-10.el6.x86_64.rpm
SoQt-1.5.0-1.el6.x86_64.rpm SoQt-devel-1.5.0-1.el6.x86_64.rpm
( Created from the Fedora 14 SRC RPMS.)

..

Last edited by knudfl; 06-16-2011 at 02:18 AM.
 
Old 06-15-2011, 02:49 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,916

Rep: Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586
... And then Graspit-2-1-0 :
cd Graspit/qhull && make && cd ../ && qmake-qt4 && make CXX=g++34 : No errors.


And I really can't tell, how you could configure Graspit,
so the header 'QAssistantClient' wasn't found.

..

Last edited by knudfl; 06-16-2011 at 02:16 AM.
 
Old 06-16-2011, 07:44 AM   #11
ifonly
LQ Newbie
 
Registered: Jan 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by shy8675 View Post
Code:
libqt4-dev is already the newest version.
I read somewhere on the Internet that the newest versions of Qt don't use QAssistant client anymore. Could that be the problem?

The weird thing is that I was able to get this program up and running last week on a different computer (same hardware, same OS, using the same procedure).
Did you set the environment variable QTDIR and PATH properly?
Graspit2.1.0 runs well on my RHEL6 x64, with Qt 4.6.2, SoQt 1.5.0, and Coin 2.5.0.
The QTDIR on my computer is /usr/lib64/qt4
 
Old 06-16-2011, 02:49 PM   #12
shy8675
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Rep: Reputation: Disabled
Well, this is what I modified in my .bashrc file.
Code:
#things for GraspIt!
COINDIR=/usr/local/Coin
PATH=$PATH:$COINDIR/bin
LD_LIBRARY_PATH=$COINDIR/lib

QTDIR=/usr/share/qt4
#QTDIR=/usr/include/qt4
PATH=$PATH:$QTDIR/bin
I also set the GraspIt! directory appropriately.

I don't know if this would help, but this is what prints when I ask for the $PATH variable.
Code:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/Coin/bin:/usr/share/qt4//bin:/usr/local/Coin/bin:/usr/lib/qt4/bin:/usr/local/Coin/bin:/usr/share/qt4/bin:/usr/local/Coin/bin:/usr/include/qt4/bin
 
Old 06-17-2011, 07:02 AM   #13
ifonly
LQ Newbie
 
Registered: Jan 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Which OS are you using?
 
Old 06-17-2011, 07:03 AM   #14
ifonly
LQ Newbie
 
Registered: Jan 2011
Posts: 6

Original Poster
Rep: Reputation: 0
something wrong in your $PATH,
Quote:
/usr/share/qt4//bin
 
Old 06-17-2011, 10:23 AM   #15
shy8675
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Rep: Reputation: Disabled
Huh, I didn't notice that. Thanks! I fixed it but it's still giving me the same error, even when I did a make clean before compiling.

EDIT: Oh, also, the OS I'm using is Ubuntu 10.10.

Last edited by shy8675; 06-17-2011 at 11:11 AM.
 
  


Reply

Tags
c++


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
is there a matrix screensaver, very exactly like in the Matrix movie? frenchn00b Linux - Desktop 2 08-20-2009 10:00 AM
sculpy.scm gimp plugin or how to make .obj to secondlife sculpty textures chickenlinux Linux - Software 2 04-20-2009 04:06 PM
awk convert column matrix to square matrix? johnpaulodonnell Programming 4 04-30-2008 01:45 PM
C/CPP: question about a strange way to make a obj array. RHLinuxGUY Programming 3 10-27-2007 08:47 AM


All times are GMT -5. The time now is 03:35 AM.

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