adih2001
Posts: 18
Joined: Sat Mar 01, 2014 9:06 am

Compile help

Tue Jul 15, 2014 6:12 pm

Hello!
I am a small kitty i don't know how to compile this file: https://www.dropbox.com/s/f5qa8r7r3jynv ... 0.0.tar.gz
If you do know pls compile it for me! (compile it for raspberry pi)
Thx! Kitty.
Image

User avatar
DougieLawson
Posts: 36900
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Compile help

Tue Jul 15, 2014 7:20 pm

cd /tmp
mv /home/dougie/pom*.*z . # move the file you've downloaded to the /tmp directory
tar xavf pom1-1.0.0.tar.gz
cd pom1*
./configure
make
sudo make install
pom1
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

adih2001
Posts: 18
Joined: Sat Mar 01, 2014 9:06 am

Re: Compile help

Wed Jul 16, 2014 3:17 am

It dosen't work.. read down
Last edited by adih2001 on Wed Jul 16, 2014 4:21 am, edited 1 time in total.

adih2001
Posts: 18
Joined: Sat Mar 01, 2014 9:06 am

Re: Compile help

Wed Jul 16, 2014 4:20 am

It dosent work... i get some errors: (here is all i did)
pi@PiDesktop ~ $ cd /tmp
pi@PiDesktop /tmp $ mv /home/pi/pom1-1.0.0.tar.gz /tmp
pi@PiDesktop /tmp $ tar xavf pom1-1.0.0.tar.gz
pom1-1.0.0/
pom1-1.0.0/NEWS
pom1-1.0.0/configure
pom1-1.0.0/src/
pom1-1.0.0/src/pom1.in
pom1-1.0.0/src/screen.h
pom1-1.0.0/src/roms/
pom1-1.0.0/src/roms/charmap.rom
pom1-1.0.0/src/roms/basic.rom
pom1-1.0.0/src/roms/Makefile.am
pom1-1.0.0/src/roms/monitor.rom
pom1-1.0.0/src/roms/Makefile.in
pom1-1.0.0/src/m6502.c
pom1-1.0.0/src/keyboard.c
pom1-1.0.0/src/configuration.h
pom1-1.0.0/src/configuration.c
pom1-1.0.0/src/m6502.h
pom1-1.0.0/src/pia6820.h
pom1-1.0.0/src/pom1.desktop.in
pom1-1.0.0/src/keyboard.h
pom1-1.0.0/src/pom1.png
pom1-1.0.0/src/options.c
pom1-1.0.0/src/main.c
pom1-1.0.0/src/screen.c
pom1-1.0.0/src/Makefile.am
pom1-1.0.0/src/options.h
pom1-1.0.0/src/pia6820.c
pom1-1.0.0/src/memory.h
pom1-1.0.0/src/memory.c
pom1-1.0.0/src/Makefile.in
pom1-1.0.0/INSTALL
pom1-1.0.0/aclocal.m4
pom1-1.0.0/config.h.in
pom1-1.0.0/ChangeLog
pom1-1.0.0/depcomp
pom1-1.0.0/configure.ac
pom1-1.0.0/install-sh
pom1-1.0.0/Makefile.am
pom1-1.0.0/COPYING
pom1-1.0.0/README
pom1-1.0.0/AUTHORS
pom1-1.0.0/missing
pom1-1.0.0/Makefile.in
pi@PiDesktop /tmp $ cd /pom1-1.0.0
bash: cd: /pom1-1.0.0: No such file or directory
pi@PiDesktop /tmp $ cd pom1-1.0.0
pi@PiDesktop /tmp/pom1-1.0.0 $ ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... 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... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for atexit... yes
checking for memset... yes
checking for mkdir... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strrchr... yes
checking for sdl-config... no
checking for SDL - version >= 1.1.3... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/pom1.desktop
config.status: creating src/roms/Makefile
config.status: creating src/pom1
config.status: creating config.h
config.status: executing depfiles commands
pi@PiDesktop /tmp/pom1-1.0.0 $ make
make all-recursive
make[1]: Entering directory `/tmp/pom1-1.0.0'
Making all in src
make[2]: Entering directory `/tmp/pom1-1.0.0/src'
Making all in roms
make[3]: Entering directory `/tmp/pom1-1.0.0/src/roms'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/tmp/pom1-1.0.0/src/roms'
make[3]: Entering directory `/tmp/pom1-1.0.0/src'
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT configuration.o -MD -MP -MF .deps/configuration.Tpo -c -o configuration.o configuration.c
mv -f .deps/configuration.Tpo .deps/configuration.Po
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT keyboard.o -MD -MP -MF .deps/keyboard.Tpo -c -o keyboard.o keyboard.c
keyboard.c:19:17: fatal error: SDL.h: No such file or directory
compilation terminated.
make[3]: *** [keyboard.o] Error 1
make[3]: Leaving directory `/tmp/pom1-1.0.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/pom1-1.0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/pom1-1.0.0'
make: *** [all] Error 2
pi@PiDesktop /tmp/pom1-1.0.0 $ sudo make install
Making install in src
make[1]: Entering directory `/tmp/pom1-1.0.0/src'
Making install in roms
make[2]: Entering directory `/tmp/pom1-1.0.0/src/roms'
make[3]: Entering directory `/tmp/pom1-1.0.0/src/roms'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/pom1/roms" || /bin/mkdir -p "/usr/local/share/pom1/roms"
/usr/bin/install -c -m 644 basic.rom charmap.rom monitor.rom '/usr/local/share/pom1/roms'
make[3]: Leaving directory `/tmp/pom1-1.0.0/src/roms'
make[2]: Leaving directory `/tmp/pom1-1.0.0/src/roms'
make[2]: Entering directory `/tmp/pom1-1.0.0/src'
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT keyboard.o -MD -MP -MF .deps/keyboard.Tpo -c -o keyboard.o keyboard.c
keyboard.c:19:17: fatal error: SDL.h: No such file or directory
compilation terminated.
make[2]: *** [keyboard.o] Error 1
make[2]: Leaving directory `/tmp/pom1-1.0.0/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/tmp/pom1-1.0.0/src'
make: *** [install-recursive] Error 1
pi@PiDesktop /tmp/pom1-1.0.0 $ pom1
bash: pom1: command not found

User avatar
AndyD
Posts: 2333
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: Compile help

Wed Jul 16, 2014 4:23 am

You will need to install the SDL development package.

Code: Select all

sudo apt-get install libsdl1.2-dev
Then try again from make

User avatar
DougieLawson
Posts: 36900
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Compile help

Wed Jul 16, 2014 4:24 am

sudo apt-get install libsdl1.2-dev

Then try again.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

adih2001
Posts: 18
Joined: Sat Mar 01, 2014 9:06 am

Re: Compile help

Wed Jul 16, 2014 7:41 am

Thx for help! My cat will be happy! :)

Return to “Beginners”