Frontend Tech + >> MAMEUI & IV/Play
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

caius
MAME Fan
Reged: 10/09/06
Posts: 78
Send PM


Error compiling MAME64UI with the latest 0.189 source from Robbbert repository
#369709 - 09/15/17 09:52 PM


Hi all,
I'm trying to compile MAME64UI with the latest 0.189 source cloned from Robbert repository using latest and updated environment downloaded from mamedev.org.I got this error all the time:


[MINGW64] E:\msys64\src\mameui>make OSD=messui
GCC 7.2.0 detected
Compiling src/osd/winui/winui.cpp...
../../../../../src/osd/winui/winui.cpp: In function 'void ResizeTreeAndListViews
(BOOL)':
../../../../../src/osd/winui/winui.cpp:1302:4: error: this 'if' clause does not
guard... [-Werror=misleading-indentation]
if (!bShowPicture && !bShowSoftware && !g_splitterInfo[i+1].nSplitterWindow)

^~
../../../../../src/osd/winui/winui.cpp:1305:5: note: ...this statement, but the
latter is misleadingly indented as if it were guarded by the 'if'
printf("ResizeTreeAndListViews: %d,%d\n",SPLITTER_WIDTH,MIN_VIEW_WIDTH);
^~~~~~
cc1plus.exe: all warnings being treated as errors
osd_messui.make:1685: recipe for target '../../../../mingw-gcc/obj/x64/Release/o
sd_messui/src/osd/winui/winui.o' failed
make[2]: *** [../../../../mingw-gcc/obj/x64/Release/osd_messui/src/osd/winui/win
ui.o] Error 1
makefile:19: recipe for target 'osd_messui' failed
make[1]: *** [osd_messui] Error 2
makefile:993: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

[MINGW64] E:\msys64\src\mameui>make OSD=messui
GCC 7.2.0 detected
Compiling src/osd/winui/winui.cpp...
../../../../../src/osd/winui/winui.cpp: In function 'void ResizeTreeAndListViews
(BOOL)':
../../../../../src/osd/winui/winui.cpp:1302:4: error: this 'if' clause does not
guard... [-Werror=misleading-indentation]
if (!bShowPicture && !bShowSoftware && !g_splitterInfo[i+1].nSplitterWindow)

^~
../../../../../src/osd/winui/winui.cpp:1305:5: note: ...this statement, but the
latter is misleadingly indented as if it were guarded by the 'if'
printf("ResizeTreeAndListViews: %d,%d\n",SPLITTER_WIDTH,MIN_VIEW_WIDTH);
^~~~~~
cc1plus.exe: all warnings being treated as errors
osd_messui.make:1685: recipe for target '../../../../mingw-gcc/obj/x64/Release/o
sd_messui/src/osd/winui/winui.o' failed
make[2]: *** [../../../../mingw-gcc/obj/x64/Release/osd_messui/src/osd/winui/win
ui.o] Error 1
makefile:19: recipe for target 'osd_messui' failed
make[1]: *** [osd_messui] Error 2
makefile:993: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

Is someone else experiencing same problem?
Thanks in advance.
Regards

Edited by caius (09/15/17 09:53 PM)



Robbbert
Reged: 08/21/04
Posts: 2453
Loc: Land of Oz
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: caius]
#369713 - 09/16/17 03:34 AM


>



redk9258
Regular
Reged: 09/21/03
Posts: 3949
Loc: Troy, Illinois USA
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: Robbbert]
#369727 - 09/16/17 07:58 PM Attachment: error.PNG 69 KB (0 downloads)


Robbbert,

Every since 0.189, I cannot launch (self compiled) MAMEUI64 if MAMEUI.ini exists. This is including your newest update (https://github.com/Robbbert/mameui/commit/c81f2f24d49304435deeba60446d287d4f5ca557).

I did not say anything before, because I knew you were working on a few other issues and thought this might be fixed too.
I have tried making MAMEUI.ini blank and it still will not launch the GUI.

I just tried an experiment. I put MAMEUI64 in a new folder and launched it. It opened and created MAMEUI.ini., MAME_g.ini and an ini folder containing ui.ini. I closed the GUI and tried to launch it. Crashes the same.

[ATTACHED IMAGE]

Attachment

Edited by redk9258 (09/16/17 08:05 PM)



redk9258
Regular
Reged: 09/21/03
Posts: 3949
Loc: Troy, Illinois USA
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: redk9258]
#369728 - 09/16/17 08:10 PM


I just downloaded the one from JohnIV's page and it worked fine. Must be a compiler issue?



Robbbert
Reged: 08/21/04
Posts: 2453
Loc: Land of Oz
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: redk9258]
#369734 - 09/17/17 02:17 AM


>



John IVModerator
IV/Play, MAME, MAMEUI
Reged: 09/22/03
Posts: 1593
Loc: Snohomish, WA, USA
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: redk9258]
#369738 - 09/17/17 06:53 AM


