Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
I can't run CMake from the terminal - MacOS
Avatar
joeyhook
Member
Members
November 5, 2019 - 3:03 am
Member Since: June 17, 2017
Forum Posts: 3
sp_UserOfflineSmall Offline

I'm trying to follow along with the documentation and videos, but I'm stuck where I need to run CMake from the terminal by first navigating to the mac_build directory, then typing: cmake -GXcode ../

it just spits out "-bash: cmake: command not found"

I can't find any similar problems on the forum, probably because no one here is as stupid as I am. Any idea what I'm doing wrong?

Thanks in advance.

Avatar
W Pirkle
Admin
November 5, 2019 - 11:57 am
Member Since: January 28, 2017
Forum Posts: 358
sp_UserOfflineSmall Offline

You need to install CMake and make sure it is added to your path. This is documented in the ASPiK SDK as well as in my book. 

http://aspikplugins.com/sdkdoc.....nning.html

When the path is added properly, you won't get the error. MacOS is a bit more difficult to get setup.

Will

Avatar
joeyhook
Member
Members
November 5, 2019 - 7:07 pm
Member Since: June 17, 2017
Forum Posts: 3
sp_UserOfflineSmall Offline

I appreciate your response, and I promise I did read through the documentation online multiple times (though I don't have the book), but was still confused.

I've learned a little via Google about how to add paths in terminal now. There are many different ways to do it, depending on your 'shell' and other terms that I don't exactly understand, and a lot of talk about the 'right' and 'wrong' way. Here is what worked for me:

Right-click cmake.app in Applications or wherever you installed it, select 'Show Package Contents", navigate to contents->bin then right-click cmake, drag it's path over into the terminal at the end of this command:

export PATH=$PATH:

Hopefully this will be helpful for someone else.

Avatar
W Pirkle
Admin
November 6, 2019 - 10:26 am
Member Since: January 28, 2017
Forum Posts: 358
sp_UserOfflineSmall Offline

Thanks - I had not heard of doing it that way. I used the sudo/symlink method, but I can understand why that would be considered dangerous!

Will 

Forum Timezone: America/New_York

Most Users Ever Online: 78

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 48

Derek: 46

Frodson: 45

TheSmile: 43

Peter: 41

clau_ste: 39

JimmyM: 33

Gwen: 32

EZB: 24

lppier: 23

Member Stats:

Guest Posters: 1

Members: 575

Moderators: 1

Admins: 4

Forum Stats:

Groups: 12

Forums: 36

Topics: 593

Posts: 2366

Newest Members:

acv, Vasil992, Vasil92, dowsed, Simple, Chris_1, manyu, AdamR, Stuart, Al Calabrese

Moderators: W Pirkle: 358

Administrators: Tom: 73, JD Young: 80, Will Pirkle: 0, W Pirkle: 358