VOGONS

Common searches


compiling problem of franpa

Topic actions

Reply 80 of 131, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Is SDL-1.2.11 the version that should go with DOSBox 0.70?

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 82 of 131, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

For what it is worth, here are my notes for building and installing DOSBox 0.70 with MSYS and MinGW.

I still need to figure out how to get SDL_net, libSDL_sound and a few other things configured, but this is a start.

1. Download & install MSYS-1.0.9.exe

1.1 Destination directory:
C:\MSYS\1.0

Setup Type:
Installation for i386 based CPUs (Works for all x86 based CPUs >= i386)

Selected Components:
i386 install

Start Menu folder:
Produkt\MinGW

1.2 Remember what C:\MSYS\1.0\postinstall has to say about editing /etc/fstab:

Do you have MinGW installed? [yn ] n

When you install MinGW I suggest you install it to C:/mingw
(replace C: with the drive of your choice). Then create an
/etc/fstab file with a line that has a value similar to:
C:/mingw /mingw

2. Download & install msysDTK-1.01.exe

2.1 Destination directory:
C:\msys\1.0

Setup Type:
Installation for i386 based CPUs (Works for all x86 based CPUs >= i386)

Selected Components:
i386 install

3. Download & install MinGW-5.1.3.exe

3.1 Select Custom install with

1. MinGW base tools
2. g++ Compiler
2. Java Compiler

3.2 Destination directory:
C:\MinGW

Start Menu folder:
Produkt\MinGW

3. Download SDL-devel-1.2.11-mingw32.tar.gz

3.1 Gunzip and untar SDL-devel-1.2.11-mingw32.tar.gz

3.2 Destination directory:
C:\MinGW\sdl-1.2.11

3.3 Edit C:\MinGW\sdl-1.2.11\bin\i386-mingw32msvc-sdl-config

--- i386-mingw32msvc-sdl-config.ORIG Tue Jun 27 05:21:45 2006
+++ i386-mingw32msvc-sdl-config Mon Mar 5 20:26:41 2007
@@ -1,6 +1,6 @@
Show last 67 lines
     #!/bin/sh

-prefix=/usr/local/cross-tools/i386-mingw32msvc
+prefix=/usr
exec_prefix=${prefix}
exec_prefix_set=no

3.4 Edit C:\MinGW\sdl-1.2.11\Makefile

--- Makefile.ORIG Sun Feb 22 22:55:55 2004
+++ Makefile Mon Mar 5 22:31:45 2007
@@ -14,9 +14,11 @@
cross:
make install prefix=$(CROSS_PATH)

-install:
- cp -rv bin include lib share $(prefix)/
- @ln -sf i386-mingw32msvc-sdl-config $(prefix)bin/sdl-config
+install::
+ cp -rv bin lib share $(prefix)/
+ @(cd $(prefix)/bin && \
+ ln -sf i386-mingw32msvc-sdl-config sdl-config)
+ cp -rv include $(prefix)/include/SDL

dist:
@test -d bin || mkdir bin

4. Download dosbox-0.70.tar.gz

4.1 Gunzip and untar dosbox-0.70.tar.gz

4.2 Destination directory
C:\MinGW\dosbox-0.70


5. Configure MSYS

5.1 Start MSYS.

5.2 Copy /etc/fstab.sample to /etc/fstab.

5.3 Make the changes to fstab suggested in 1.2.

5.4 Exit MSYS.

6. Build DOSBox 0.70

6.1 Start MSYS.

6.2 Install SDL:

$ cd /mingw/sdl
$ make native

6.3 Configure the DOSBox build environment:

$ cd /mingw/dosbox-0.70
$ ./configure

6.4 Make and install DOSBox

$ make
$ make install-strip

6.5 Run it!

$ dosbox

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 83 of 131, by franpa

User metadata
Rank Oldbie
Rank
Oldbie

i'll try to follow that.

AMD Ryzen 3700X | ASUS Crosshair Hero VIII (WiFi) | 16GB DDR4 3600MHz RAM | MSI Geforce 1070Ti 8GB | Windows 10 Pro x64.

my website

Reply 84 of 131, by franpa

User metadata
Rank Oldbie
Rank
Oldbie

i'd like to point out that i wont be able to er, edit the source files.

AMD Ryzen 3700X | ASUS Crosshair Hero VIII (WiFi) | 16GB DDR4 3600MHz RAM | MSI Geforce 1070Ti 8GB | Windows 10 Pro x64.

my website

Reply 86 of 131, by franpa

User metadata
Rank Oldbie
Rank
Oldbie

Edit C:\MinGW\sdl-1.2.11\bin\i386-mingw32msvc-sdl-config

hmmm, do you have a modified version of this file?

do i have to do that fstab stuff if the msys post install worked?

