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


Forums > CSDb Discussions > 1351 mouse emulation in the Mac OsX Cocoa build of Vice
2018-04-27 05:08
JackAsser

Registered: Jun 2002
Posts: 2014
1351 mouse emulation in the Mac OsX Cocoa build of Vice

Anyone got this working? The SDL-build works okish, but the Cocoa build is completly borked when it comes to mouse emulation. Just a random mess.
2018-04-27 11:06
Oswald

Registered: Apr 2002
Posts: 5086
. o O ( mouse? what is he working on? )
2018-04-27 14:37
chatGPZ

Registered: Dec 2001
Posts: 11350
Quote:
the Cocoa build is completly borked

this

you might want to try the GTK3 port :)
2018-04-27 15:23
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: Quote:
the Cocoa build is completly borked

this

you might want to try the GTK3 port :)


Yeah, will do. Gotta build a native Gtk3 first. Would hate to run via an x-layer
2018-04-27 15:36
JackAsser

Registered: Jun 2002
Posts: 2014
Btw, is it planned that the Gtk-build will be used as standard on Win, Mac and Linux. If so I can try to setup nightly builds for Mac at work.
2018-04-27 16:33
Compyx

Registered: Jan 2005
Posts: 631
Yes indeed. So a nightly build system would help us a lot.
2018-04-27 16:33
MagerValp

Registered: Dec 2001
Posts: 1074
Quote: Btw, is it planned that the Gtk-build will be used as standard on Win, Mac and Linux. If so I can try to setup nightly builds for Mac at work.

👍🏼👍🏼
2018-04-27 16:36
Compyx

Registered: Jan 2005
Posts: 631
If possible a system like pokefinder's WinVICE's nightlies would be nice: when the build fails, mail some people with the output of ./configure, the config.log file and the output of make (ie `make 2>&1 | tee make2.log`).
2018-04-27 16:46
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: If possible a system like pokefinder's WinVICE's nightlies would be nice: when the build fails, mail some people with the output of ./configure, the config.log file and the output of make (ie `make 2>&1 | tee make2.log`).

Sure. First I’ll experiment with native Gtk3 libs and statically link them to Vice. I think a self container package with all deps included is the only way to get broad user acceptance.
2018-04-27 17:07
Compyx

Registered: Jan 2005
Posts: 631
Yes. That's the way the Gtk3 devs advised me to distribute the Windows port as well, just package all libs, images, css files etc of Gtk3 with VICE together.
2018-04-27 18:38
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: Yes. That's the way the Gtk3 devs advised me to distribute the Windows port as well, just package all libs, images, css files etc of Gtk3 with VICE together.

Is your GTK-version of VICE jhbuild compatible?
2018-04-27 18:47
Compyx

Registered: Jan 2005
Posts: 631
I would be very surprised if it was. We use autotools, also for the Windows build, which uses MSYS2.

Isn't jhbuild meant to build development versions of Gnome? Not for client software I think.
2018-04-27 18:53
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: I would be very surprised if it was. We use autotools, also for the Windows build, which uses MSYS2.

Isn't jhbuild meant to build development versions of Gnome? Not for client software I think.


It can be used to describe package dependencies for GTK-programs generally and then jhbuild will automatically download all deps and include them into the final package. Gimp is one example.
2018-04-27 19:54
Compyx

Registered: Jan 2005
Posts: 631
well, like I said, we expect people to install all dependencies and then run ./configure, the autotools way.

You're welcome to join #vice-dev on freenode, sometimes we even talk about VICE there.
2018-04-27 20:16
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: well, like I said, we expect people to install all dependencies and then run ./configure, the autotools way.

You're welcome to join #vice-dev on freenode, sometimes we even talk about VICE there.


Yep yep! :)

Currently following https://wiki.gnome.org/Projects/GTK+/OSX/Building which builds a clean separate GTK3+ environment. Using that as prefix and point pkg-config there I hope configure with VICE will work out properly. :)
2018-04-27 20:36
Compyx

Registered: Jan 2005
Posts: 631
Hmmm, I'm curious to see how that works out. If that's proper way to build VICE-Gtk3-OSX, then I have no issues with that.

Although perhaps jhbuild might pull in certain libs with a version number higher than we use (3.22). But we'll see, 3.22 is supposed to be the stable gtk3 version untill gtk4.
2018-04-27 20:57
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: Hmmm, I'm curious to see how that works out. If that's proper way to build VICE-Gtk3-OSX, then I have no issues with that.

Although perhaps jhbuild might pull in certain libs with a version number higher than we use (3.22). But we'll see, 3.22 is supposed to be the stable gtk3 version untill gtk4.


Successfully built now and it works fine (well mouse is still quite borked). But it's not static yet.

