Author Topic: R1Q2 Mac Os X and Linux  (Read 12191 times)

Offline QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1357
    • View Profile
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #15 on: March 18, 2015, 07:53:21 PM »
Minor quibble, there are lots of places in this code where Com_Printf is called without a level argument and LLVM complains with a warning. Example in snd_dl.c, where it should probably be called with LOG_CLIENT for level:

Code: [Select]
qboolean SNDDMA_Init(int fullInit)
{
SDL_AudioSpec desired, obtained;
int desired_bits, freq;

if (SDL_WasInit(SDL_INIT_EVERYTHING) == 0) {
if (SDL_Init(SDL_INIT_AUDIO) < 0) {
Com_Printf ("Couldn't init SDL audio: %s\n", LOG_CLIENT, SDL_GetError ());
return 0;
}
} else if (SDL_WasInit(SDL_INIT_AUDIO) == 0) {
if (SDL_InitSubSystem(SDL_INIT_AUDIO) < 0) {
Com_Printf ("Couldn't init SDL audio: %s\n", LOG_CLIENT, SDL_GetError ());
return 0;
}
}
....

This project is originally based on b6990 and I have not compared it to b8012 which is the last version r1ch released.
« Last Edit: March 18, 2015, 08:42:34 PM by QwazyWabbit »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline julian

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #16 on: March 28, 2015, 01:41:00 PM »
Ok, here it is. Thanks!

Last login: Sun Mar 29 00:31:38 on console
Edmunds-Air:~ Edmund$ /Users/Edmund/Desktop/untitled\ folder/Quake\ II\ Starter/r1gl.app/Contents/MacOS/r1gl ; exit;
Added packfile ./baseq2/pak0.pak (1106 files)
Added packfile ./baseq2/pak1.pak (279 files)
Added packfile ./baseq2/pak2.pak (2 files)
Added packfile ./baseq2/pak7.pak (28 files)
Added packfile ./baseq2/pak8.pak (234 files)
Added packfile ./baseq2/pak9.pak (736 files)
====== Quake2 Initialized ======
R1Q2/SDL build 6990, compiled Jan 28 2007.
http://www.r1ch.net/stuff/r1q2/
OSX i386 (/Users/Edmund/Desktop/untitled folder/Quake II Starter/r1gl.app/Contents/MacOS/r1gl)

Console initialized.
vid_ref = ref_r1gl.so
------- PWD: /Users/Edmund/Desktop/untitled folder/Quake II Starter -------
------- Loading ref_r1gl.so from ./ref_r1gl.so -------
LoadLibrary("ref_r1gl.so") failed: No such file or directory
Failed to initialize video!
Error: Failed to initialize video!
logout

[Process completed]
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline Jay Dolan

  • Swanky Member
  • *****
  • Posts: 644
    • View Profile
    • Quetoo.org
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #17 on: March 29, 2015, 07:56:16 PM »
The error is pretty obvious, no?

Code: [Select]
vid_ref = ref_r1gl.so
------- PWD: /Users/Edmund/Desktop/untitled folder/Quake II Starter -------
------- Loading ref_r1gl.so from ./ref_r1gl.so -------
LoadLibrary("ref_r1gl.so") failed: No such file or directory

So the working directory is `/Users/Edmund/Desktop/untitled folder/Quake II Starter`, but R1Q2 lives underneath that, in `./r1gl.app/Contents/MacOS` (probably).

Slayer you may wish to add a little logic to help the game figure out its paths when running from within a .app bundle. There's code that does this in Quetoo here:

https://github.com/jdolan/quetoo/blob/master/src/sys.c#L64
https://github.com/jdolan/quetoo/blob/master/src/filesystem.c#L574

A simpler approach would be to use an environment variable (R1Q2_HOME or something) from within the game, and then modify the app bundle to launch via a shell script, which sets the variable by looking at $0.

Offline Slayer

  • Newbie
  • *
  • Posts: 10
    • View Profile
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #18 on: September 06, 2015, 02:14:39 PM »
Code: [Select]
vid_ref = ref_r1gl.so
------- PWD: /Users/Edmund/Desktop/untitled folder/Quake II Starter -------
------- Loading ref_r1gl.so from ./ref_r1gl.so -------
LoadLibrary("ref_r1gl.so") failed: No such file or directory

Julian, make sure ref_r1gl.so it is in the folder that contains r1q2.app. It should automatically search there. If it still can not find it, try using the ref_gl.so i am attaching to this post. Back when i was messing with this more i remember having trouble getting r1q2 to find r1gl.so. The normal gl file that i am sending should work if you put it in your main quake folder (the one that contains r1q2.app and baseq2). The only two files i have inside the .app bundle are the actual program in /MacOS and SDL.framework in /Frameworks (besides icon files and the like) So i don't know if it looks for the gl files within the bundle itself or not.

I'm going to start tinkering with this again soon. It is still my favorite mac client by far, in some cases i even like it more than the windows version. Like i said before, none of this is my own work. I'm learning as i go along.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline yani

  • Newbie
  • *
  • Posts: 1
    • View Profile
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #19 on: November 06, 2019, 03:04:32 PM »
what can I do with this problem?

/Users/yani/Downloads/q2/r1gl.app/Contents/MacOS/r1gl ; exit;
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Common/ChunkCompression.cpp:49: Error: unsupported compressor 8
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Libraries/CompressData/CompressData.c:353: Error: Unknown compression scheme encountered for file '/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exceptions.plist'
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Common/ChunkCompression.cpp:49: Error: unsupported compressor 8
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Libraries/CompressData/CompressData.c:353: Error: Unknown compression scheme encountered for file '/System/Library/CoreServices/CoreTypes.bundle/Contents/Library/AppExceptions.bundle/Exceptions.plist'
Added packfile ./baseq2/pak0.pak (1040 files)
Added packfile ./baseq2/pak9.pak (51 files)
====== Quake2 Initialized ======
R1Q2/SDL build 6990, compiled Jan 28 2007.
http://www.r1ch.net/stuff/r1q2/
OSX i386 (/Users/yani/Downloads/q2/r1gl.app/Contents/MacOS/r1gl)

Unknown command "+mlook"
Console initialized.
vid_ref = ref_gl.so
------- PWD: /Users/yani/Downloads/q2 -------
------- Loading ref_gl.so from ./ref_gl.so -------
LoadLibrary("./ref_gl.so")
couldn't exec r1gl.cfg
ref_gl version: R1GL 0.1.5.35
dlopen(./opengl32, 1): image not found
ref_gl::R_Init() - could not load "opengl32"
Failed to initialize video!
Error: Failed to initialize video!
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline quadz

  • Loquaciously Multiloquent Member
  • ****
  • Posts: 5352
    • View Profile
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #20 on: November 06, 2019, 07:22:47 PM »
ref_gl version: R1GL 0.1.5.35
dlopen(./opengl32, 1): image not found
ref_gl::R_Init() - could not load "opengl32"
Failed to initialize video!

Apparently missing the opengl32.so library.

I understand Apple has deprecated OpenGL in favor of their homegrown Metal library. Not sure if that might be relevant here?

:exqueezeme:

  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
"He knew all the tricks, dramatic irony, metaphor, bathos, puns, parody, litotes and... satire. He was vicious."

Offline Jay Dolan

  • Swanky Member
  • *****
  • Posts: 644
    • View Profile
    • Quetoo.org
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #21 on: November 12, 2019, 09:27:16 AM »
No, you can still run OpenGL apps just fine on macOS. But it looks like (to me) that build is not correctly setup to support macOS. It's looking for opengl32.so, which it will not find anywhere on Mac. It should be looking for libOpenGL.so.

Why not run a Quake2 build that is actually maintained for macOS, like Q2Pro or Yamagi?

Offline SquiSHeR

  • Full Member
  • ***
  • Posts: 127
  • test
    • View Profile
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #22 on: November 12, 2019, 09:44:03 AM »
No, you can still run OpenGL apps just fine on macOS. But it looks like (to me) that build is not correctly setup to support macOS. It's looking for opengl32.so, which it will not find anywhere on Mac. It should be looking for libOpenGL.so.

Why not run a Quake2 build that is actually maintained for macOS, like Q2Pro or Yamagi?

When I was running Quake 2 on a Mac years ago this would help me to specify the location of the opengl driver (just add to autoexec.cfg and adapt file path)
Code: [Select]
set gl_driver "/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries/libGL.dylib"
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

 

El Box de Shoutamente

Last 10 Shouts:

 

-Unh0ly-

March 18, 2024, 03:51:45 AM

https://www.youtube.com/watch?v=NjGjxwHT6ok

played guitar drums bass and sang cuz everyone too lame to start a band with me

0rbisson

March 14, 2024, 04:29:08 AM
HT1 or whatever the stupid map name is instant server killer. the map is trash, Everyone leaves
 

Costigan_Q2

March 10, 2024, 04:00:02 PM
This is my fave TS post.

And quadz posted it - some ppl must haaate that. :)
 

-Unh0ly-

February 29, 2024, 08:35:47 AM
MONDAY NIGHT RAILWARZ GAMES   74.91.120.171:27910 -- BIG FUCKIN GAMES.... LETS GO!!!!!!!
 

|iR|Focalor

February 29, 2024, 01:19:58 AM
 

|iR|Focalor

February 27, 2024, 12:23:01 AM

0rbisson

February 26, 2024, 11:38:19 AM
player "shogun" known hacker back on ts servers. http://forum.tastyspleen.net/quake/index.php?topic=21160.msg201752#msg201752
 

|iR|Focalor

February 17, 2024, 10:11:59 PM
 

Costigan_Q2

February 16, 2024, 07:45:01 AM
Almost 4 months ey? that's a new record.

Last accepted: profile;u=7126
Date Registered:17-10-2023
WaKy-FeLa

Last registered: profile;u=7150
Date Registered:09-02-2024
damsonpharmacy

0rbisson

February 14, 2024, 10:51:18 PM
pings back up to 400+ on dm

Show 50 latest
Welcome, Guest. Please login or register.
March 29, 2024, 02:36:07 AM

Login with username, password and session length