My version is Robbbert's updated bin from his page; I don't self-compile MameUI anymore.



john iv
http://www.mameui.info/



krick
Get Fuzzy
Reged: 02/09/04
Posts: 4124
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: Robbbert]
#369739 - 09/17/17 07:07 AM


> You could try doing this:
>
> > mameui64 > x.txt
>
> then after it crashes, have a look at x.txt as it may provide clues.
> Also, attach mame_g.ini and mameui.ini


It might be useful to capture both standard out and standard error in one file like this...

mameui64 > output.txt 2>&1



GroovyMAME support forum on BYOAC
CRT_EmuDriver - ATI Radeon Catalyst video driver for GroovyMAME
tankadin.com : tank + paladin = tankadin



redk9258
Regular
Reged: 09/21/03
Posts: 3949
Loc: Troy, Illinois USA
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: krick]
#369745 - 09/17/17 04:30 PM


Ok, so launching MAMEUI with no ini files from command line (D:\MAME>mameui64 > output.txt 2>&1) launches GUI, creates ini files and gives this..


Quote:


MAMEUI starting
Win32UI_init: About to init options
game_opts.cpp::load_file : Rebuilding cache
Win32UI_init: Options loaded
Win32UI_init: Common controlversion 6 16
OnSize: Finished
SetupTabView: A
SetupTabView: B
SetupTabView: C
SetupTabView: D
SetupTabView: E
SetupTabView: F
TabView_Reset: A
TabView_Reset: B
TabView_Reset: C
TabView_Reset: E
TabView_Reset: Finished
SetupTabView: Finished
Win32UI_init: About to init tree
DriversInfo: B
InitDriversCache: A
InitDriversCache: B
InitDriversInfo: A
InitDriversInfo: Finished
Win32UI_init: Did init tree
InitMessPicker: A
InitMessPicker: B
InitMessPicker: C
InitMessPicker: D
SetupTabView: A
SetupTabView: B
SetupTabView: C
SetupTabView: D
SetupTabView: E
SetupTabView: F
TabView_Reset: A
TabView_Reset: B
TabView_Reset: C
TabView_Reset: E
TabView_Reset: Finished
SetupTabView: Finished
InitMessPicker: H
InitMessPicker: I
InitMessPicker: J
InitMessPicker: Finished
Win32UI_init: About to InitListView
EnableSelection: A
MyFillSoftwareList: Calling SoftwarePicker_Clear
MyFillSoftwareList: Calling SoftwarePicker_Clear
MyFillSoftwareList: Calling MView_SetDriver
MView_SetDriver: A
MView_SetDriver: B
MyFillSoftwareList: Calling SoftwarePicker_SetDriver
EnableSelection: B
EnableSelection: C
EnableSelection: D
EnableSelection: E
EnableSelection: F
EnableSelection: G
EnableSelection: H
LoadScreenShot: Finished
Update Screenshot: Finished
EnableSelection: Finished
Win32UI_init: Reset the font
Win32UI_init: Init directinput
Win32UI_init: Adjusting..
Adjust Metrics
LoadScreenShot: Finished
Update Screenshot: Finished
OnSize: Finished
Adjust Metrics: Finished
LoadScreenShot: Finished
Update Screenshot: Finished
Win32UI_init: Keyboard
keyboard gui state cleared.
Win32UI_init: Mouse
Win32UI_init: About to show window
unknown audit value -1






redk9258
Regular
Reged: 09/21/03
Posts: 3949
Loc: Troy, Illinois USA
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: redk9258]
#369746 - 09/17/17 04:33 PM Attachment: MAMEUI ini files.zip 136 KB (3 downloads)


Relaunch from same command and output.txt is this...

Quote:


MAMEUI starting
Win32UI_init: About to init options




INI files attached...



Robbbert
Reged: 08/21/04
Posts: 2453
Loc: Land of Oz
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: redk9258]
#369749 - 09/17/17 05:20 PM


>



redk9258
Regular
Reged: 09/21/03
Posts: 3949
Loc: Troy, Illinois USA
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: Robbbert]
#369753 - 09/17/17 06:11 PM


Robbbert,

I have Folders \ _Favorites.ini. This causes my "_Favorites" at the top of the tree view above All Systems. Asteroids is at the top of the list. Maybe I should have moved to a new folder again?

I will compile the new source today and give you the results. It takes a while for me to compile.

Thanks for helping!!



redk9258
Regular
Reged: 09/21/03
Posts: 3949
Loc: Troy, Illinois USA
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: redk9258]
#369760 - 09/17/17 08:16 PM Attachment: MAMEUI_ini.zip 139 KB (1 downloads)


OK, here we go...

