LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-22-2003, 06:01 AM   #1
matt combe
LQ Newbie
 
Registered: Apr 2003
Distribution: RedHat 8.0
Posts: 5

Rep: Reputation: 0
Exclamation ??? paragui isn't working ???



Im having trouble compiling this game - freelords 0.2.2 i have downloaded and compiled all of the necessary dependencies: SDL 1.2.5, paragui 1.0.3 & libsigc++ 1.2.4 they all installed without problems but the problem is when i try to compile freelords i get this error msg:
[root@localhost freelords-0.2.2]# ./configure
loading cache ./config.cache
checking for c++... (cached) c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking target system type... ./config.sub: ./config.sub: No such file or directory

checking for sdl-config... (cached) /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for paragui-config... (cached) /usr/local/bin/paragui-config
checking for PARAGUI - version >= 1.0.0... no
*** Could not run PARAGUI test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding PARAGUI or finding the wrong
*** version of PARAGUI. If it is not finding PARAGUI, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
configure: error: *** ParaGUI version 1.0.0 not found!

i have edited the LD_LIBRARY_PATH and ld.so.conf but there is no difference. the only progress i have made is to use the command "./configure --disable-paraguitest" it will then configure but when i go to "make" the program i get this error:
[root@localhost freelords-0.2.2]# make
cd src && make
make[1]: Entering directory `/root/Desktop/freelords-0.2.2/src'
cd common; make;
make[2]: Entering directory `/root/Desktop/freelords-0.2.2/src/common'
g++ -g -Wall -fPIC `paragui-config --cflags` `pkg-config --cflags sigc++-1.2` -I. -I../graphic -I../server -Werror -c armyset_army.cpp -o armyset_army.o
cc1plus: changing search order for system directory "/usr/local/include"
cc1plus: as it has already been specified as a non-system directory
make[2]: *** [armyset_army.o] Error 1
make[2]: Leaving directory `/root/Desktop/freelords-0.2.2/src/common'
make[1]: *** [MYLIBS] Error 2
make[1]: Leaving directory `/root/Desktop/freelords-0.2.2/src'
make: *** [all] Error 2

im really stuck ive looked everywhere but there is very little documentation anywhere on this, it is probably something really simple i have overlooked.
any help would be much appreciated
thanks in advance. matt
 
Old 04-22-2003, 06:27 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no idea what paragui is but it may well need a devel pacakge for it to allow programs to be compiled using it. you should heva e config.log file to read to tell you what is going wrong. also check the test performed in configure itself, and see if it makes sense to you.
 
Old 04-22-2003, 07:11 AM   #3
matt combe
LQ Newbie
 
Registered: Apr 2003
Distribution: RedHat 8.0
Posts: 5

Original Poster
Rep: Reputation: 0
this is part of the config.log file but im not too sure what to make of the errors.
configure:1010: checking for paragui-config
configure:1045: checking for PARAGUI - version >= 1.0.0
configure:1143: c++ -o conftest -I/usr/local/include -I/usr/local/include/paragui -I/usr/include/freetype2 -I/usr/local/include/SDL -D_REENTRANT conftest.C -L/usr/local/lib -lparagui -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread -lexpat -lfreetype -lstdc++ 1>&5
cc1plus: warning: changing search order for system directory "/usr/local/include"
cc1plus: warning: as it has already been specified as a non-system directory
In file included from /usr/include/c++/3.2/cstdlib:52,
from /usr/local/include/paragui/paragui.h:83,
from configure:1081:
/usr/include/stdlib.h:610: declaration of `void exit(int) throw ()' throws
different exceptions
configure:1078: than previous declaration `void exit(int)'
configure: failed program was:
#line 1076 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit(int);
#endif

#include "paragui.h"
#include "pgapplication.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

char*
my_strdup (char *str)
{
char *new_str;

if (str)
{
new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
strcpy (new_str, str);
}
else
new_str = NULL;

return new_str;
}

int main (int argc, char *argv[])
{
int major, minor, micro;
char *tmp_version;

PG_Application app;

/* This hangs on some systems (?)
system ("touch conf.paraguitest");
*/
{ FILE *fp = fopen("conf.paraguitest", "a"); if ( fp ) fclose(fp); }

/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = my_strdup("1.0.0");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
printf("%s, bad version string\n", "1.0.0");
exit(1);
}

if ((1 > major) ||
((1 == major) && (0 > minor)) ||
((1 == major) && (0 == minor) && (3 >= micro)))
{
return 0;
}
else
{
printf("\n*** 'paragui-config --version' returned %d.%d.%d, but the minimum version\n", 1, 0, 3);
printf("*** of PARAGUI required is %d.%d.%d. If paragui-config is correct, then it is\n", major, minor, micro);
printf("*** best to upgrade to the required version.\n");
printf("*** If paragui-config was wrong, set the environment variable PARAGUI_CONFIG\n");
printf("*** to point to the correct copy of paragui-config, and remove the file\n");
printf("*** config.cache before re-running configure\n");
return 1;
}
}


configure:1187: c++ -o conftest -I/usr/local/include -I/usr/local/include/paragui -I/usr/include/freetype2 -I/usr/local/include/SDL -D_REENTRANT conftest.C -L/usr/local/lib -lparagui -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread -lexpat -lfreetype -lstdc++ 1>&5
cc1plus: warning: changing search order for system directory "/usr/local/include"
cc1plus: warning: as it has already been specified as a non-system directory
 
  


Reply



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
After Online update: Hard drive working and working dacosta SUSE / openSUSE 6 11-06-2004 12:14 AM
F1 - F10 not working when F13 - F20 working in Linux haivinay Linux - General 0 09-20-2004 07:31 AM
F3-F10 is not working when F13-F20 is working in redht-8. haivinay Linux - General 0 09-20-2004 06:39 AM
Link/Applet not working in all Linux browsers, but working in IE MasterPatricko Linux - Software 6 09-04-2004 03:39 AM
cannot download files in mozilla -save dialog not working, galeon not working cmisip Linux - General 0 08-03-2003 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration