Compiled with Make Question

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
StevenC21
Level 2
Level 2
Posts: 88
Joined: Mon Mar 19, 2018 11:02 pm

Compiled with Make Question

Post by StevenC21 » Sun Jul 15, 2018 8:44 pm

So, I just went and compiled Neovim using Make. Is there any way to get it to, without resorting to the Package Manager version, get it to show up in my installed programs list (By which I mean the GUI list in the Cinnamon Menu).

I am using Linux Mint 19 - Cinnamon.

Not really necessary, but inxi -Fxz:

Code: Select all

System:    Host: steven-GL753VE Kernel: 4.15.0-24-generic x86_64
           bits: 64 gcc: 7.3.0
           Desktop: Cinnamon (Gtk 3.22.30-1ubuntu1)
           Distro: Linux Mint 19 Tara
Machine:   Device: laptop System: ASUSTeK product: GL753VE v: 1.0 serial: N/A
           Mobo: ASUSTeK model: GL753VE v: 1.0 serial: N/A
           UEFI: American Megatrends v: GL753VE.306 date: 01/02/2018
Battery    BAT0: charge: 41.1 Wh 97.5% condition: 42.1/48.2 Wh (87%)
           model: Simplo SDI ICR18650 status: N/A
CPU:       Quad core Intel Core i7-7700HQ (-MT-MCP-) 
           arch: Skylake rev.9 cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 22464
           clock speeds: max: 3800 MHz 1: 3000 MHz 2: 3000 MHz 3: 2987 MHz
           4: 3000 MHz 5: 3000 MHz 6: 3000 MHz 7: 2947 MHz 8: 2998 MHz
Graphics:  Card-1: Intel Device 591b bus-ID: 00:02.0
           Card-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile] bus-ID: 01:00.0
           Display Server: x11 (X.Org 1.19.6 )
           drivers: modesetting,nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.02hz
           OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2
           version: 4.6.0 NVIDIA 390.48 Direct Render: Yes
Audio:     Card Intel CM238 HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:1f.3
           Sound: Advanced Linux Sound Architecture v: k4.15.0-24-generic
Network:   Card-1: Intel Wireless 7265 driver: iwlwifi bus-ID: 02:00.0
           IF: wlp2s0 state: up mac: <filter>
           Card-2: Realtek RTL8111/8168/8411 PCIE Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: d000 bus-ID: 03:00.0
           IF: enp3s0 state: down mac: <filter>
Drives:    HDD Total Size: 1256.6GB (48.2% used)
           ID-1: /dev/sda model: SanDisk_SD8SN8U1 size: 128.0GB
           ID-2: /dev/sdb model: TOSHIBA_MQ01ABD1 size: 1000.2GB
           ID-3: USB /dev/sdc model: Flash_Drive size: 128.3GB
Partition: ID-1: / size: 214G used: 45G (22%) fs: ext4 dev: /dev/sdb2
           ID-2: swap-1 size: 16.10GB used: 0.00GB (0%)
           fs: swap dev: /dev/sdb3
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 59.5C mobo: N/A gpu: 0.0:53C
           Fan Speeds (in rpm): cpu: 0
Info:      Processes: 292 Uptime: 20:24 Memory: 2822.8/15925.4MB
           Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56 
"A computer is like air conditioning. It becomes useless when you open Windows."
- Linus Torvalds

md419
Level 2
Level 2
Posts: 60
Joined: Thu Sep 22, 2011 2:34 pm

Re: Compiled with Make Question

Post by md419 » Sun Jul 15, 2018 9:41 pm

Is this helpful ? ... viewtopic.php?f=90&t=230142

StevenC21
Level 2
Level 2
Posts: 88
Joined: Mon Mar 19, 2018 11:02 pm

Re: Compiled with Make Question

Post by StevenC21 » Sun Jul 15, 2018 10:08 pm

Yes, but it has a couple issues. First, I already compiled and installed the package. Second, I don't know how to recompile it, and since it's not repo code I can't used the linked instructions. Can an experienced user help me perhaps?
"A computer is like air conditioning. It becomes useless when you open Windows."
- Linus Torvalds

lazarus
Level 3
Level 3
Posts: 152
Joined: Mon Jul 02, 2018 11:36 pm
Location: Oberon, OZ

Re: Compiled with Make Question

Post by lazarus » Mon Jul 16, 2018 9:16 pm

You just want an icon in the menu? If not, (you want SW Mgr to list it as installed?) ignore the following waffle. :)

You can add the cmd for your program directly to the menu, but I prefer to call the cmd via a script for flexibility. As an example, here's how I added "Dwarf Fortress" to mine.

I keep DF in /home/Bin/df_44_11_linux and made a shell script (df.sh) to invoke it. I won't list my df.sh here but, of course, a minimum script is:

Code: Select all

#!/bin/sh
<your cmd line here>
Probably wouldn't hurt to do a

Code: Select all

chmod 775 <path to your.sh here>
just to ensure correct permissions.

So,adding this script (or a simple cmd) to the menu:

Code: Select all

cd /usr/share/applications
sudo -H gedit DF.desktop
In Gedit I add the following:

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Dwarf Fortress
GenericName=Launch Dwarf Fortress
Type=Application
Exec=sh /home/lazarus/Bin/df_44_11_linux/DF.sh
Icon=/home/lazarus/Bin/df_44_11_linux/DF.png
Categories=Game;AdventureGame;
I believe most of the fields are pretty self-explanatory. Exec=sh /home/lazarus/Bin/df_44_11_linux/DF.sh is the part doping all the work. Save the changes, exit Gedit and...

Code: Select all

sudo chmod 644 /usr/share/applications/DF.desktop
to ensure the right permissions.

DF now shows up in my Menu under Games sub-menu as "Dwarf Fortress"
- Andy

I may be weird but I'm saving up to become eccentric.

Post Reply

Return to “Newbie Questions”