Dark Bit Factory & Gravity
PROGRAMMING => Purebasic => Topic started by: dr.zeissler on April 30, 2018
-
Hi, I am totally frustrated because mostly none of the fantastic intro/cracktro-remakes do work on my system.
So I decided to compile them from the sources on my machine.
I sent an email to the purebasic-guys to sell me a version that IS working on a P3/1400 with Win98se (the current demo does not).
I also asked for a native MacPPC Version for my 1,5Ghz MacMini. It would be a big deal if I can compile them on the mac too. I think none has done that before.
I'll keep you updated!
Greetinsg
Doc
-
I have PureBasic 4.61 for OSX up and running on my MacMini G4 PPC 1.42Ghz OSX Panther 10.3.9!
I will have to complete my environment with librarys that are needed in order to get "music" played and gfx "displayed".
Hopefully some of them exist on the mac-plantform.
Greetings
Doc
-
I will have to complete my environment with librarys that are needed in order to get "music" played and gfx "displayed".
Hopefully some of them exist on the mac-plantform.
i don't think so. the Libs would only support Windows
-
That sounds pretty bad :(
But I have choosen that platform and are willing to do some coding on that. There are none oldschool-demos/intros/cracktros existant on the mac, especially PPC!
It would be a cool thing, creating some stuff on my little silent and powerful retro-mac.
First I will try to do some old-effects like starfield and rasterbars. I found some sources and do some experimenting. Perhaps I can learn some basics with that.
I already recognized that is not that easy to download cracktro sources for PB and compiling a runable OSX-PPC-Binary.
I tested nearly all the stuff that is available for download here. None worked.
So I will do another approach. First checkout how effects are done and then trying to find workarounds for the sources that are released here.
Btw. this seems to be an alternative for some of the soundformats http://www.mega-nerd.com/libsndfile/
OSX/PPC MX Userlib 1.01 (OSX) http://www.purebasic.fr/english/viewtopic.php?f=19&t=46937
An older version with less commands that has ppc support can be downloaded at http://www.w73.nl/pb/oldLibPBMX.zip
OSX/PPC SIDplayer http://www.pouet.net/prod.php?which=50626
OSX/PPC SNDHplayer http://xsc.atari.org/download.php
-
I already recognized that is not that easy to download cracktro sources for PB and compiling a runable OSX-PPC-Binary.
I tested nearly all the stuff that is available for download here. None worked.
because it was a DOS based scene around 1990 until w98. Purebasic for Democoding is a windows thing so far ;)
but i wish luck in discover some ways to get demos out of a mac .
-
I wish me luck too.
I contacted some other guys that have already some experience in mac-coding.
But a native soundplayer or a library is not funktional within purebasic.
So there will be lot's of work to transform that stuff in a purebasic library.
I think my approch of beginning with some oldschool-effekts is the best way
of getting anything working on my environment.
-
i understand your point, but why doing this if all the stuff exist for windows? :)
-
My "latest" Windows is Win2k. I switched to the mac YEARS ago, before there was a short period of Linux.
I can tell you that it's not the same watching these stuff on a 27" iMac widescreen-display. (either with wine / or native booting win which I currently have not installed anymore)
https://www.flickr.com/photos/94839221@N05/albums/72157692043441714
For me it's all about RETRO! I have all the old machines (Amiga, Archimedes, C64, Mac's, PC's XT/AT/386/486/P1-4 etc.) But I would like to "do" some cool stuff that is not done before.
I would like to use my MacMini G4 because it's a powerful tiny silent machine with 30 watt's. MacOS9 is now usable, MacOSX PPC for sure and MorphOS (AmigaOS 4.x should work too).
It would be a hell of a thing to port some of the great stuff to OSX/PPC.
Doc
-
Here we go. I got the copperbar-example and I loaded it in my pb-setup.
First run: see Problem1.pdf
I googled and found out that "GetAsyncKeyState" is not usable on a mac, so I went for "KeyboardPushed..."
Result: problem seems to be solved
Second run: see Problem2.pdf
I googled and found out that "can't locate -lcrt1.o" indicates that the CLT are not installed.
I found out, that on OS 10.3 through 10.6 they are on the Install DVD and that's true. I installed them.
Result: problem seems to be solved
Third run: see Problem3.pdf
I have no Idea what to do?
EDIT: Seems to be my problem, but how do I fix this: https://www.mac-help.com/threads/library-out-of-date-rerun-ranlib-1-cant-load-from-it.104449/
Because you need to re-run ranlib whenever the modification date of a .a file changes.
Doc
-
Third run: see Problem3.pdf
I have no Idea what to do?
EDIT: Seems to be my problem, but how do I fix this: https://www.mac-help.com/threads/library-out-of-date-rerun-ranlib-1-cant-load-from-it.104449/
Because you need to re-run ranlib whenever the modification date of a .a file changes.
Doc
I'm not a Basic or MacUser, but it says what you should do: rerun ranlib. http://sourceware.org/binutils/docs-2.30/binutils/ranlib.html
You have some native *.o files packed into a zip-like archive which ends with .a. The Linker (LD) has to know which object in this archive exports which function (by reading an index), because it has to link your calls to the specific .o file (and it's corresponding function) in the archive. If the information is out of date, the linker would be able to jump into a memory of the archive that is void and your program would crash. ranlib updates the index for the archive, which should remove the error.
31300034@NL-00126:~$ ar t /usr/lib/x86_64-linux-gnu/libresolv.a
gethnamaddr.o
res_comp.o
res_debug.o
res_data.o
res_mkquery.o
res_query.o
res_send.o
inet_net_ntop.o
inet_net_pton.o
inet_neta.o
base64.o
ns_parse.o
ns_name.o
ns_netint.o
ns_ttl.o
ns_print.o
ns_samedomain.o
ns_date.o
31300034@NL-00126:~$ ranlib -U libresolv.a
31300034@NL-00126:~$ echo $?
0
Bye!
Off-Topic: Man you have an archimedes at home, which model do you own ? I own an A3010 =)
-
A4000 second machine on the left => https://www.flickr.com/photos/94839221@N05/39971143121/in/album-72157692043441714/
-
kleiner Tipp:
statt pdf kannst du auch direkt Bilder hier einbinden ;)
www.Abload.de
zb als hoster
-
-
nice machine you got there with the A4000 =).
Did you try to update the archive's index with ranlib ?
-
Thx! updating with "runlib" is the next thing to do. I upgreaded to XCODE 1.5 just recently.
Hopefully I get the "superuser" up on Panther and then the runlib-command. Let's see what is next.
I am sure that I will get something to run on my machine. Thx for the help from you guys!
-
Next thing to fix (after fixing 1-3)...I am already searching the web.
https://ghc.haskell.org/trac/ghc/ticket/1066
http://www.ccp4.ac.uk/problems/ccp4onMacs.php#39
If your packages doesn"t experience a problem linking C and C++ code together, then you don"t have to worry about this. On the other hand, if it does, you"ll see this:
ld: Undefined symbols:
_fprintf$LDBLStub
...
In that case, you need to add -lSystemStubs to the compilation command.
How can this be done with purebasic?
-
Mhh I don't think that this is a PureBasic related error. What I see is that some library that you're using in your Purebasic code is missing some functions, but this functions should be included in your C-runtime (printf, sscanf...). You can find this error with other languages too, this seems to be a Mac specific error. If you can add this -lSystemStubs to the gcc (I just assume purebasic converts your source to some kind of c/c-- and compiles the c-code) which builds the binaries you should be fine.
Another approach that wouldn't require a rebuild of the library is to repack the library, this is only possible if the library is static and an archive.
I don't have a mac to try this, but the linux archives accept this stuff:
root@vdr:~# find /usr/lib -name "libc.a" | grep x86_64
/usr/lib/x86_64-linux-gnu/libc.a
root@vdr:~# ar t /usr/lib/x86_64-linux-gnu/libc.a |grep ^printf.o
printf.o
root@vdr:~# ar x /usr/lib/x86_64-linux-gnu/libc.a printf.o
root@vdr:~# ls -la printf.o
-rw-r--r-- 1 root root 1440 May 18 20:13 printf.o
root@vdr:~# file printf.o
printf.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
root@vdr:~# ar q libsupp.a printf.o
root@vdr:~# ar t libsupp.a | grep printf.o
printf.o
-
Sorry for Off-Toppic
@INC => Ist das CODEF2EXE von Dir?
Die EXE's gehen vermutlich aber nicht of einem Lowend-PC der P4 Klasse mit Win2kDX9?
Hast Du da ein paar Specs zu den Anforderungen der CODEF2EXE (CPU/RAM/GPU/DX/OS).
I am currently checking out how to fix the last issue. Seems to be a bit problematic.
Perhaps it has reason why no one ever did old-school-effects, remade cracktros/intros on an old mac with an old os.
:-\
-
-
-
Guys,
As this is an English speaking forum, could you please stick to English so every visitor will be able to follow?
Thanks. :cheers:
-
No it doesn't. It creates x86 win binaries.
Oder meinst Du direkt im Webbrowser mit Java die Dinger anzusehen (wab.com). Muss ich da noch mal nachlesen.
Yes, the exe file communicate with a web based code
No sorry that's not me, the very first inc logo that i made was a DOS Logo that change its colors. It can be found in a original bbs release by Monkey Island 1 , called inclogo.com
cheers ;)
-
Yesterday I did manage to get my G4 MacMini updated to Tiger (10.4.11) with every update that is available.
Now I can start safari and browase to wab.com. Interestingly enough the website loads and generates 100%
cpu load just for that small "wobbeling" Logo at the top. Btw. it's very slow too and far from beeing smooth.
That's what I mean, You need LOTS of performance for cool, oldskool 2D smooth and fast effects, that's totally stupid, because a 7,14Mhz machine can do that ten times faster and butterly-smooth.
Btw. i found a dev-kit on pouet from sponzt...perhaps I can generate some colorful-2d-oldskool stuff for my PPC myself.
We will see...
-
First! working code in OSX :)
I modified the code "swinging copperbars" and now I do not get any error-message.
It works and I can produce a working binary :)
Now I will do some experiments with that code.
-
With OSX Tiger 10.4 and up there is a very nice tool included with xcode. it's called "quartz-composer".
I am currently checking this thing...
https://web.archive.org/web/20060430071309/http://www.zugakousaku.com/index.cgi?quartz&&ja
https://www.youtube.com/watch?v=Y1LinJYWQ74
Interesting. I can convert the audio to a movie and play it while composing the video.
Now I have to figue out how to get oldshool-2d stuff (Starfield, Scrollers, Copperbars) out of quartz-composer.
http://fdiv.net/2006/09/19/61-hidden-patches