VOGONS


First post, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

I typed in patch -u < openglhq-dosbox-for-sdl-202121117_msvc_gcc.patch
Then the program prompts me with "File to patch?"
I type in the same name as the original file, but it asks me to skip the file.
What is the appropriate name for this input?
Thanks
Jack

Reply 1 of 10, by ykhwong

User metadata
Rank Oldbie
Rank
Oldbie

The OpenGL-HQ patch is for SDL, not for DOSBox. Try -up1 instead of -u.
patch -up1 < openglhq-dosbox-for-sdl-202121117_msvc_gcc.patch

Reply 2 of 10, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

錯誤 1 error C2121: '#' : 無效的字元 : 可能是巨集展開的結果 e:\dosbox_ykhwong\src\dos\dos_network2.h 114 1 dosbox
錯誤 2 error C3861: 'L': 找不到識別項 e:\dosbox_ykhwong\src\dos\dos_network2.h 114 1 dosbox

As per discussion on PM messages, I finally end up with these
I am in doubt something has broken, but just unsure
don't get me wrong, I mean do you know how to resolve it?

1) Not effective pound sign
2) L not recognizable.

Reply 3 of 10, by ykhwong

User metadata
Rank Oldbie
Rank
Oldbie

Just remove the line 114. It is only for debugging.

Reply 4 of 10, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

Still got problems

namespace Util {
std::string compress(const std::string& input) { //throw (SaveState::Error)
if (input.empty())
return input;

const uLong bufferSize = ::compressBound(input.size());

After Solving all link time errors, this message appears.
I had to add save_state.cpp to complete the compilation procedure.

錯誤 1 error C2039: 'compressBound' : 不是 '`global namespace'' 的成員 e:\dosbox_ykhwong\src\save_state.cpp 66 1 dosbox
錯誤 2 error C3861: 'compressBound': 找不到識別項 e:\dosbox_ykhwong\src\save_state.cpp 66 1 dosbox

1) compressBound is not a member of global namespace
2) can't find compressBound inside save_state.cpp

Reply 5 of 10, by ykhwong

User metadata
Rank Oldbie
Rank
Oldbie

compressBound is part of zlib AFAIK. You didn't have the zlib installed yet?

Reply 6 of 10, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

zlib125dll
zlib-1.2.7.tar

I thought I didn't properly installed it. Which one is correct?
Thanks
Jack

Reply 8 of 10, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

So the problem should be something else?
Thanks
Jack

Reply 10 of 10, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie
Dominus wrote:

You give no information of what you did in regards to zlib so how should we tell?

I unpacked it and put it into the dosbox directory, then include the directory in the project path like ..\zlib then in the library path like ..\zlib\dll32
Am I on the right track?
Thanks
Jack