otool -L x64sc 
x64sc:
	/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio (compatibility version 1.0.0, current version 1.0.0)
	/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox (compatibility version 1.0.0, current version 492.0.0)
	/System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit (compatibility version 1.0.0, current version 1.0.0)
	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
	/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 822.31.0)
	/Users/andreaslarsson/gtk/inst/lib/libjpeg.9.dylib (compatibility version 12.0.0, current version 12.0.0)
	/Users/andreaslarsson/gtk/inst/lib/libpng16.16.dylib (compatibility version 51.0.0, current version 51.0.0)
	/Users/andreaslarsson/gtk/inst/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
	/Users/andreaslarsson/gtk/inst/lib/libreadline.7.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)
	/Users/andreaslarsson/gtk/inst/lib/libgtk-3.0.dylib (compatibility version 2201.0.0, current version 2201.20.0)
	/Users/andreaslarsson/gtk/inst/lib/libgdk-3.0.dylib (compatibility version 2201.0.0, current version 2201.20.0)
	/Users/andreaslarsson/gtk/inst/lib/libpangocairo-1.0.0.dylib (compatibility version 4001.0.0, current version 4001.12.0)
	/Users/andreaslarsson/gtk/inst/lib/libpango-1.0.0.dylib (compatibility version 4001.0.0, current version 4001.12.0)
	/Users/andreaslarsson/gtk/inst/lib/libatk-1.0.0.dylib (compatibility version 22410.0.0, current version 22410.1.0)
	/Users/andreaslarsson/gtk/inst/lib/libcairo-gobject.2.dylib (compatibility version 11403.0.0, current version 11403.8.0)
	/Users/andreaslarsson/gtk/inst/lib/libcairo.2.dylib (compatibility version 11403.0.0, current version 11403.8.0)
	/Users/andreaslarsson/gtk/inst/lib/libgdk_pixbuf-2.0.0.dylib (compatibility version 3601.0.0, current version 3601.6.0)
	/Users/andreaslarsson/gtk/inst/lib/libgio-2.0.0.dylib (compatibility version 5201.0.0, current version 5201.2.0)
	/Users/andreaslarsson/gtk/inst/lib/libgobject-2.0.0.dylib (compatibility version 5201.0.0, current version 5201.2.0)
	/Users/andreaslarsson/gtk/inst/lib/libglib-2.0.0.dylib (compatibility version 5201.0.0, current version 5201.2.0)
	/Users/andreaslarsson/gtk/inst/lib/libintl.9.dylib (compatibility version 11.0.0, current version 11.4.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1452.23.0)
	/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
	/System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI (compatibility version 1.0.0, current version 69.0.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)
2018-04-27 21:00
JackAsser

Registered: Jun 2002
Posts: 2014
/Users/andreaslarsson/gtk/inst/bin/pkg-config --modversion gtk+-3.0
3.22.20
2018-04-27 21:03
chatGPZ

Registered: Dec 2001
Posts: 11350
would be great if you could look at the bindist target and make that work for OSX (it should kindof work... but you never know =P)
2018-04-27 21:08
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: would be great if you could look at the bindist target and make that work for OSX (it should kindof work... but you never know =P)

It works fine. Using it atm. But it's not statically linked so it's not possible to distribute. However I see performance issued with the GTK3 build compared to the Cocoa build. The graphics stutters quite a lot. It uses 100% cpu power on one core and fails to reach 50fps on that. The Cocoa build is a lot more efficient. Maybe some compile option to enable some optimizations?
2018-04-27 21:23
Compyx

Registered: Jan 2005
Posts: 631
You really should you talk to McMartin, he knows quite a bit of why HW rendering is screwed/flaky on OSX with Gtk3.
2018-04-27 22:41
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: You really should you talk to McMartin, he knows quite a bit of why HW rendering is screwed/flaky on OSX with Gtk3.

Active on #vice-dev?
2018-04-27 22:42
chatGPZ

Registered: Dec 2001
Posts: 11350
of course :)
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
Impetigo/Crescent
Hein
Sychamis
rexbeng
psych
cobbpg
Airwolf/F4CG
mutetus/Ald ^ Ons
Peacemaker/CENSOR/Hi..
The Syndrom/TIA/Pret..
rambo/Therapy/ Resou..
Proton/Finnish Gold
t0m3000/hf^boom!^ibx
sebalozlepsi
Luca/FIRE
Guests online: 116
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Uncensored  (9.6)
7 Wonderland XIV  (9.6)
8 Comaland 100%  (9.6)
9 No Bounds  (9.6)
10 Christmas Megademo  (9.5)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Censor Design  (9.3)
Top Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.7)
4 Acidchild  (9.7)
5 Cash  (9.6)

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