AMD Ryzen 3700X | ASUS Crosshair Hero VIII (WiFi) | 16GB DDR4 3600MHz RAM | MSI Geforce 1070Ti 8GB | Windows 10 Pro x64.

my website

Reply 87 of 131, by gulikoza

User metadata
Rank Oldbie
Rank
Oldbie

You don't need this file, only sdl-config is needed
But maybe compiling from source seems better at this point...it's not that hard. You only need to do
./configure --prefix=/usr
make
make install

http://www.si-gamer.net/gulikoza

Reply 88 of 131, by franpa

User metadata
Rank Oldbie
Rank
Oldbie

what is --prefix=/usr ?

AMD Ryzen 3700X | ASUS Crosshair Hero VIII (WiFi) | 16GB DDR4 3600MHz RAM | MSI Geforce 1070Ti 8GB | Windows 10 Pro x64.

my website

Reply 89 of 131, by MiniMax

User metadata
Rank Moderator
Rank
Moderator
gulikoza wrote:

btw, I think it is recommended to install mingw before msys...

It seems so based on the question about MinGW during the install of MSYS.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 90 of 131, by MiniMax

User metadata
Rank Moderator
Rank
Moderator
franpa wrote:

do i have to do that fstab stuff if the msys post install worked?

Don't think so. MinGW is basically the GNU C and C++ compilers, linker and debugger suite. If you can activate the compilers from your MSYS-prompt, e.g.

$ gcc --version
gcc.exe (GCC) 3.4.2 (mingw-special)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

then your MSYS / MinGW integration is okay.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 91 of 131, by MiniMax

User metadata
Rank Moderator
Rank
Moderator
franpa wrote:

what is --prefix=/usr ?

The configure program re-creates the Makefile and defines a lot of parameters and settings. The --prefix=/usr affects where the Makefile will install SDL and its supporting files.

Without --prefix=/usr the default will be /usr/local/include, /usr/local/share, /usr/local/man etc etc.

With --prefix=/usr it will be /usr/include, /usr/share, /usr/man, .....

Edit: Updated to refer to SDL instead of DOSBox.

Last edited by MiniMax on 2007-03-06, 08:54. Edited 1 time in total.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 93 of 131, by MiniMax

User metadata
Rank Moderator
Rank
Moderator
gulikoza wrote:

You don't need this file, only sdl-config is needed
But maybe compiling from source seems better at this point...it's not that hard.

I will do a source-install later. I have noticed that MinGW has a standardised, scripted approach to port (install) packages. The SDL-port scripts (SDL-1.2.8-mingwPORT.tar.bz2) are for 1.2.8, but I see no reason why they could not be updated for 1.2.11.

Which brings me to my next question: Which SDL-version is supposed to go with DOSBox 0.70?

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 94 of 131, by MiniMax

User metadata
Rank Moderator
Rank
Moderator
franpa wrote:

i'd like to point out that i wont be able to er, edit the source files.

I don't know about you, but fixing that would be my first priority, before doing much else. But that is just me...

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 95 of 131, by franpa

User metadata
Rank Oldbie
Rank
Oldbie

i replaced the sdl-config file found in the msys bin folder... is this right? then i go to the dosbox folder and... ./autogen.sh then ./configure --prefix=/usr then make and then make install?

AMD Ryzen 3700X | ASUS Crosshair Hero VIII (WiFi) | 16GB DDR4 3600MHz RAM | MSI Geforce 1070Ti 8GB | Windows 10 Pro x64.

my website

Reply 96 of 131, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

I never used autogen.sh when configuring/compiling dosbox-0.70. Should I ?

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 98 of 131, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

I did have one problem with configure 🙁 I guess it is not a DOSBox-problem, but more a problem with autogen(?).

If I specified

$ ./configure --prefix="/path/with spaces in it"

$ make install

would bomb out.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 99 of 131, by franpa

User metadata
Rank Oldbie
Rank
Oldbie
franpa wrote:
Franpa@PAUL ~/sdl-1.2.11 $ make native make install prefix=/usr make[1]: Entering directory `/home/Franpa/sdl-1.2.11' cp -rv bin […]
Show full quote

Franpa@PAUL ~/sdl-1.2.11
$ make native
make install prefix=/usr
make[1]: Entering directory `/home/Franpa/sdl-1.2.11'
cp -rv bin include lib share /usr/
`bin/i386-mingw32msvc-sdl-config' -> `/usr/bin/i386-mingw32msvc-sdl-config'
`bin/SDL.dll' -> `/usr/bin/SDL.dll'
`include/begin_code.h' -> `/usr/include/begin_code.h'
`include/close_code.h' -> `/usr/include/close_code.h'
`include/SDL.h' -> `/usr/include/SDL.h'
`include/SDL_active.h' -> `/usr/include/SDL_active.h'
`include/SDL_audio.h' -> `/usr/include/SDL_audio.h'
`include/SDL_byteorder.h' -> `/usr/include/SDL_byteorder.h'
`include/SDL_cdrom.h' -> `/usr/include/SDL_cdrom.h'
`include/SDL_config.h' -> `/usr/include/SDL_config.h'
`include/SDL_config_amiga.h' -> `/usr/include/SDL_config_amiga.h'
`include/SDL_config_dreamcast.h' -> `/usr/include/SDL_config_dreamcast.h'
`include/SDL_config_macos.h' -> `/usr/include/SDL_config_macos.h'
`include/SDL_config_macosx.h' -> `/usr/include/SDL_config_macosx.h'
`include/SDL_config_minimal.h' -> `/usr/include/SDL_config_minimal.h'
`include/SDL_config_os2.h' -> `/usr/include/SDL_config_os2.h'
`include/SDL_config_win32.h' -> `/usr/include/SDL_config_win32.h'
`include/SDL_copying.h' -> `/usr/include/SDL_copying.h'
`include/SDL_cpuinfo.h' -> `/usr/include/SDL_cpuinfo.h'
`include/SDL_endian.h' -> `/usr/include/SDL_endian.h'
`include/SDL_error.h' -> `/usr/include/SDL_error.h'
`include/SDL_events.h' -> `/usr/include/SDL_events.h'
`include/SDL_getenv.h' -> `/usr/include/SDL_getenv.h'
`include/SDL_joystick.h' -> `/usr/include/SDL_joystick.h'
`include/SDL_keyboard.h' -> `/usr/include/SDL_keyboard.h'
`include/SDL_keysym.h' -> `/usr/include/SDL_keysym.h'
`include/SDL_loadso.h' -> `/usr/include/SDL_loadso.h'
`include/SDL_main.h' -> `/usr/include/SDL_main.h'
`include/SDL_mouse.h' -> `/usr/include/SDL_mouse.h'
`include/SDL_mutex.h' -> `/usr/include/SDL_mutex.h'
`include/SDL_name.h' -> `/usr/include/SDL_name.h'
`include/SDL_opengl.h' -> `/usr/include/SDL_opengl.h'
`include/SDL_platform.h' -> `/usr/include/SDL_platform.h'
`include/SDL_quit.h' -> `/usr/include/SDL_quit.h'
`include/SDL_rwops.h' -> `/usr/include/SDL_rwops.h'
`include/SDL_stdinc.h' -> `/usr/include/SDL_stdinc.h'
`include/SDL_syswm.h' -> `/usr/include/SDL_syswm.h'
`include/SDL_thread.h' -> `/usr/include/SDL_thread.h'
`include/SDL_timer.h' -> `/usr/include/SDL_timer.h'
`include/SDL_types.h' -> `/usr/include/SDL_types.h'
`include/SDL_version.h' -> `/usr/include/SDL_version.h'
`include/SDL_video.h' -> `/usr/include/SDL_video.h'
`lib/libSDL.dll.a' -> `/usr/lib/libSDL.dll.a'
`lib/libSDL.la' -> `/usr/lib/libSDL.la'
`lib/libSDLmain.a' -> `/usr/lib/libSDLmain.a'
`share/aclocal/sdl.m4' -> `/usr/share/aclocal/sdl.m4'
make[1]: Leaving directory `/home/Franpa/sdl-1.2.11'

Franpa@PAUL ~/sdl-1.2.11
$ cd ..

Franpa@PAUL ~
$ cd dosbox-0.70

Franpa@PAUL ~/dosbox-0.70
$ autogen.sh
Generating build information using aclocal, autoheader, automake and autoconf
This may take a while ...
Now you are ready to run ./configure.
You can also run ./configure --help for extra features to enable/disable.

Franpa@PAUL ~/dosbox-0.70
$ ./configure
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... gcc
checking for C compiler default output... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /bin/install -c
checking for ranlib... ranlib
checking for sdl-config... /bin/sdl-config
checking for SDL - version >= 1.2.0... no
*** Could not run SDL test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means SDL was incorrectly installed
*** or that you have moved SDL since it was installed. In the latter case, you
*** may want to edit the sdl-config script: /bin/sdl-config
configure: error: *** SDL version 1.2.0 not found!

this issue remains... SDL seems to compile fine and dandy... i type make native... SDL is installed or whatever.. but dosbox doesnt compile for some queer freaky abnormal reason.

-replace sdl-config found in msys bin folder.

-replace makefile found in sdl folder.

-delete install from sdl folder.

AMD Ryzen 3700X | ASUS Crosshair Hero VIII (WiFi) | 16GB DDR4 3600MHz RAM | MSI Geforce 1070Ti 8GB | Windows 10 Pro x64.

my website