logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Compiling Linux version

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support
View previous topic :: View next topic  
Author Message
Lazy



Joined: 01 Jul 2005
Posts: 8

PostPosted: Sun Sep 18, 2005 3:59    Post subject: Compiling Linux version Reply with quote

I try to

1) configure
2) make
Fails...

sh configure
configure: loading cache /dev/null
/dev/null: line 1: configure:: command not found
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for fcntl.h... yes
checking for netinet/in.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/ioctl.h... yes
checking for sys/mman.h... yes
checking for sys/socket.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... (cached) yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for working malloc... yes
checking for bzero... yes
checking for getspnam... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating db/Makefile
config.status: creating mnx/Makefile
config.status: creating functions/Makefile
config.status: creating hashset/Makefile
config.status: creating config.h
config.status: config.h is unchanged




make
g++ -c -o nwnx2lib.o nwnx2lib.cpp
nwnx2lib.cpp: In function 'void enable_write(long unsigned int)':
nwnx2lib.cpp:330: error: cast from 'char*' to 'int' loses precision
make: *** [nwnx2lib.o] Error 1

Using 2 AMD Opteron 248's x64 mandrake

Linux localhost 2.6.13.1 #1 SMP Thu Sep 15 10:27:19 EDT 2005 x86_64 AMD Opteron(tm) Processor 248 unknown GNU/Linux

gcc version 4.0.1


Any ideas?
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
odenien



Joined: 26 Sep 2005
Posts: 37

PostPosted: Tue Sep 27, 2005 16:28    Post subject: Reply with quote

what version of nwnx do you have? Line #330 is not in the enable_write function in the 2.5.3 linux version. With problems in int, you might be hitting the 64bit compiler and not the 32bit one.

calling g++ -v will give you all of the predefined compiler options plus the important --libdir. Whether it is pointing to /usr/lib, /usr/lib32 or usr/lib64. If the latter then you know you have the wrong settings. The first entry or second mean you have to may have a 32bit env. The default on x64 compilers is to generate 64bit code, unless you add the -m32 flag.
Back to top
View user's profile Send private message MSN Messenger
Lazy



Joined: 01 Jul 2005
Posts: 8

PostPosted: Thu Sep 29, 2005 16:55    Post subject: Reply with quote

odenien wrote:
what version of nwnx do you have? Line #330 is not in the enable_write function in the 2.5.3 linux version. With problems in int, you might be hitting the 64bit compiler and not the 32bit one.

calling g++ -v will give you all of the predefined compiler options plus the important --libdir. Whether it is pointing to /usr/lib, /usr/lib32 or usr/lib64. If the latter then you know you have the wrong settings. The first entry or second mean you have to may have a 32bit env. The default on x64 compilers is to generate 64bit code, unless you add the -m32 flag.


Powerblade, one of our developers got it to compile with "-march=i386 -m32" flag .
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
MaestroNL



Joined: 02 Jan 2005
Posts: 1
Location: Nieuw Vennep, The Netherlands

PostPosted: Sat Oct 29, 2005 11:06    Post subject: Reply with quote

Quote:
Powerblade, one of our developers got it to compile with "-march=i386 -m32" flag .


For SuSE 10.0 on Athlon 64 bit installs this works:
"march=athlon -m32"
_________________
-----------------------------------------------
Linux is voor types zonder sociaal leven!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Veleno



Joined: 02 Jan 2006
Posts: 2
Location: Italy

PostPosted: Mon Jan 02, 2006 14:33    Post subject: Reply with quote

MaestroNL wrote:
Quote:
Powerblade, one of our developers got it to compile with "-march=i386 -m32" flag .


For SuSE 10.0 on Athlon 64 bit installs this works:
"march=athlon -m32"


sorry, where to put this option?

I'm trying to execute ./configure but i receive an error message like :

Quote:
C compiler cannot create executables


So i asked for vi config.log in witch i found an error like:

Quote:
error: CPU you selected does not support x86-64 instruction set




i'm using a Fedora 4 64 bit on a Dell Poweredge Xeon EM 64

May someone help me please?

i'm italian , sorry for my english
i hope you undestand


Last edited by Veleno on Tue Jan 03, 2006 2:52; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
cieciwa



Joined: 09 Aug 2005
Posts: 33
Location: Cracov, Poland

PostPosted: Mon Jan 02, 2006 21:55    Post subject: Reply with quote

Veleno wrote:

sorry, where to put this option?

I'm trying to execute ./configure but i receive an error message like :

Quote:
C compiler cannot create executables



look at file named config.log Smile
and look for package gcc-objc or gcc-c++ ..
Back to top
View user's profile Send private message Send e-mail
Veleno



Joined: 02 Jan 2006
Posts: 2
Location: Italy

PostPosted: Thu Jan 05, 2006 2:28    Post subject: Reply with quote

really i'm sorry but i don't find the right way... may you help me please?

Idea
_________________
http://www.teamsolaria.it
Back to top
View user's profile Send private message Visit poster's website
Lazy



Joined: 01 Jul 2005
Posts: 8

PostPosted: Sun Feb 19, 2006 16:56    Post subject: Reply with quote

Veleno wrote:
really i'm sorry but i don't find the right way... may you help me please?

Idea


Here's a link to our modfied files. I posted them to the vault because I was afraid to lose them and also keeping people like yourself in mind.

http://nwvault.ign.com/View.php?view=scripts.Detail&id=2956

Lazy
admin@dungeoneternal.com
http://www.dungeoneternal.com
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group