Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user maak ! (Registered 2024-04-18) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Spindle/PEF on Windows
2018-03-19 10:24
Raistlin

Registered: Mar 2007
Posts: 549
Spindle/PEF on Windows

Caveats: I'm an old-school C64 programmer that has spent the last 25+ years developing for PC and console, mostly using Visual Studio and simple installers for SDKs etc. No Linux background at all...

So.. I've been developing using Spindle for a month or so now - and loving it. I've been piecing my demo together using Spin.exe, the prebuilt easy-to-use tool LFT made for quickly piecing demos together with Spindle.

I'd now quite like to take a look at PEF - which is better suited for larger productions. I've been doing ok with Spin.exe, manually working out where to place everything, how best to preload etc .. but now might be a good time to look at PEF as my demo starts to get more complicated with overlapping parts.

Downloading MinGW, GnuWin32 and XA, I still kept hitting problems... make.exe complains:-

"cc -Wall -O3 mkheader.c -o mkheader
process_begin: CreateProcess(NULL, cc -Wall -O3 mkheader.c -o mkheader, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [mkheader] Error 2"

And firing off GCC manually complains, too.. first of all about <err.h> (changing it to "compat/err.h" helps)... then it complains about data_prgloader - which I assume should be in prgloader.h, which is generated by other compile processes, but which appears to be empty (0 bytes) for me...

"gcc -Wall -O3 -o pef2prg.0 pef2prg.c
"pef2prg.c: In function 'save_prg':
pef2prg.c:88:9: error: 'data_prgloader' undeclared (first use in this function)
fwrite(data_prgloader, sizeof(data_prgloader), 1, f);"

Has anyone successfully built this on Windows..? Any idea how to get the makefile to work correctly..?
2018-03-19 11:33
Sander

Registered: Jan 2002
Posts: 487
*humble bow*
2018-03-19 11:50
chatGPZ

Registered: Dec 2001
Posts: 11100
the first is because you are mixing mingw and gnuwin32 - DONT DO THAT, it causes various funky problems. install msys (which includes mingw) and use that instead - see https://stackoverflow.com/questions/1240422/compiling-small-gcc..
2018-03-19 14:52
Raistlin

Registered: Mar 2007
Posts: 549
Thanks Groepaz! Happy to say I got that compiling now :-)

It doesn't work yet - but it compiles ;-)
2018-03-19 19:19
Krill

Registered: Apr 2002
Posts: 2825
What keeps you from running a minimal Linux VM or Docker for Windows? I don't quite see why people torture themselves trying to build non-Windows command-line apps to run in a native Windows environment.
2018-03-19 20:40
Raistlin

Registered: Mar 2007
Posts: 549
Hmm... I've no idea why - because it's not something I've done regularly I guess.

In my day job I'm a "programmer" (when I get the time) on PC/Xbox/PS4/... even on PS4, which is Linux-like/lite in it's tool set, I just hit an "install" button, hit "Build" in Visual Studio and it "Just Works".

I've gotten it working now, actually... the biggest thing that I needed to do, other than installing the tools that Groepaz mentioned, was to put a single line at the top of the makefile... "CC=GCC".
2018-03-19 20:43
Raistlin

Registered: Mar 2007
Posts: 549
FYI, the final problems that I was seeing with it crashing were because I was passing some commandline arguments to "make"...

When I used "make -E cc=gcc" (or similar, I can't quite remember), the makefile was picking up the commandline args and passing those into gcc itself as well... which was then causing some oddness to appear in some of the files. Although everything compiled, some C64-binary files were coming out at zero length .. making Spin.exe later crash. Reducing it all down so that I could compile with only "make" - by adding "CC=GCC" to the makefile - fixed it.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
DJ Space
Guests online: 111
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 The Ghost  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.9)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Logo Graphicians
1 Sander  (10)
2 Facet  (9.7)
3 Mermaid  (9.4)
4 Pal  (9.4)
5 Shine  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.056 sec.