Closed DruggedBunny closed 6 years ago
Er, thought I'd summarised that with "think SDL2 is the problem"...
Also, dunno how much .bat stuff you've done, but it might be worth trying to add some checks for %ERRORLEVEL% after each command is run, as you can just abort, otherwise it just carries on and ends up looking like it's built properly!
Here's my hard-won mx2 + Ted2Go download-n-build batch file, for example -- needs a copy of the devtools folder alongside it, containing MinGW in order to work. Run in its own folder for safety if you try to run it, but only intended for quick how-to reference...
@echo off
REM git clone -b develop https://github.com/blitz-research/monkey2/
REM git clone -b dev https://github.com/engor/Ted2Go/
REM Quick test project:
REM git clone https://github.com/DruggedBunny/Hello-World
rmdir /S /Q monkey2 2>NUL
rmdir /S /Q Ted2Go 2>NUL
echo.
echo Checking out Monkey2...
echo.
git clone -b develop https://github.com/blitz-research/monkey2/
if not %ERRORLEVEL%==0 (
echo.
echo Error checking out monkey2: see output above!
echo.
pause
exit /B
) else (
echo.
echo Monkey2 downloaded; checking out Ted2Go...
echo.
)
rmdir /S /Q monkey2\src\ted2go
rmdir /S /Q monkey2\devtools
git clone -b dev https://github.com/engor/Ted2Go/
if not %ERRORLEVEL%==0 (
echo.
echo Error checking out Ted2Go: see output above!
echo.
pause
exit /B
)
xcopy Ted2Go monkey2\src\Ted2Go /E /Y /I /Q
echo.
echo Copying devtools...
echo.
xcopy devtools monkey2\devtools /E /Y /I /Q
echo.
echo Building...
echo.
pushd monkey2\scripts
call rebuildall2go.bat
popd
echo.
echo All done!
echo.
done
pause
Seems to be a problem with mingw builds only.
Have you got it set up so you can buoild with msvc? If not, I should have it fixed soon.
On Thu, Dec 14, 2017 at 1:03 PM, DruggedBunny notifications@github.com wrote:
Er, thought I'd summarised that with "think SDL2 is the problem"...
Also, dunno how much .bat stuff you've done, but it might be worth trying to add some checks for %ERRORLEVEL% after each command is run, as you can just abort, otherwise it just carries on and ends up looking like it's built properly!
Here's my hard-won mx2 + Ted2Go download-n-build batch file, for example -- needs a copy of the devtools folder alongside it, containing MinGW in order to work. Run in its own folder for safety if you try to run it, but only intended for quick how-to reference...
@echo off
REM git clone -b develop https://github.com/blitz-research/monkey2/ REM git clone -b dev https://github.com/engor/Ted2Go/
REM Quick test project: REM git clone https://github.com/DruggedBunny/Hello-World
rmdir /S /Q monkey2 2>NUL rmdir /S /Q Ted2Go 2>NUL
echo. echo Checking out Monkey2... echo.
git clone -b develop https://github.com/blitz-research/monkey2/
if not %ERRORLEVEL%==0 ( echo. echo Error checking out monkey2: see output above! echo. pause exit /B ) else ( echo. echo Monkey2 downloaded; checking out Ted2Go... echo. )
rmdir /S /Q monkey2\src\ted2go rmdir /S /Q monkey2\devtools
git clone -b dev https://github.com/engor/Ted2Go/
if not %ERRORLEVEL%==0 ( echo. echo Error checking out Ted2Go: see output above! echo. pause exit /B )
xcopy Ted2Go monkey2\src\Ted2Go /E /Y /I /Q
echo. echo Copying devtools... echo.
xcopy devtools monkey2\devtools /E /Y /I /Q
echo. echo Building... echo.
pushd monkey2\scripts call rebuildall2go.bat popd
echo. echo All done! echo.
done pause
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/blitz-research/monkey2/issues/292#issuecomment-351565222, or mute the thread https://github.com/notifications/unsubscribe-auth/ADU3Qkfp04x5MtxH9zpopotvV_hHsm8Jks5tAGXHgaJpZM4RBWos .
I was having no joy with MSVC (failed with no clear messages even after updating to right version!), but am currently checking out/building latest dev, see it's just updated... will try get MinGW going again and take it from there...
Just pushed a fix for this to develop.
On Thu, Dec 14, 2017 at 1:47 PM, Mark Sibly blitzmunter@gmail.com wrote:
Seems to be a problem with mingw builds only.
Have you got it set up so you can buoild with msvc? If not, I should have it fixed soon.
On Thu, Dec 14, 2017 at 1:03 PM, DruggedBunny notifications@github.com wrote:
Er, thought I'd summarised that with "think SDL2 is the problem"...
Also, dunno how much .bat stuff you've done, but it might be worth trying to add some checks for %ERRORLEVEL% after each command is run, as you can just abort, otherwise it just carries on and ends up looking like it's built properly!
Here's my hard-won mx2 + Ted2Go download-n-build batch file, for example -- needs a copy of the devtools folder alongside it, containing MinGW in order to work. Run in its own folder for safety if you try to run it, but only intended for quick how-to reference...
@echo off
REM git clone -b develop https://github.com/blitz-research/monkey2/ REM git clone -b dev https://github.com/engor/Ted2Go/
REM Quick test project: REM git clone https://github.com/DruggedBunny/Hello-World
rmdir /S /Q monkey2 2>NUL rmdir /S /Q Ted2Go 2>NUL
echo. echo Checking out Monkey2... echo.
git clone -b develop https://github.com/blitz-research/monkey2/
if not %ERRORLEVEL%==0 ( echo. echo Error checking out monkey2: see output above! echo. pause exit /B ) else ( echo. echo Monkey2 downloaded; checking out Ted2Go... echo. )
rmdir /S /Q monkey2\src\ted2go rmdir /S /Q monkey2\devtools
git clone -b dev https://github.com/engor/Ted2Go/
if not %ERRORLEVEL%==0 ( echo. echo Error checking out Ted2Go: see output above! echo. pause exit /B )
xcopy Ted2Go monkey2\src\Ted2Go /E /Y /I /Q
echo. echo Copying devtools... echo.
xcopy devtools monkey2\devtools /E /Y /I /Q
echo. echo Building... echo.
pushd monkey2\scripts call rebuildall2go.bat popd
echo. echo All done! echo.
done pause
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/blitz-research/monkey2/issues/292#issuecomment-351565222, or mute the thread https://github.com/notifications/unsubscribe-auth/ADU3Qkfp04x5MtxH9zpopotvV_hHsm8Jks5tAGXHgaJpZM4RBWos .
msvc has been updated to use the vc community edition 2017 so maybe give that a whirl. Post an issue if it doesn't work. MSVC is faster than ever now as I found an option that makes it spits out included files while it compiles, so there's now no extra 'scanning' pass like there is with gcc/mingw.
Also, you need to do the initial mx2cc build with mingw right now. This will change next time I update binaries in the repos, but I hate doing that unless I really have to as it bloats the repos significantly.
On Thu, Dec 14, 2017 at 2:13 PM, Mark Sibly blitzmunter@gmail.com wrote:
Just pushed a fix for this to develop.
On Thu, Dec 14, 2017 at 1:47 PM, Mark Sibly blitzmunter@gmail.com wrote:
Seems to be a problem with mingw builds only.
Have you got it set up so you can buoild with msvc? If not, I should have it fixed soon.
On Thu, Dec 14, 2017 at 1:03 PM, DruggedBunny notifications@github.com wrote:
Er, thought I'd summarised that with "think SDL2 is the problem"...
Also, dunno how much .bat stuff you've done, but it might be worth trying to add some checks for %ERRORLEVEL% after each command is run, as you can just abort, otherwise it just carries on and ends up looking like it's built properly!
Here's my hard-won mx2 + Ted2Go download-n-build batch file, for example -- needs a copy of the devtools folder alongside it, containing MinGW in order to work. Run in its own folder for safety if you try to run it, but only intended for quick how-to reference...
@echo off
REM git clone -b develop https://github.com/blitz-research/monkey2/ REM git clone -b dev https://github.com/engor/Ted2Go/
REM Quick test project: REM git clone https://github.com/DruggedBunny/Hello-World
rmdir /S /Q monkey2 2>NUL rmdir /S /Q Ted2Go 2>NUL
echo. echo Checking out Monkey2... echo.
git clone -b develop https://github.com/blitz-research/monkey2/
if not %ERRORLEVEL%==0 ( echo. echo Error checking out monkey2: see output above! echo. pause exit /B ) else ( echo. echo Monkey2 downloaded; checking out Ted2Go... echo. )
rmdir /S /Q monkey2\src\ted2go rmdir /S /Q monkey2\devtools
git clone -b dev https://github.com/engor/Ted2Go/
if not %ERRORLEVEL%==0 ( echo. echo Error checking out Ted2Go: see output above! echo. pause exit /B )
xcopy Ted2Go monkey2\src\Ted2Go /E /Y /I /Q
echo. echo Copying devtools... echo.
xcopy devtools monkey2\devtools /E /Y /I /Q
echo. echo Building... echo.
pushd monkey2\scripts call rebuildall2go.bat popd
echo. echo All done! echo.
done pause
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/blitz-research/monkey2/issues/292#issuecomment-351565222, or mute the thread https://github.com/notifications/unsubscribe-auth/ADU3Qkfp04x5MtxH9zpopotvV_hHsm8Jks5tAGXHgaJpZM4RBWos .
OK, SDL/EGL problem's sorted here, so this one can be closed.
MSVC looks to be building modules now, getting somewhere!
[A fair bit of rebuilding later] OH MY GOD, MSVC is so much faster at building projects! And the Comanche demo now runs much faster, too, around 50 fps here -- was nothing like that before!
Looking good!
From my end, it's been:
1) Make sure latest MSVC2017 update is installed; 2) checkout and build develop branch with mingw; 3) switch to MSVC in env_*.txt; 4) build all with MSVC.
You should just need to do the initial mx2cc build with mingw, eg; change to mingw in env.txt, rebuildmx2cc, change to msvc in env.txt, rebuildall2go.
On Thu, Dec 14, 2017 at 3:44 PM, DruggedBunny notifications@github.com wrote:
OK, SDL/EGL problem's sorted here, so this one can be closed.
MSVC looks to be building modules now, getting somewhere!
[A fair bit of rebuilding later] OH MY GOD, MSVC is so much faster at building projects! And the Comanche demo now runs much faster, too, around 50 fps here -- was nothing like that before!
Looking good!
From my end, it's been:
- Make sure latest MSVC2017 update is installed;
- checkout and build develop branch with mingw;
- switch to MSVC in env_*.txt;
- build all with MSVC.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/blitz-research/monkey2/issues/292#issuecomment-351591943, or mute the thread https://github.com/notifications/unsubscribe-auth/ADU3QlLVIdE-shDqMtYyKROXZ3InaU1oks5tAIt4gaJpZM4RBWos .
Having trouble building latest develop branch, at time of writing, "Latest commit 3445e4f 5 hours ago".
It seems to fail particularly on both EGL and mojo_app_2event.h -- same happened with the prior release, around 20 hours before.
Seems to get through a load of modules, then runs into:
... then it happily carries on building, but of course, the end result doesn't actually work!
... then the same on debug SDL2 and Ted2Go (where the *event.h thing comes up), and while building the launcher, but I suppose it all hinges on SDL2...