New compile, new folder, only MAMEUI64.exe.
Launch from command prompt... mameui64 > output.txt 2>&1
Close GUI...
output.txt, MAME_g.ini and MAMEUI.ini, ini\ui.ini are created. These are attached here.



redk9258
Regular
Reged: 09/21/03
Posts: 3949
Loc: Troy, Illinois USA
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: redk9258]
#369761 - 09/17/17 08:17 PM


Ran same command. GUI does not launch and output.txt changes to this...

Quote:


MAMEUI starting
Win32UI_init: About to init options




If i only delete MAME_g.ini, output.txt is...

Quote:


MAMEUI starting
Win32UI_init: About to init options
OptionsInit: About to load MAMEUI.ini
OptionsInit: About to load ini\ui.ini
OptionsInit: About to load MAME_g.ini
game_opts.cpp::load_file : Rebuilding cache





Edited by redk9258 (09/17/17 08:24 PM)



Robbbert
Reged: 08/21/04
Posts: 2453
Loc: Land of Oz
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: redk9258]
#369763 - 09/18/17 12:31 AM


>



redk9258
Regular
Reged: 09/21/03
Posts: 3949
Loc: Troy, Illinois USA
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: Robbbert]
#369770 - 09/18/17 12:00 PM


I'm using 6.3.0. Which one should I download from here?
https://github.com/mamedev/buildtools/releases
1.5?
EDIT:
NVM. It is 5.3.0. I'll let you know later the outcome. Have to leave for work.

Edited by redk9258 (09/18/17 12:21 PM)



redk9258
Regular
Reged: 09/21/03
Posts: 3949
Loc: Troy, Illinois USA
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: redk9258]
#369777 - 09/19/17 02:58 AM


Good News! It's working now. Must be a bug / incompatibility with the newer compile tools.

Thanks Robbbert for helping me out!



Robbbert
Reged: 08/21/04
Posts: 2453
Loc: Land of Oz
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: redk9258]
#369821 - 09/21/17 07:10 AM


> Good News! It's working now. Must be a bug / incompatibility with the newer compile
> tools.
>
> Thanks Robbbert for helping me out!

I've made some more changes, and squashed a few buffer overflows.

Could you try again with 6.3 ?



redk9258
Regular
Reged: 09/21/03
Posts: 3949
Loc: Troy, Illinois USA
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: Robbbert]
#369825 - 09/22/17 02:12 AM


Sure. I'll have to D/L and install it again. LOL Give me a day or two.



Robbbert
Reged: 08/21/04
Posts: 2453
Loc: Land of Oz
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: redk9258]
#369827 - 09/22/17 03:41 AM


> Sure. I'll have to D/L and install it again. LOL Give me a day or two.

That's fine, take your time.

You could also try (if you wish), compiling with the latest gcc (whatever that is), and see if it works.



redk9258
Regular
Reged: 09/21/03
Posts: 3949
Loc: Troy, Illinois USA
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: Robbbert]
#369828 - 09/22/17 04:15 AM


Just finished compiling. It works with GCC 6.3.0.!!!
Great job!

To get the latest, you mean run these commands listed at MAMEDEV.org, right?


Quote:


Updating build tools

Similar to package managers on Linux like apt-get, yum etc. MSYS2 can automatically update packages for fixes, security updates etc. To update all installed packages to current, from a regular Windows console run the following:

pacman -Sy
pacman -S bash pacman msys2-runtime --noconfirm --needed

Next, exit the console and restart Msys2.

Finally, once back at the console, execute:

pacman -Su --noconfirm





redk9258
Regular
Reged: 09/21/03
Posts: 3949
Loc: Troy, Illinois USA
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: redk9258]
#369829 - 09/22/17 04:38 AM


Did those commands and now I am at GCC 7.2.0! Compiling now but will probably be a while. Going to bed soon.



redk9258
Regular
Reged: 09/21/03
Posts: 3949
Loc: Troy, Illinois USA
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: redk9258]
#369832 - 09/22/17 12:01 PM


It built and seems to work fine with GCC 7.2.0.

Thanks Robbbert!



cyberdman
MAME Fan
Reged: 03/04/06
Posts: 240
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: Robbbert]
#369860 - 09/24/17 01:44 AM


I just updated all my tools tonight from 5.3.0 to 7.2.0 and compiled your latest source code I just pulled from the git with no trouble at all.



cyberdman



Robbbert
Reged: 08/21/04
Posts: 2453
Loc: Land of Oz
Send PM


Re: Error compiling MAME64UI with the latest 0.189 source from Robbbert repository new [Re: redk9258]
#369876 - 09/24/17 12:24 PM


> It built and seems to work fine with GCC 7.2.0.
>
> Thanks Robbbert!

Thanks for testing, I appreciate it.

Was away for a couple of days due to the hot weather.


Pages: 1

Frontend Tech + >> MAMEUI & IV/Play
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Extra information Permissions
Moderator:  John IV 
0 registered and 3 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 359