Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in 
CSDb User Forums


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

Registered: Mar 2007
Posts: 86
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
SanderFocus

Registered: Jan 2002
Posts: 460
*humble bow*
2018-03-19 11:50
Groepaz

Registered: Dec 2001
Posts: 8736
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: 86
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: 1007
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: 86
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: 86
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
Dipswitch/Up Rough
Alex/Chromance
Mibri/HF
Guests online: 31
Top Demos
1 Uncensored  (9.7)
2 Comaland 100%  (9.7)
3 Edge of Disgrace  (9.7)
4 Coma Light 13  (9.7)
5 The Shores of Reflec..  (9.6)
6 Wonderland XII  (9.6)
7 Lunatico  (9.6)
8 We Come in Peace  (9.6)
9 Incoherent Nightmare  (9.5)
10 Wonderland XIII  (9.5)
Top onefile Demos
1 FMX Music Demo  (9.6)
2 Daah, Those Acid Pil..  (9.6)
3 Arok 20 Invitation  (9.5)
4 Pandemoniac Part 2 o..  (9.5)
5 Party Horse  (9.5)
6 Treu Love [reu]  (9.5)
7 Merry Xmas 2017  (9.4)
8 Dawnfall V1.1  (9.4)
9 In Memoriam BHF  (9.4)
10 Dawnfall  (9.4)
Top Groups
1 Oxyron  (9.4)
2 Booze Design  (9.4)
3 Censor Design  (9.4)
4 Finnish Gold  (9.4)
5 Crest  (9.3)
Top Webmasters
1 Slaygon  (9.6)
2 Perff  (9.5)
3 Morpheus  (9.5)
4 Sabbi  (9.4)
5 CreaMD  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2018
Page generated in: 0.054 sec.