Multiplayer game development announcement - Space Chooter
#21
RE: Multiplayer game development announcement - Space Chooter
Hey TruHobbyist,

I managed to build (with very few warnings) everything after your tips.
However, when I try to build the motif apps, I still get some missing symbols. After tons of digging, I think the solution is beyond my skill level. All over the internet, people point to specific motif versions and it's just too complicated and the time spent there could have been used on my program.

I can build fine (output is mirrored - endianness issue) on Linux on my G5, but I didn't find an IDE of my liking there and I don't have an x86 Linux box available.

It's not all lost - I can already use Xcode to code. I'm still deciding if I will work there or on Softbench.

I think xmodmap will do the trick - I will get back once I give it a proper shot. Not an easy app.
Shiunbird
Administrator

Trade Count: (1)
Posts: 553
Threads: 45
Joined: Mar 2021
Location: Czech Republic
Find Reply
01-02-2022, 11:11 AM
#22
RE: Multiplayer game development announcement - Space Chooter
Hi TruHobbyist,

Thanks for the tip!! Xmodmap works! Scroll lock is now doing the trick.

Now that I'm surviving my final two months at megaCorp, I got some time to give my Octane and my learning some love. Today I spent the afternoon trying to put in code the improved collision algorithm that I figured out with a friend (the current one looks weird - the transfer of kinetic energy doesn't look natural at all).

So far, I've been writing using my C8000 under HP-UX and aCC and never had any issues with the code. MIPSPro always accepted every single line of my code without any issues, until today.

I wrote a command line interface for my program, so I can change render parameters on the fly and see how they affect performance. It works great both on my Intel Mac and my PA-RISC HP-UX machine. It's quite cool to follow Mark Kilgard's tips and actually see the difference.

However, when I tried to build it using my Octane, no go.

Within my main function, I do the classic:

Code:
pthread_thr;
if (pthread_create(&thr,NULL,command_prompt_thread, NULL)) {
            fprintf(stderr, "Failed to create thread.\n");
            return EXIT_FAILURE;
        }

Ancient aCC (HP-UX 11.11) and new clang accept it fine (for aCC, I had to add -lthreads), but MIPSPro goes poof:
"A declaration cannot appear after an executable statement in a block."

The same error is affecting other parts of my code now, even for "int i" within a function. I googled around but nothing very helpful.
I'm compiling with no special options besides pointing to -lGLU -lGL -lXmu and -lX11

I also spent some time poking around Motif, but I felt my sanity going away very fast, so I dropped it.

Thanks guys, and looking forward to being more active again!

edit: forget about it. I was forgetting -c99
(This post was last modified: 07-08-2022, 07:53 PM by Shiunbird.)
Shiunbird
Administrator

Trade Count: (1)
Posts: 553
Threads: 45
Joined: Mar 2021
Location: Czech Republic
Find Reply
07-08-2022, 07:50 PM
#23
RE: Multiplayer game development announcement - Space Chooter
Just use the CC=c99 variable and you can avoid all that next time.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,239
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
07-08-2022, 08:18 PM


Forum Jump:


Users browsing this thread: 3 Guest(s)