Author Topic: Is it possible to compile for BSD Natively? (Open/Free)  (Read 2375 times)

Offline diceless

  • Mc. Print
  • *
  • Posts: 6
    • View Profile
I know that it's a platform more obscure than linux and that it does have a linux compatibility layer but is it possible to compile programs for native BSD OS's in some way outside of or in addition to the built-in compiler?

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5028
  • O Rly?
    • View Profile
if linuxprograms run on that OS you can compile a simple linuxprogram...
I see no problem at all o.O
I <3 DGArray's :D

PC:
AMD Ryzen 7 1700 @3.9GHz, 16GB HyperX Fury 3000MHz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10723
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Bsd should be elf,x86. So the Linux portmight run.

Offline diceless

  • Mc. Print
  • *
  • Posts: 6
    • View Profile
if linuxprograms run on that OS you can compile a simple linuxprogram...
I see no problem at all o.O

The compatibility layer works off of a certain kernel (I believe that it's still on 2.6x) and is still actively worked upon. It's not perfect but imagine it as being like WINE but with a much higher level of compatibility.

@Kitty Hello: I hope so. I dual boot Windows and Linux but many of the geeks and anime club members in my area are into BSD (usually PC-BSD). I'm really asked this question for a couple of them that saw me using GLBasic.

MrTAToad

  • Guest
I think I tried FreeBSD ages ago - the problem was getting the needed libraries, although only SDL should be needed now...