LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-06-2021, 06:36 PM   #1
CompleteNewbie2020
LQ Newbie
 
Registered: Oct 2020
Posts: 5

Rep: Reputation: Disabled
trying to build a program from source?


Hello, i'm trying to build an snes emulator on kali linux called higen.
I followed instruction on the site and installed the dependencies with this line :

sudo apt-get install build-essential libgtk2.0-dev libpulse-dev \
mesa-common-dev libgtksourceview2.0-dev libcairo2-dev libsdl1.2-dev \
libxv-dev libao-dev libopenal-dev libudev-dev

and then i tried the make command in the source directory of the emulator with this:

cd ~/higan-master
make -C higan

and then i got this

make: Entering directory '/home/fook/higan/higan-master/higan'
GNUmakefile:10: *** "unsupported platform". Stop.
make: Leaving directory '/home/fook/higan/higan-master/higan'

i tried looking on the web but without success
What does "unsupported platform means"? Is it because i'm on kali? or is it the gcc that's not good? And how can i know what platform i need?
 
Old 09-06-2021, 06:46 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by CompleteNewbie2020 View Post
Hello, i'm trying to build an snes emulator on kali linux called higen. I followed instruction on the site and installed the dependencies with this line :
Code:
sudo apt-get install build-essential libgtk2.0-dev libpulse-dev \
    mesa-common-dev libgtksourceview2.0-dev libcairo2-dev libsdl1.2-dev \
    libxv-dev libao-dev libopenal-dev libudev-dev
and then i tried the make command in the source directory of the emulator with this:
Code:
cd ~/higan-master
make -C higan
and then i got this
Code:
make: Entering directory '/home/fook/higan/higan-master/higan'
GNUmakefile:10: *** "unsupported platform".  Stop.
make: Leaving directory '/home/fook/higan/higan-master/higan'
i tried looking on the web but without success What does "unsupported platform means"? Is it because i'm on kali? or is it the gcc that's not good? And how can i know what platform i need?
First, did you read the docs on higan??
https://higan.readthedocs.io/en/latest/install/linux/

You didn't run the correct make command. And why on EARTH would you run Kali as your desktop install??? Their own website, along with countless threads on here, and sticky posts, all tell you NOT to do this. So why you're trying to use it to play games on is the better question...do not be surprised if you're having problems. And depending on the version of Kali you're using, the default is to ALWAYS log in as root...again, the higan docs specifically tell you not to make/build things as root. A quick glance at that source indicates it does a check for various things...and unsurprisingly doesn't find them on Kali.

And if you're a new user, Kali is DEFINITELY not for you, as (again) their own website says..it's for advanced Linux users, and even then they recommend only using it in a virtual machine, for security/pentesting only.

Last edited by TB0ne; 09-06-2021 at 06:47 PM.
 
6 members found this post helpful.
Old 09-06-2021, 07:42 PM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
GNUmakefile:10: *** "unsupported platform". Stop.
make: Leaving directory '/home/fook/higan/higan-master/higan'
If I understand the documentation for GNU Make correctly, the problem is at line 10 in /home/fook/higan/higan-master/higan/GNUmakefile. I would try to figure out what happens at this line.

But as TB0ne commented already, you are missing the target=higan argument, and anyway Kali is a penetration testing tool and a weird choice for running a game emulator. You should be better off using generic Debian, Ubuntu or Mint.

Last edited by berndbausch; 09-06-2021 at 07:44 PM. Reason: added "target-higan"
 
2 members found this post helpful.
Old 09-06-2021, 09:52 PM   #4
CompleteNewbie2020
LQ Newbie
 
Registered: Oct 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
If I understand the documentation for GNU Make correctly, the problem is at line 10 in /home/fook/higan/higan-master/higan/GNUmakefile. I would try to figure out what happens at this line.

But as TB0ne commented already, you are missing the target=higan argument, and anyway Kali is a penetration testing tool and a weird choice for running a game emulator. You should be better off using generic Debian, Ubuntu or Mint.
Well kali is fun to use and it helps me learn a lot so i think it's worth it, but i did try to install it on ubuntu and i have the exact same problem. So i went to see GNUmakefile and here's the code:

Code:
ifeq ($(platform),windows)
  options += -luuid -lkernel32 -luser32 -lgdi32 -lcomctl32 -lcomdlg32 -lshell32
  options += -Wl,-enable-auto-import
  options += -Wl,-enable-runtime-pseudo-reloc
else ifeq ($(platform),macos)
else ifneq ($(filter $(platform),linux bsd),)
  options += -Wl,-export-dynamic
  options += -lX11 -lXext
else
  $(error "unsupported platform")
endif
i'm a complete beginner in coding, but i can imagine i don't have one or more of those "options"... so what are those? Do you have any ideas.
Thanks for the help
 
Old 09-07-2021, 12:37 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Originally Posted by CompleteNewbie2020 View Post
Well kali is fun to use and it helps me learn a lot so i think it's worth it,
No, you will need to handle a lot of "strange" issues just because you think kali is fun.
Quote:
Originally Posted by CompleteNewbie2020 View Post
but i did try to install it on ubuntu and i have the exact same problem. So i went to see GNUmakefile and here's the code:

Code:
ifeq ($(platform),windows)
  options += -luuid -lkernel32 -luser32 -lgdi32 -lcomctl32 -lcomdlg32 -lshell32
  options += -Wl,-enable-auto-import
  options += -Wl,-enable-runtime-pseudo-reloc
else ifeq ($(platform),macos)
else ifneq ($(filter $(platform),linux bsd),)
  options += -Wl,-export-dynamic
  options += -lX11 -lXext
else
  $(error "unsupported platform")
endif
Yes, platform is not set, therefore it prints "unsupported platform"
Quote:
Originally Posted by CompleteNewbie2020 View Post
i'm a complete beginner in coding, but i can imagine i don't have one or more of those "options"... so what are those? Do you have any ideas.
Thanks for the help
To solve it you need to set platform in your environment. But actually I have no idea what was the "official" solution.

Last edited by pan64; 09-07-2021 at 01:04 AM.
 
Old 09-07-2021, 01:01 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by CompleteNewbie2020 View Post
Hello, i'm trying to build an snes emulator on kali linux called higen.
Mr Robot would never do that!

Quote:
Originally Posted by CompleteNewbie2020 View Post
Well kali is fun to use and it helps me learn a lot so i think it's worth it
That attitude is fine as long as you don't air your dirty laundry on the forums.
 
Old 09-07-2021, 05:53 AM   #7
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by pan64 View Post
Yes, platform is not set, therefore it prints "unsupported platform"
...
To solve it you need to set platform in your environment. But actually I have no idea what was the "official" solution.
This makefile expects platform to be windows, macos, linux or bsd. Since there is no step before the make invocation, platform must be set by an earlier makefile. Perhaps omitting the target=higan argument prevents it from getting initialized?
 
Old 09-07-2021, 08:36 AM   #8
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
To the OP. Post a link to the source tree please. If you want someone to try and build it.
 
Old 09-07-2021, 10:00 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by CompleteNewbie2020 View Post
Well kali is fun to use and it helps me learn a lot so i think it's worth it
Sorry, no. Kali can't do anything that any other distro of Linux can be set up to do, but it IS pre-packaged to make security/pentesting easier. Again: Kali's own website tells you that you SHOULD NOT use it for daily use, period. They recommend virtual machines and only then for very specific uses. You are dealing with this now, and can't get around it...that should tell you something.
Quote:
but i did try to install it on ubuntu and i have the exact same problem.
Really?? I find that hard to believe, since they have a version SPECIFICALLY for Ubuntu:
https://github.com/higan-emu/higan/releases/tag/nightly

...that you don't even have to compile. It's already built.
Quote:
So i went to see GNUmakefile and here's the code:
Code:
ifeq ($(platform),windows)
  options += -luuid -lkernel32 -luser32 -lgdi32 -lcomctl32 -lcomdlg32 -lshell32
  options += -Wl,-enable-auto-import
  options += -Wl,-enable-runtime-pseudo-reloc
else ifeq ($(platform),macos)
else ifneq ($(filter $(platform),linux bsd),)
  options += -Wl,-export-dynamic
  options += -lX11 -lXext
else
  $(error "unsupported platform")
endif
i'm a complete beginner in coding, but i can imagine i don't have one or more of those "options"... so what are those? Do you have any ideas.
Ideas? Yes:
  • DO NOT USE KALI. Again: it is for advanced Linux users who know how to deal with the myriad of issues that will arise when it's not used for its intended purpose. You yourself say you're completely new, and a complete beginner.
  • Follow the instructions. You're not putting the correct flags onto the command line, as stated in their docs. https://higan.readthedocs.io/en/stable/install/linux/
 
1 members found this post helpful.
  


Reply

Tags
kali, make



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Linux 4.4 seems to refuse to build IPv6 for the 64-bit build - 32-bit build works fine GameCodingNinja Linux From Scratch 2 02-07-2016 06:40 PM
Im trying to build program, but GCC gives error clifford227 Linux - Software 4 03-31-2012 06:14 PM
LXer: Build 'em Right, Build 'em Strong, Build 'em Linux LXer Syndicated Linux News 0 10-01-2007 09:51 PM
Error when trying to build ay program from source. darkarcon2015 Slackware - Installation 1 12-22-2004 02:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration