qmake and make for boincgui....help for a newbie...please

Questions and Answers : Unix/Linux : qmake and make for boincgui....help for a newbie...please
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile xi3piscium
Volunteer tester
Avatar

Send message
Joined: 17 Aug 99
Posts: 287
Credit: 26,674
RAC: 0
China
Message 9373 - Posted: 18 Jul 2004, 14:35:08 UTC

I installed qt3.3.2....running RH9....trying compile boincgui...i typed qmake...no problem. Then I typed make
and here is what I get:

[yusuf@localhost boincgui]$ qmake
[yusuf@localhost boincgui]$ make
g++ -c -pipe -Wall -W -O2 -march=i386 -mcpu=i686 -g -DGLX_GLXEXT_LEGACY -fno-use-cxa-atexit -fno-exceptions -DQT_NO_DEBUG -I/usr/lib/qt-3.1/mkspecs/default -I. -I. -I/usr/lib/qt-3.1/include -o boincgui.o boincgui.cpp
g++ -c -pipe -Wall -W -O2 -march=i386 -mcpu=i686 -g -DGLX_GLXEXT_LEGACY -fno-use-cxa-atexit -fno-exceptions -DQT_NO_DEBUG -I/usr/lib/qt-3.1/mkspecs/default -I. -I. -I/usr/lib/qt-3.1/include -o filesys.o filesys.C
filesys.C: In function `DIR* dir_open(const char*)':
filesys.C:96: warning: unused parameter `const char*p'
filesys.C:97: warning: `DIR*dirp' might be used uninitialized in this function
filesys.C: In function `int dir_scan(char*, DIR*, int)':
filesys.C:116: warning: unused parameter `char*p'
filesys.C:116: warning: unused parameter `DIR*dirp'
filesys.C:116: warning: unused parameter `int p_len'
filesys.C:155: warning: control reaches end of non-void function
filesys.C: In function `void dir_close(DIR*)':
filesys.C:159: warning: unused parameter `DIR*dirp'
filesys.C: In member function `DirScanner::DirScanner(const std::string&)':
filesys.C:174: warning: unused parameter `const std::string&path'
filesys.C: In member function `bool DirScanner::scan(std::string&)':
filesys.C:191: warning: unused parameter `std::string&s'
filesys.C:232: warning: control reaches end of non-void function
filesys.C: In function `int boinc_delete_file(const char*)':
filesys.C:264: `unlink' undeclared (first use this function)
filesys.C:264: (Each undeclared identifier is reported only once for each
function it appears in.)
filesys.C: In function `int boinc_rmdir(const char*)':
filesys.C:433: `rmdir' undeclared (first use this function)
filesys.C: In function `int lock_file(char*)':
filesys.C:462: warning: unused parameter `char*filename'
filesys.C: In function `void relative_to_absolute(char*, char*)':
filesys.C:490: `getcwd' undeclared (first use this function)
make: *** [filesys.o] Error 1

<a> [/url]

ID: 9373 · Report as offensive
Profile tullio
Volunteer tester

Send message
Joined: 9 Apr 04
Posts: 8797
Credit: 2,930,782
RAC: 1
Italy
Message 9567 - Posted: 19 Jul 2004, 3:00:11 UTC

I have compiled boincgui on a SuSE Linux 7.3, kernel 2.4.x, gcc2.95.3 and it worked. Then I upgraded to SuSE 9,1, kernel 2,6.x, gcc 3.3.2, and got a bunch of errors. I then went to www.davidzilch.co.uk/boincgui and downloaded the compiled version. It works.I advice you to do the same.
ID: 9567 · Report as offensive
Profile flim

Send message
Joined: 27 Jul 04
Posts: 4
Credit: 922
RAC: 0
United Kingdom
Message 42170 - Posted: 2 Nov 2004, 12:46:27 UTC - in response to Message 9567.  

I had a problem compiling BOINCGUI. It said something about not being able to find the makefile, so I downloaded the precompiled one, as you said. It now tells me I can't execute the file. It says permission denied, even though I've done a chmod 777 as root! The permissions are -rwxrwxrwx and the ownership is .users - why is it saying I don't have permission?
ID: 42170 · Report as offensive
barry r smith

Send message
Joined: 3 Apr 99
Posts: 1
Credit: 0
RAC: 0
United Kingdom
Message 78410 - Posted: 11 Feb 2005, 14:44:04 UTC
Last modified: 11 Feb 2005, 14:44:53 UTC

(answering this slightly old question, but anyway:)

The error can be fixed on RH9 by adding an extra include near the top of file
filesys.C

// Add this for RH9
#include <unistd.h>

I did not investigate any other info at all... (actually theres an #ifdef in that file which includes unistd if it thinks its available).

barry
ID: 78410 · Report as offensive

Questions and Answers : Unix/Linux : qmake and make for boincgui....help for a newbie...please


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.