Page 1 of 1

[SOLVED] xtetris.exe file missing !

PostPosted: Apr 16th, '13, 22:25
by ofbodur
I downloaded xtetris-2.5.2.tar.gz
gzip -d xtetris-2.5.2.tar.gz
then
Code: Select all
tar -xvf xtetris-2.5.2.tar
a list of file is unpacked.
./xtetris-2.5.2
./xtetris-2.5.2/COPYRIGHT
./xtetris-2.5.2/Makefile
./xtetris-2.5.2/Imakefile
./xtetris-2.5.2/README
./xtetris-2.5.2/defs.h
./xtetris-2.5.2/draw.c
./xtetris-2.5.2/init.c
./xtetris-2.5.2/main.c
./xtetris-2.5.2/notify.c
./xtetris-2.5.2/score.c
./xtetris-2.5.2/shape.c
./xtetris-2.5.2/support.c
./xtetris-2.5.2/icon
./xtetris-2.5.2/window.c
./xtetris-2.5.2/TODO
./xtetris-2.5.2/stripe4
./xtetris-2.5.2/xtetris.man
./xtetris-2.5.2/xtetris-scores
./xtetris-2.5.2/Xtetris.ad.all


But I can not find xtetris.exe file!
Where can i find it to execute my program?

let me also remind you that:
Code: Select all
[root@localhost Downloads]# uname -a
Linux localhost 3.4.34-desktop-1.mga2 #1 SMP Thu Feb 28 21:18:56 UTC 2013 i686 i686 i386 GNU/Linux

Re: xtetris.exe file missing !

PostPosted: Apr 16th, '13, 23:05
by djennings
What you have downloaded is the source code to compile xtetris.

We rarely need to compile our own applications in Linux. Instead we use precompiled packages.
Mageia has precompiled binary packages for the following Tetris clones

kblocks, Itris, cuyo, crack-attack

To install these or any other Linux application we use the Mageia Software install GUI as described here
https://wiki.mageia.org/en/Software_management

Re: xtetris.exe file missing !

PostPosted: Apr 17th, '13, 04:07
by ofbodur
All right, then how am i going to create an executable xtetris.exe file by using the source code?
can you tell me how to use makefile?

Re: xtetris.exe file missing !

PostPosted: Apr 17th, '13, 09:28
by Mayavimmer
Ofbodur, your expectations indicate that you are new to the Linux world and come from the Windows world. Here are some tips:
gzip -d xtetris-2.5.2.tar.gz
then
tar -xvf xtetris-2.5.2.tar

This is ok, but the usual would be:
Code: Select all
tar zxvf xtetris-2.5.2.tar.gz

...and without the minus sign.
But I can not find xtetris.exe file!

There are exceptions, but normally when you have source code you should not expect to find the executable; you are expected to compile it yourself. One advantage of this strategy is that the compilation system would leverage your preexisting shared libraries.
Also normally in the Linux world executable files do not have the Windows .exe extension, and the executable you create would be called xtetris.
Finally, you are expected to read the README file which gives hopefully complete instructions on how to do what you want. README's are usually written by programmers who often take for granted that the user has properly prepared the system for compilation. Make sure you have the proper compilers and support environment installed (gcc, make, maybe autotools, etc).
Do not expect 100% success in all cases when porting alien software to Mageia. Only packagers do ;)

Re: xtetris.exe file missing !

PostPosted: Apr 17th, '13, 23:47
by ofbodur
[root@localhost xtetris-2.6]# make
gcc -fpcc-struct-return -O2 -I/usr/X11R6/include -Dsun -DSVR4 -DHIGH_SCORE_TABLE=\"/usr/X11R6/lib/X11/xtetris-scores\" -c -o main.o main.c
main.c:22:28: fatal error: X11/IntrinsicP.h: No such file or directory
compilation terminated.
make: *** [main.o] Error 1


[root@localhost xtetris-2.6]# ./configure
-bash: ./configure: No such file or directory
[root@localhost xtetris-2.6]#


11 Based Tetris / Version 2.6

INSTALLATION

1. Make sure you have X11 release 5 or 6, and make sure that "xmkmf" is in
your path somewhere (probably /usr/bin/X11:/usr/X11R5/bin:/usr/X11R6/bin).

2. Edit the switches at the top of Imakefile as necessary. Note the
stuff about whether xtetris runs with a color monitor by default or
not. (As shipped it assumes black/white.)

