Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML works on FreeBSD very good  (Read 9162 times)

0 Members and 1 Guest are viewing this topic.

andreas

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: FreeBSD is an Unsupported operating system?
« Reply #15 on: October 08, 2012, 09:57:48 am »
Hi everyone, hello Laurent,

I'd like to bring this thread up again, since I tried to build SFML2 on FreeBSD 9.0 recently.

I still get a bunch of errors from JoystickImpl.cpp saying that a bunch of variables have not been declared
(::open, O_RDONLY, F_SETFL and so on ).

Is there some progress considering the Joystick issues on FreeBSD? I'd also like to offer my help if needed.

Thanks a lot.



Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: FreeBSD is an Unsupported operating system?
« Reply #16 on: October 08, 2012, 10:10:52 am »
Quote
Is there some progress considering the Joystick issues on FreeBSD?
No, since I cannot find any documentation about the joystick API on FreeBSD. So yes, I really need your help :)
Laurent Gomila - SFML developer

andreas

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: FreeBSD is an Unsupported operating system?
« Reply #17 on: October 08, 2012, 12:24:11 pm »
As far as I understand, on FreeBSD (as well as NetBSD and OpenBSD) all USB-input devices are handled within the uhub/uhid module. There is also no special device-file for Joysticks (like /dev/input/jsX on linux). Thus there is also no special JoystickAPI available. The Joystick Interface should rather be adressed by using the USB-HID API  (bsd jstk.c).

I'll take a look into that.

deaddodo

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: FreeBSD is an Unsupported operating system?
« Reply #18 on: October 22, 2012, 11:46:06 am »
If you don't want to use UHIDD (though that is the recommended method on *BSD), you can always use the linux-js port:

http://www.freshports.org/devel/linux-js

Which is a port of the Linux Joystick API.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: FreeBSD is an Unsupported operating system?
« Reply #19 on: October 22, 2012, 01:23:49 pm »
Quote
If you don't want to use UHIDD (though that is the recommended method on *BSD), you can always use the linux-js port
That would be very convenient (nothing to change in SFML), but I'd like to use only "standard" dependencies. If most users are forced to install linux-js because of SFML, I think it's a bad idea. However if many applications use it, and it's likely to be already installed on the majority of systems, then it could be a good solution.
Laurent Gomila - SFML developer

andreas

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: FreeBSD is an Unsupported operating system?
« Reply #20 on: October 25, 2012, 12:18:49 pm »
The linux-js port is marked as broken on FreeBSD 9.x stable.
So it can't be easily installed.

ccbsd

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Edit: SFML works on FreeBSD very good
« Reply #21 on: August 27, 2016, 12:05:51 am »
SFML works better on FreeBSD now. And I wish it supports more BSD OS.

 

anything