Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Releasing U++ » Dependecies for u++ programs on linux
Dependecies for u++ programs on linux [message #58595] Thu, 30 June 2022 15:13 Go to next message
Alboni is currently offline  Alboni
Messages: 214
Registered: January 2012
Location: Deventer, Netherlands
Experienced Member
Hello, is there a list of packages that are needed to deploy u++ programs? (ubuntu 22.04 64 bit)
I've peeked in the install script for upp but I suppose a lot of those are not needed if I distribute binaries. (gcc, lib*-dev etc)

[Updated on: Thu, 30 June 2022 15:23]

Report message to a moderator

Re: Dependecies for u++ programs on linux [message #58609 is a reply to message #58595] Sun, 03 July 2022 06:41 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
ldd your_app

should show you all dependencies of your app.
Usually, you do not need to distribute anything besides your binary.
If you have doubts about dependencies, you can try to install distros of your choice in a VM and test your app there.
Actually, you do not need to create VMs on Linux, it is enough to create LXC containers.


Regards,
Novo
Re: Dependecies for u++ programs on linux [message #58610 is a reply to message #58595] Sun, 03 July 2022 08:26 Go to previous messageGo to next message
Oblivion is currently offline  Oblivion
Messages: 1091
Registered: August 2007
Senior Contributor
Alternatively, you can use

objdump -p /path/to/the/executable | grep NEEDED


You can also automate this, using TheIDE's macro system (Provided that you are using theIDE...)


Best regards,
Oblivion


Re: Dependecies for u++ programs on linux [message #58611 is a reply to message #58595] Sun, 03 July 2022 10:47 Go to previous message
Oblivion is currently offline  Oblivion
Messages: 1091
Registered: August 2007
Senior Contributor
Example macro code for TheIDE.

macro "Show executable dependencies" {
	ClearConsole();
	// Executable must be already built...
	Execute("/bin/sh -c \"objdump -p " + Target() + " | grep NEEDED\"");
}



Best regards,
Oblivion


Previous Topic: Extra file in nightly builds
Goto Forum:
  


Current Time: Fri Mar 29 15:56:20 CET 2024

Total time taken to generate the page: 0.01559 seconds