VOGONS

Common searches


First post, by petro

User metadata
Rank Newbie
Rank
Newbie

Hello,
i have problems to compile cvs sourcecode of the dosbox,
allways error message: `GCC_UNLIKELY' undeclared (first use this function)
When i compile the code of dosbox 0.63 there are no problems and the dosbox runs.
Can someone help me.

peter

Reply 1 of 11, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Operating System, compiler version might help you get an answer 😀

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 2 of 11, by petro

User metadata
Rank Newbie
Rank
Newbie

Sorry,

i work with different systems but always micrsoft, w2k winxp home and prof.
i use mingw and msys latest version, sdl 1.2.9 and no sdlnet.

I work with dosbox and some old siemens simatic s5 software, for this i need
direct serial, i use the last cvs and it works perfect.
Now i have to use some visualization software with F11 and F12 key in the dosbox. For this i compile the dosbox0.63 code with the bios_keyboard.cpp from Cyberwalk and it work, but there is no direct seriall in 0.63.
I think is it possible to use the last cvs code with the change from cyberwalk, but is it not possible for me to compile the cvs sourcecode.

peter

Reply 3 of 11, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

hmm f11 and f12 should work in the cvs. Which cyberwalk bios_keyboard.cpp are you talking about ?

did you run ./configure before make ? (and if there is no configure, did you run ./autogen.sh ?)

Water flows down the stream
How to ask questions the smart way!

Reply 4 of 11, by petro

User metadata
Rank Newbie
Rank
Newbie

i tested f11 f12 again with the last cvs but it works not.
sorry bios_keyboard.cpp is from cyberwalker and not cyberwalk.
Return F11/F12 and more keys to DOS applications

i am not very experienced with compiling and don`t know if all i do is correct.

i have an mix from 0.63 code and cvs code, configure runs and make runs but with error GCC_UNLIKELY' undeclared (first use this function)

when i use only the cvs code and run ./autogen.sh
$ ./autogen.sh
Generating build information using aclocal, autoheader, automake and autoconf
This may take a while ...
./autogen.sh: aclocal: command not found
./autogen.sh: autoheader: command not found
./autogen.sh: automake: command not found
./autogen.sh: autoconf: command not found
Now you are ready to run ./configure.
You can also run ./configure --help for extra features to enable/disable.

and ./configure not runs

peter

Attachments

  • Filename
    bios_keyboard.cpp
    File size
    17.15 KiB
    Downloads
    119 downloads
    File license
    Fair use/fair dealing exception

Reply 7 of 11, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

you need mingw-devel or something like that.
or download
http://pcnwstage.phys.rug.nl/dosboxcvs.tgz
and use that source as a starting point.

Water flows down the stream
How to ask questions the smart way!

Reply 8 of 11, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

i have an mix from 0.63 code and cvs code

why is that?
Best do as qbix said and use a recent cvs snapshot and try to compile that. If you are backporting features from 0.63 (I can't imagine what has been left out from that in CVS) do that in small steps to learn where that fails.
Make sure you've got the latest mingw/msys stuff from http://mingw.sourceforge.net/download.shtml#hdr2
Also get the mingwport stuff from there to be up to date with autoconf, automake...
The candidate stuff works fine for compiling dosbox (for me at least)

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 9 of 11, by petro

User metadata
Rank Newbie
Rank
Newbie

Hello Qbix,

thank you for your help.
But i don't now what's wrong, it's still not possible for me to compile the cvs code.
With the orginal 0.63 code i do ./configure und then make and all works fine.
With the code from your link http://pcnwstage.phys.rug.nl/dosboxcvs.tgz ./configure runs and after make there are a lot oft errors.
Is there something wrong or missing in my compiling enviroment?
I thought it is the same to compile the 0.63 code or the cvs code.

What is with the zlib.h in the first line, i cannot find it.

the errors after make:
zmbv.cpp:19:18: zlib.h: No such file or directory
In file included from zmbv.cpp:25:
zmbv.h:85: error: `z_stream' does not name a type
zmbv.cpp: In member function `bool VideoCodec::SetupCompress(int, int)':
zmbv.cpp:239: error: `zstream' undeclared (first use this function)
zmbv.cpp:239: error: (Each undeclared identifier is reported only once for each function it appears in.)
zmbv.cpp:239: error: `deflateInit' undeclared (first use this function)
zmbv.cpp:239: error: `Z_OK' undeclared (first use this function)
zmbv.cpp: In member function `bool VideoCodec::SetupDecompress(int, int)':
zmbv.cpp:249: error: `zstream' undeclared (first use this function)
zmbv.cpp:249: error: `inflateInit' undeclared (first use this function)
zmbv.cpp:249: error: `Z_OK' undeclared (first use this function)
zmbv.cpp: In member function `bool VideoCodec::PrepareCompressFrame(int, zmbv_fo rmat_t, char*, void*, int)':
zmbv.cpp:302: error: `zstream' undeclared (first use this function)
zmbv.cpp:302: error: `deflateReset' undeclared (first use this function)
zmbv.cpp: In member function `int VideoCodec::FinishCompressFrame()':
zmbv.cpp:356: error: `zstream' undeclared (first use this function)
zmbv.cpp:356: error: `Bytef' undeclared (first use this function)
zmbv.cpp:356: error: expected primary-expression before ')' token
zmbv.cpp:356: error: expected `;' before "work"
zmbv.cpp:360: error: expected primary-expression before ')' token
zmbv.cpp:363: error: `Z_SYNC_FLUSH' undeclared (first use this function)
zmbv.cpp:363: error: `deflate' undeclared (first use this function)
zmbv.cpp: In member function `bool VideoCodec::DecompressFrame(void*, int)':
zmbv.cpp:424: error: `zstream' undeclared (first use this function)
zmbv.cpp:424: error: `inflateReset' undeclared (first use this function)
zmbv.cpp:426: error: `Bytef' undeclared (first use this function)
zmbv.cpp:426: error: expected primary-expression before ')' token
zmbv.cpp:426: error: expected `;' before "data"
zmbv.cpp:430: error: expected primary-expression before ')' token
zmbv.cpp:430: error: expected `;' before "work"
zmbv.cpp:433: error: `Z_FINISH' undeclared (first use this function)
zmbv.cpp:433: error: `inflate' undeclared (first use this function)
zmbv.cpp: In constructor `VideoCodec::VideoCodec()':
zmbv.cpp:548: error: `zstream' undeclared (first use this function)
make[4]: *** [zmbv.o] Error 1
make[4]: Leaving directory `/c/dosbox/dosbox/src/libs/zmbv'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/c/dosbox/dosbox/src/libs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/dosbox/dosbox/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/dosbox/dosbox'
make: *** [all] Error 2

peter

Reply 10 of 11, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

well you need a few libs to compile dosbox
(as mentioned in the INSTALL file)
You seem to be missing zlib
Not sure if that one is mentioned. The zmbv code is relatively new.

Water flows down the stream
How to ask questions the smart way!