3. I assume you want to use your installed libraries and include
files. So type

xmkmf
make depend

4. Install it.

(become root or something)
make install

5. Now, if you get bored with playing the game, you can look in the file
TODO, for a list of useful things you could help add.

If you do anything listed in the "TODO" file, please send your changes
to xtetris@cs.ucla.edu.

6. If you fix ANYTHING, please send a "diff -c" file. The address:

xtetris@cs.ucla.edu


now what is the problem?

Re: xtetris.exe file missing !

PostPosted: Apr 18th, '13, 00:05
by Mayavimmer
Ofbodur, you did not follow the instructions you yourself displayed, so I won't be able to help. Happy gaming.

Re: xtetris.exe file missing !

PostPosted: May 17th, '13, 23:48
by ofbodur
I followed the steps. I could manage to handle xmkmf but now,

I have the error as below:

Code: Select all
[root@localhost xtetris-2.6]# make install
gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L                              -D_POSIX_SOURCE -D_XOPEN_SOURCE                                 -D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64                                                   -DFUNCPROTO=15 -DNARROWPROTO   -DHIGH_SCORE_TABLE=\"/usr/lib/X11/xtetris-scores\"    -c -o main.o main.c
main.c:98:26: fatal error: X11/Xaw/Text.h: No such file or directory
compilation terminated.
make: *** [main.o] Error 1

Re: xtetris.exe file missing !

PostPosted: May 17th, '13, 23:59
by Ken-Bergen
ofbodur wrote:I followed the steps. I could manage to handle xmkmf but now,

I have the error as below:

Code: Select all
[root@localhost xtetris-2.6]# make install
cut---
main.c:98:26: fatal error: X11/Xaw/Text.h: No such file or directory
compilation terminated.
make: *** [main.o] Error 1
I'm running MGA3 64bit but
Code: Select all
[ken@localhost bin]$ urpmf X11/Xaw/Text.h
lib64xaw-devel:/usr/include/X11/Xaw/Text.h
libxaw-devel:/usr/include/X11/Xaw/Text.h
[ken@localhost bin]$

Re: xtetris.exe file missing !

PostPosted: May 18th, '13, 00:28
by ofbodur
Thanks Ken!!

Here is what happened:

Code: Select all
[root@localhost bin]# urpmi -a libxaw
Packages libxaw7-1.0.9-2.mga2.i586, libxaw3d7-1.5E-16.mga2.i586 are already installed
Marking libxaw7 as manually installed, it won't be auto-orphaned
writing /var/lib/rpm/installed-through-deps.list
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch   
(medium "Core Release (distrib1)")
  libxaw-devel                   1.0.9        2.mga2        i586   
  libxaw-static-devel            1.0.9        2.mga2        i586   
  libxaw3d-devel                 1.5E         16.mga2       i586   
  libxmu6-devel                  1.1.1        1.mga2        i586   
  libxpm-devel                   3.5.10       1.mga2        i586   
3.7MB of additional disk space will be used.
849KB of packages will be retrieved.
Proceed with the installation of the 5 packages? (Y/n) y


    $MIRRORLIST: media/core/release/libxmu6-devel-1.1.1-1.mga2.i586.rpm
    $MIRRORLIST: media/core/release/libxaw-static-devel-1.0.9-2.mga2.i586.rpm                                                                                         
    $MIRRORLIST: media/core/release/libxaw3d-devel-1.5E-16.mga2.i586.rpm                                                                                               
    $MIRRORLIST: media/core/release/libxaw-devel-1.0.9-2.mga2.i586.rpm                                                                                                 
    $MIRRORLIST: media/core/release/libxpm-devel-3.5.10-1.mga2.i586.rpm                                                                                               
installing libxaw-static-devel-1.0.9-2.mga2.i586.rpm libxmu6-devel-1.1.1-1.mga2.i586.rpm libxaw3d-devel-1.5E-16.mga2.i586.rpm libxaw-devel-1.0.9-2.mga2.i586.rpm libxpm-devel-3.5.10-1.mga2.i586.rpm from /var/cache/urpmi/rpms
Preparing...                     #####################################################################################################################################
      1/5: libxmu6-devel         #####################################################################################################################################
      2/5: libxpm-devel          #####################################################################################################################################
      3/5: libxaw-devel          #####################################################################################################################################
      4/5: libxaw-static-devel   #####################################################################################################################################
      5/5: libxaw3d-devel        #####################################################################################################################################



then... at the end..