LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-22-2016, 09:40 AM   #1
CVAlkan
Member
 
Registered: Nov 2012
Location: Northwest suburbs of Chicago
Distribution: Ubuntu & Mint LTS, Manjaro Rolling; Android
Posts: 242

Rep: Reputation: Disabled
Vala for Ubuntu 16.04


Hi:

I'm trying to install the vala compiler with an Ubuntu ppa according to the instructions in https://help.ubuntu.com/community/Vala; I know there is a version in the Ubuntu repository, but the referenced web page specifically mentions that the repository version is quite outdated (not really a shocker with Ubuntu, so I assumed the page was correct):

I received the following output when attempting to install:
sudo apt-get install valac-0.18 vala-0.18-doc valac-0.18-dbg
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package valac-0.18 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'valac-0.18' has no installation candidate
E: Unable to locate package vala-0.18-doc
E: Couldn't find any package by glob 'vala-0.18-doc'
E: Couldn't find any package by regex 'vala-0.18-doc'
E: Unable to locate package valac-0.18-dbg
E: Couldn't find any package by glob 'valac-0.18-dbg'
E: Couldn't find any package by regex 'valac-0.18-dbg'

Does anyone have any suggestions? I've never used vala before, but I understand that it simply outputs c code that I can then compile normally with gcc, etc. The program I'm trying to install is a utility for theming whose source is given at http://pastebin.ubuntu.com/6808987/

Any help would be appreciated. Thanks
 
Old 08-22-2016, 03:56 PM   #2
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Hi...

I'm not sure why it's not working for you but version 0.18 isn't the latest for Ubuntu 16.04. You can download a .deb of the program here but you will probably need to install at least some of the dependencies that are mentioned on the page, like "libvala-0.30-0" and "valac-0.30-vapi," so be sure to grab those, too.

Regards...
 
Old 08-22-2016, 06:38 PM   #3
CVAlkan
Member
 
Registered: Nov 2012
Location: Northwest suburbs of Chicago
Distribution: Ubuntu & Mint LTS, Manjaro Rolling; Android
Posts: 242

Original Poster
Rep: Reputation: Disabled
Thanks much for the pointer - I'll check it out next weekend ...
 
Old 08-22-2016, 09:08 PM   #4
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by CVAlkan View Post
Thanks much for the pointer - I'll check it out next weekend ...
You're welcome, let us know how it goes.

Regards...
 
Old 08-24-2016, 01:46 PM   #5
CVAlkan
Member
 
Registered: Nov 2012
Location: Northwest suburbs of Chicago
Distribution: Ubuntu & Mint LTS, Manjaro Rolling; Android
Posts: 242

Original Poster
Rep: Reputation: Disabled
Finally got a chance to play with this after picking up the latest version as you suggested and went to compile the source I obtained from http://pastebin.ubuntu.com/6808987/.

When I attempt compiling with: valac --pkg gtk+-3.0 unity-decorations-styling.vala

I get the following:

unity-decorations-styling.vala:25.1-25.14: warning: method `get_value' never used
T get_value<T>(Gtk.StateFlags state, Gtk.StyleContext ctx, string name)
^^^^^^^^^^^^^^
/mnt/Development/Dev_Vala/unity-decorations-styling.vala.c:26:21: fatal error: gtk/gtk.h: No such file or directory
compilation terminated.
error: cc exited with status 256
Compilation failed: 1 error(s), 1 warning(s)

Any pointers? Or should I just give up (the date on the source file is 2014, so might refer to outdated libraries and such, but I'm not savvy enough with Ubuntu to know).
 
  


Reply

Tags
ubuntu 16.04, vala



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
Vala or javascript for GNOME -Snake- Programming 1 02-27-2016 06:31 PM
Good Vala tutorials to do with GTK2.0. anon02 Programming 4 01-08-2012 02:50 PM
Vala: GtkSwitch Signal MetaMan Programming 0 07-26-2011 08:22 AM
LXer: Vala - Compiler for the GObject type system LXer Syndicated Linux News 0 12-05-2009 01:00 PM
LXer: Programming GNOME applications with Vala LXer Syndicated Linux News 0 12-10-2008 08:20 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:19 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