Comments (6)
I could be wrong but AFAIK Dosbox-x is still SDL 1.2x dependent. So you need (lib)sdl and (lib)sdl_net NOT SDL2 or SDL2_net (though they can happily coexist).
Am 06.02.2015 um 21:37 schrieb legluondunet [email protected]:
Hello,
I tried to compile dosbox-x on Ubuntu but I obtain this error:
$make
....
Making all in gui
make[3]: entrant dans le répertoire « /home/legluondunet/Bureau/Dosbox-X/dosbox-x05022015/src/gui »
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -g -O2 -std=gnu++11 -Wall -mmmx -msse -msse2 -D_FILE_OFFSET_BITS=64 -Wno-strict-aliasing -MT midi.o -MD -MP -MF .deps/midi.Tpo -c -o midi.o midi.cpp
In file included from midi.cpp:131:0:
midi_timidity.h:16:21: fatal error: SDL_net.h: Aucun fichier ou dossier de ce type
#include "SDL_net.h"
^
compilation terminated.
make[3]: *** [midi.o] Erreur 1
make[3]: quittant le répertoire « /home/legluondunet/Bureau/Dosbox-X/dosbox-x05022015/src/gui »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/legluondunet/Bureau/Dosbox-X/dosbox-x05022015/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/legluondunet/Bureau/Dosbox-X/dosbox-x05022015 »
make: *** [all] Erreur 2I already installed sdl2-net-dev package:
$ locate SDL_net.h
/usr/include/SDL2/SDL_net.hThank you for your help.
—
Reply to this email directly or view it on GitHub.
from dosbox-x.
of course, thank you. I thought Dosbox-x used the last SDL version, it solves my last compilation error, but...a few compilation lines later:
$ make
.....
g++ -g -O2 -std=gnu++11 -Wall -mmmx -msse -msse2 -D_FILE_OFFSET_BITS=64 -Wno-strict-aliasing -o dosbox dosbox.o debug/libdebug.a dos/libdos.a fpu/libfpu.a hardware/libhardware.a cpu/libcpu.a shell/libshell.a gui/libgui.a ints/libints.a misc/libmisc.a hardware/serialport/libserial.a hardware/parport/libparallel.a libs/gui_tk/libgui_tk.a libs/porttalk/libporttalk.a hardware/reSID/libresid.a -lasound -lm -ldl -lpthread -L/usr/lib/x86_64-linux-gnu -lSDL -lGL -lpng -lz -lpcap -lX11
gui/libgui.a(midi.o): dans la fonction « MidiHandler_timidity::close_all() »:
/home/legluondunet/Bureau/Dosbox-X/dosbox-x05022015/src/gui/midi_timidity.h:183: référence indéfinie vers « SDLNet_TCP_Close »
/home/legluondunet/Bureau/Dosbox-X/dosbox-x05022015/src/gui/midi_timidity.h:184: référence indéfinie vers « SDLNet_TCP_Close »
gui/libgui.a(midi.o): dans la fonction « MidiHandler_timidity::connect_to_server(char const_, int, TCPsocket_) »:
/home/legluondunet/Bureau/Dosbox-X/dosbox-x05022015/src/gui/midi_timidity.h:214: référence indéfinie vers « SDLNet_ResolveHost »
/home/legluondunet/Bureau/Dosbox-X/dosbox-x05022015/src/gui/midi_timidity.h:220: référence indéfinie vers « SDLNet_TCP_Open »
gui/libgui.a(midi.o): dans la fonction « MidiHandler_timidity::timidity_write_data(void const_, int) »:
/home/legluondunet/Bureau/Dosbox-X/dosbox-x05022015/src/gui/midi_timidity.h:322: référence indéfinie vers « SDLNet_TCP_Send »
gui/libgui.a(midi.o): dans la fonction « MidiHandler_timidity::fdgets(char_, unsigned long) »:
/home/legluondunet/Bureau/Dosbox-X/dosbox-x05022015/src/gui/midi_timidity.h:339: référence indéfinie vers « SDLNet_TCP_Recv »
gui/libgui.a(midi.o): dans la fonction « MidiHandler_timidity::timidity_ctl_command(char_, char const_, ...) »:
/home/legluondunet/Bureau/Dosbox-X/dosbox-x05022015/src/gui/midi_timidity.h:248: référence indéfinie vers « SDLNet_TCP_Send »
gui/libgui.a(midi.o): dans la fonction « __static_initialization_and_destruction_0 »:
/home/legluondunet/Bureau/Dosbox-X/dosbox-x05022015/src/gui/midi_timidity.h:39: référence indéfinie vers « SDLNet_Init »
collect2: error: ld returned 1 exit status
make[3]: *_* [dosbox] Erreur 1
make[3]: quittant le répertoire « /home/legluondunet/Bureau/Dosbox-X/dosbox-x05022015/src »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/legluondunet/Bureau/Dosbox-X/dosbox-x05022015/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/legluondunet/Bureau/Dosbox-X/dosbox-x05022015 »
make: *** [all] Erreur 2
from dosbox-x.
I've seen this before. Whoever wrote the Timidity support stuck SDL_net.h in there whether or not you want it. I'll see if I can separate Timidity support and SDL_net from one another in the code. If not, then I'll conditionally disable Timidity support without SDL_net support for now.
from dosbox-x.
Fixed it. all code in midi_timidity.h is effectively #ifdef'd out now if SDL_net.h was not detected. A real cleanup step would be to remove midi_timidity.h entirely because the MIDI handler object is not used anywhere else in the code. But I'm also assuming that someone out there still wants Timidity support.
from dosbox-x.
legluondunet please confirm the latest code compiles on your end without issues and I'll close the bug.
from dosbox-x.
Dosbox now compiles ok on Ubuntu 14.04, thank you! 👍
from dosbox-x.
Related Issues (20)
- dosbox-x "libc++" problem? HOT 3
- INT 33h, 07h/08h: how to set arbitrary cursor ranges? HOT 2
- PC98: Game "Heart of Saphilamun (Horror of Cridewell 2)" does not work on Dosbox-X HOT 4
- Dunkle Schatten 2 freezes HOT 2
- Homebrew ports for old consoles HOT 1
- DontPanic demo (1993) is missing the fixed GTSR.exe HOT 7
- Raspberry Pi 5 build HOT 11
- Can support CHD ZSTD and CreateDVD function?
- Windows 98 HOT 1
- Questions about the last nightly build HOT 1
- Disabling the FPU doesn’t stop Quake from running
- Inukaze vs Windows 98SE via DOSBox-X 2024.03.01 HOT 2
- XQueryPointer starts to return constant values after mouse "lock" (cursor sticks to the screen edges) HOT 3
- [Solved] Is VGA 9dot font hardcoded in DOSBox? HOT 5
- Does not work at all on Sonoma HOT 1
- DOSbox-X crashes on startup with a PCIe parallel card with address D100 in Windows 10 HOT 19
- Set custom icon from config file?
- Freeze at Joan of Arc: The Siege & The Sword HOT 1
- Screen blank freeze at Bleem 1.4 demo HOT 2
- MT-32/CM32L emulator game issues - Rise of the Dragon, Bumpy HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dosbox-x.