Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 770  / 3 Years ago, sun, september 12, 2021, 1:37:44

I'm trying to make an Ubuntu app in Vala. I do have knowledge of C++ so the syntax isn't that difficult to learn. But I'm doing something wrong with the needed packages:
I need libsoup to communicate with an online API, and a json package. I tried to compile with this command:
valac --thread --pkg libsoup-2.4 --pkg json-glib-1.0 json-example.vala



I get following error:
/home/brendt/programs/vala/json-example.vala.c:9:26: fatal error: libsoup/soup.h: No such file or directory
compilation terminated.
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)



So this makes me think I haven't installed that libsoup package in the correct place. I tried apt-get install, but than Ubuntu says the package is already installed. Than I tried cloning from git, but I don't really find a way to compile the source I get than..



anyone has some suggestions? I probably have to add a correct path somewhere, but I don't know where.
regards,
brendt


More From » vala

 Answers
3

You need to install the development package for libsoup:



sudo apt-get instal libsoup2.4-dev

[#31052] Monday, September 13, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
listeerrated

Total Points: 354
Total Questions: 112
Total Answers: 100

Location: Guam
Member since Fri, Jun 18, 2021
3 Years ago
;