Login  •  Register


The time is now: Sat Dec 14, 2019 1:35 am

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 8 posts ]
Print view Previous topic  |  Next topic
Author Message
PostPosted: Sun Feb 10, 2019 10:25 pm 
Offline
Inquisitive Elf
User avatar

Joined: Sat Feb 04, 2017 5:12 am
Posts: 32
Location: Argentina
The title says all. The thing is, I am using Visual C++ 2008 Express Edition, I set the options in the configuration file and everything to generate the tool executable (using the command utility BTW) and it generates two things after I compile: the exe of the config tool and an object file. So, I try running the exe with a t command, it just bomards me with a wall of text, but it doesn't generate any project file nor does it generate any makefile file, which I need to have to build the darn thing in the first place. What am I supposed to do next? I am lost!

_________________
Compact Macs will rule supreme for all eternity! :twisted:


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Mon Feb 11, 2019 6:49 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2757
Location: Emaculation.com
You're going to want to start here:
https://www.gryphel.com/c/minivmac/build.html
Notably, there's useful information here: https://www.gryphel.com/c/minivmac/setupcfg.html

To use the compiler like you're wanting to, you'll need to set Use Command Line appropriately.

By default, it'll just create a visual studio project that you should be able to load and run. Alternatively, you can build it inside MinGW. If you want a makefile, the Use Command Line flag must be set.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Feb 15, 2019 4:05 am 
Offline
Inquisitive Elf
User avatar

Joined: Sat Feb 04, 2017 5:12 am
Posts: 32
Location: Argentina
Well, saw your comment, and I tried all sorts of things, like putting all the files of the setup folder in an individual project and then build, putting all the files of the folder in an project (respecting the original hierarchy ofc) but I always either get an exe that I have to run on the command line (which just gives me in return a wall of text) or the building fails. I am going insane with this! If you could give me a helping hand, I would really appreciate it.

_________________
Compact Macs will rule supreme for all eternity! :twisted:


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Feb 15, 2019 4:31 am 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2757
Location: Emaculation.com
It would probably work better for someone with access to a similar environment to yours to give you a hand; my default build environment is on OS X.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Feb 15, 2019 12:22 pm 
Offline
Forum All-Star
User avatar

Joined: Wed Nov 11, 2009 5:47 pm
Posts: 1333
Location: Germany
Couldn´t you just use the old build procedure for 3.58?
If you don´t need a cutting edge build, you might look here (3. DL): http://macintoshgarden.org/apps/mac-sys ... c-mac-plus


Last edited by 24bit on Sat Feb 16, 2019 11:12 am, edited 1 time in total.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sat Feb 16, 2019 6:28 am 
Offline
Tinkerer

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 97
macplus wrote:
(which just gives me in return a wall of text)

It's a bash script.
To build Mini vMac 36.04, it seems to need bash.

How to build using VC++2008 (without linux like environment)

1) append following lines to setup\CONFIGUR.i
Code:
#define cur_ide gbk_ide_msv
#define ide_vers 9000
#define UseCmndLine 1

2) generate setup.sh (VS command prompt)
Code:
cl setup\tool.c
tool -t wx86 >setup.sh

3) generate makefile using online bash

e.g. https://repl.it/languages/bash

Paste contents of setup.sh, execute and download makefile.

4) make (VS command prompt)
Code:
nmake

minivmac.exe will be generated.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sat Feb 16, 2019 6:37 am 
Offline
Inquisitive Elf
User avatar

Joined: Sat Feb 04, 2017 5:12 am
Posts: 32
Location: Argentina
Thanks a lot for your help! I will try it out later (as it is 3 AM and I REALLY want to sleep) and tell you the results.
Update: It worked! I decided to skip the makefile thing and I went with the project file. After building it gave me a nice little exe ready to run!

_________________
Compact Macs will rule supreme for all eternity! :twisted:


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Aug 06, 2019 5:38 am 
Offline
Space Cadet

Joined: Fri Jan 28, 2011 4:31 am
Posts: 4
Location: United States
Since this took me a lot longer than I expected as I haven't programmed in C++ in so very long, and less so in Visual Studios.

I had version 2010 installed and I was targeting that version in my config.

the dang thing was not finding "nmake" from the command line option in VS2010, which seems to be an issue with what I had installed.

this command opens what I needed:
Code:
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86_amd64


or if you are targeting 32 bit:
Code:
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86


After opening this, I could run nmake and everything was happy!

I am posting this for anyone else who spent the better part of 5 hours trying to get nmake to work, I am unsure if this is an issue with VS2019 or not...part of it was a dumb mistake on my end.

Either way, your post was so handy!

Edit (adding my build method):
I also improved upon the process listed above, I downloaded win-bash (a portable bash) and put it in the folder where my source is.

my folder structure looks like this:
Code:
extras/
setup/
shell32/
src/
buildTool.bat
COPYING.txt
README.txt


shell32 has the portable bash extracted to it, then I made the batch file to clean up and re-build minivmac with the script:
Code:
@echo off

REM Delete old build script, minivmac, makefile, bld folder and cfg folder
IF EXIST build.sh DEL /F build.sh
IF EXIST tool.exe DEL /F tool.exe
IF EXIST MAKEFILE DEL /F MAKEFILE
IF EXIST minivmac.exe DEL /F minivmac.exe
IF EXIST .\bld rmdir .\bld /q /s
IF EXIST .\cfg rmdir .\cfg /q /s

REM Create tool.exe remove obj after compilation.
cl setup\tool.c
IF EXIST tool.obj DEL /F tool.obj

REM Generate build bash script using the flags you want to build with
set flags=%1
set flags=%flags:"=%
tool.exe %flags% >> build.sh

REM Use win-bash to run the script
shell32\bash.exe -c ./build.sh

REM run makefile
nmake


to kick of the process you simply open the command line of visual studios like above, then navigate to the project folder and run the following:
Code:
buildTool "-t wx64"


you can put all of your flags in there and it will pass it to the tool it builds as part of the process.

Thanks!


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 1 of 1 [ 8 posts ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
 

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group