• 0

Composer/Vagrant like tools for C++/Java/.NET


Question

Hi,

 

I have been programming in couple of languages lately Java, C++, PHP, Python, and even .NET on Windows. Among them I noticed that Java and .NET applications are very close to being portable. The end user will just have to install Java or the .NET framework and run the executable and the application just works.

 

But when it come to deploying applications for Mac or Linux, things gets a little bit tricky with C++/PHP/Python. Ideally Java would be the way to go but it also has some limitations. Because a Control that is already done and available in .NET may have to be created from scratch on a Python/Java app. So, even though I love to program in Python, I end up choosing .NET because it is already done. But it leads to a situation where I leave out a great number of Mac/Linux users.

 

C++ is the ideal solution for making Cross Platform applications but static linking and library dependencies gets ugly real quick. And frankly end users don't like installing Qt or updating their environment variables, etc... because they just don't have the knowledge or perhaps the courage to do so. So, what I am after is a universal solution... that might achieve the following:

  • Cross Platform Solution
  • Depending on the User's OS it automatically installs the required libraries in one shot

Some of the solutions that really mimics this behavior are Vagrant or Composer for PHP. The script reads the dependency definitions and grabs everything so when you execute the application everything is already present.I don't see anything like that for desktop development. I would love to have a solution where upon executing a script it automatically installs Qt5, WxPython, Python, whatever my application needs.

 

InstallShield, etc... would be overkill... any open-source alternatives?

9 answers to this question

Recommended Posts

  • 0

Personally, I have never seen anything that simplifies this process (though, I think you probably could have guessed as much from our previous discussion on pyinstaller). I really don't think there is anything that will make cross-platformness uniform and easy, I think you will just have to continue to do the annoying leg work. I mean even something like cmake (cross platform make ;-) ) for a build system isn't great at being cross-platform -- you have to do the leg work to account for platform differences there also.

  • 0

Skimming through your post, it is hard to decide if you are more interested in Web Applications or Desktop Applications.  You are talking about a mixed developing tools for both and yet you want the compilation to be crossed platform.  Very confusing to me. :)

  • 0
  On 11/02/2014 at 01:41, Krome said:

Skimming through your post, it is hard to decide if you are more interested in Web Applications or Desktop Applications.  You are talking about a mixed developing tools for both and yet you want the compilation to be crossed platform.  Very confusing to me. :)

 

haha, for the most part I am looking for a solution for Desktop Applications. To give you an example, I will install Python on my computer, and install the WxPython module to develop my desktop gui app. Now the end user will download my compiled python app with a script that has all the dependencies listed (e.g. Python, WxPython). So, if the end user does not have Python or WxPython, running that script would install Python and WxPython for him. The catch is... the script that he will run has to be compatible to his particular OS (e.g. .sh/.bat, etc...).

 

I can create a script of my own to take care of that but I was wondering if such package manager already exists? Because it seems like it is a very common practice to include a script that takes care of all the dependencies. I was using Vagrant and PHP Composer as an example.

  • 0
  On 11/02/2014 at 17:14, snaphat (Myles Landwehr) said:

^This has dependency issues though (glibc versioning incompatibilities being the large one) so it doesn't work great in practice

 

See this is exactly what I am talking about. You'd think Pyinstaller or any other program of that nature would make deploying applications on the user's computer easier. But there is no way of knowing beforehand what libraries it may depend on, what version or even where to get them. But if we had a repository similar to Vagrant or PHP Composer, overtime developers could add a link to all the dependencies and package them together if needed.

 

I ran into couple of situations where some of my clients never even heard of Python, let alone their system will have them installed. Or they start shaking if you tell them to launch the Terminal/Command Prompt. I am not talking about exclusively about Python but I ran into this situation with C++ libraries, Ruby on Rails and PHP as well. But with a dependency manager you are only worried about configuring a single item and the dependency manager would grab rest of the libraries in one shot. But without a dependency manager you are on your own to configure glibs, c++ libraries, python, wxpython or whatever libraries the application uses.

 

Basically I want a solution where the guy who is installing or running my desktop application is a regular joe and not a computer wiz of any kind :p... think grandma!

  • Like 1
  • 0

^ And these are the types of clients that are liable to have the really old OSes where the glibc interfaces indeed change from the ones you are using on your own development systems  :wacko:

 

This is one example where Windows DLL hell can be somewhat better in practice than Linux for library dependencies (sadly). You can't reliably distribute glibc or the other system runtime libraries because of system call differences between different versions of the Linux kernel. So dropping glibc 2.6 on an older system using 2.4 system isn't going to work (at least, it didn't work when my twin tried it). This is one thing that I rather dislike about Linux.

  • 0
  On 11/02/2014 at 17:14, snaphat (Myles Landwehr) said:

^This has dependency issues though (glibc versioning incompatibilities being the large one) so it doesn't work great in practice

Why not bundle your version of glibc then? (perhaps dumb question)

  • 0
  On 12/02/2014 at 17:57, Andre S. said:

Why not bundle your version of glibc then? (perhaps dumb question)

See my last post: there are issues even with that because of syscall changes as one moves forward the Linux kernel revisions (because glib invokes syscalls directly): Here's a list of ABI changes between kernel revisions: http://man7.org/linux/man-pages/man2/syscalls.2.html. What's interesting is something else I didn't know, even if you compile the newer glib versions to target an older kernel, they aren't guaranteed to provide all functionality: https://gitlab.com/bminor/glibc/raw/e6ff5e32b8374ca1adb5f93b3ad81681d195ea55/README (they broke thread support with older kernels).

 

I neglected to mention in my previous post that glib itself also has other library dependencies you need to bundle with it so it's not as simple for bundling purposes as just tarring a single .so. That being said, I do imagine that bundling works fine in cases where you aren't moving between systems with large gaps in kernel revisions.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • spwave 0.9.0-1 by Razvan Serea spwave is a cross-platform audio editor designed for research and advanced analysis. It supports a wide range of audio formats, including WAV, AIFF, MP3, Ogg Vorbis, FLAC, ALAC, raw PCM, and more via plug-ins. spwave offers precise editing tools such as zoom, crop, fade in/out, gain adjustment, and region extraction. It enables detailed spectral and phase analysis and supports unlimited undo/redo. Users can drag and drop files, edit metadata, save labeled regions, and view multiple synchronized waveforms. Internally, spwave processes audio in 64-bit precision, ensuring high accuracy. It runs on Windows, macOS, and Linux, making it a reliable and flexible tool for audio research and editing. spwave has following features: Support for multiple platforms: Windows, macOS, Linux (Motif, gtk), etc. Support for WAV, AIFF, MP3, Ogg Vorbis, FLAC, ALAC, raw, and text files by using plug-ins. Support for many bits/samples: 8bits, 16bits, 24bits, 32bits, 32bits float, 64bits double. Converting the sampling frequency and the bits/sample of a file. Playing, zooming, cropping, deleting, extracting, etc. of a selected region. Fade-in, fade-out, gain adjustment, channel swapping, etc of a selected region. Editing file information that supports comments of WAV and AIFF, and ID3 tag of MP3. Analysis of a selected region using several analysis types, e.g. spectrum, smoothed spectrum, phase, unwrapped phase and group delay. Undoing and redoing without limitation of the number of times. Waveform extraction by drag & drop. Opening files by drag & drop. Autosaving of selected regions (you can do this by drag & drop also). Saving positions and regions as labels. Viewing some waveforms and setting regions synchronously. Almost all processing is 64 bits processing internally. Supported Formats: Read/Write: WAV, AIFF, AIFC, CAF, MP3, Ogg Vorbis, FLAC, ALAC (.caf, .mp4), WMA (Windows), APE, AU/SND, PARIS, NIST, IRCAM, raw PCM, text. Read-only: MPEG-2 Layer 3 MP3, RMP files with VBR support. With 64-bit internal processing, autosave capabilities, and synchronized multi-view waveform editing, spwave is a solid tool for anyone handling complex audio editing or acoustic research. spwave 0.9.0-1 changelog: Implemented CQT spectrum and CQT spectrogram (beta version). Implemented piano-key display for spectrum/spectrogram view. Implemented indication of musical note name in cursor information for spectrum/spectrogram view. Fixed a bug that spectrogram view after zoom-in with large factor sometimes freezes. Fixed a bug that scroll and zoom-out in spectrogram view after zoom-in with large factor do not work correctly. Fixed a bug that spectrogram view provides sometimes wrong time information. Fixed a bug that plugin errors sometimes cause a crash. Fixed a bug that the color of grid lines is wrong in printing. Optimized layout of spectrogram view for printing. Enhanced the function of waveform cropping from label information. Fixed a bug that some items in the preference dialog related to labels do not work. Added some items related to the region label in the preference dialog. Fixed a bug that drawing selected region in the log-frequency axis does not work correctly. Added partial support for the dark mode of Windows (the menu bar and the menus). Fixed a bug that the cursor to indicate current calculation position of spectrogram is sometimes not shown. Changed drawing of cursor information into that with white background so as to make the information legible. Fixed a bug that moving to the head by scrolling the overview display sometimes fails. Added feature of alignment of the view region between spectrum view and spectrogram view. Download: spwave 64-bit | spwave 32-bit | ~3.0 MB (Freeware) Download: spwave ARM64 | 2.9 MB Links: spwave Home page | Other OSes | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Microsoft Weekly: redesigned Windows 11 Start menu, Xbox handheld is here, and more by Taras Buria This week's news recap is here. Fresh Windows 11 preview builds with the redesigned Start menu and Windows Vista flashbacks, the long-anticipated Xbox handheld, Patch Tuesday updates, gaming news, and more. Quick links: Windows 10 and 11 Windows Insider Program Updates are available Gaming news Great deals to check Windows 11 and Windows 10 Here, we talk about everything happening around Microsoft's latest operating system in the Stable channel and preview builds: new features, removed features, controversies, bugs, interesting findings, and more. And, of course, you may find a word or two about older versions. June 2025 Patch Tuesday updates are out. Windows 10 received KB5060533 with build numbers 19044.5965 and 19045.5965. Supported Windows 11 versions received KB5060842 and KB5060999 with build numbers 26100.4349, 22631.5472, and 22621.5472. Later, Microsoft released an out-of-band update to address problems with games with Easy Anti-Cheat, causing system restarts upon launch, and a couple of recovery updates. Microsoft launched Copilot Vision with Highlights for Windows. This feature enables AI to see what is happening on the screen and offer additional information, analysis, and context. Copilot Vision currently works with up to two apps, but its availability is limited to the United States (more countries are on the way, says Microsoft). Now, here is some useful stuff for Windows users: a neat third-party maintenance tool that can run various checks, troubleshooters, and repair utilities; a useful guide about personalizing OneDrive folders with a touch of color, and more. Windows Insider Program Here is what Microsoft released for Windows Insiders this week: Builds Canary Channel Dev Channel Build 26200.5641 This build introduces the recently announced Start menu redesign. It also packs Lock Screen widget improvements, Narrator enhancements, updates to the gamepad keyboard, and a lot of various fixes. Build 26200.5651 Another Dev build introduced a Settings app agent, Recall improvements, seconds for the calendar clock, context menu enhancements, and more. Beta Channel Build 26120.4250 The Beta build has the same changelog as the one from the Dev Channel. Build 26120.4441 The same build as 26200.5651 from the Dev Channel. Release Preview Channel Build 22631.5545 With build 22631.5545 for Widnows 11, Microsoft improved default browser settings and the Windows Share UI and fixed several bugs. Build 19045.6029 This build introduces improvements to app defaults and multiple fixes for Windows 10. The redesigned Start menu is the most exciting part of the new builds, but as usual, it is rolling out gradually. You can mitigate that by force-enabling the new Start menu using the ViVeTool app as described in our guide. Interestingly, the latest builds introduced a funny bug where Windows 11 plays the Windows Vista startup sound on boot. Microsoft acknowledged the issue and said it is working on a fix in future updates. Meanwhile, if you use the latest Dev and Beta builds, you will get to enjoy 2006 nostalgia each time you turn on your PC. Updates are available This section covers software, firmware, and other notable updates (released and coming soon) delivering new features, security fixes, improvements, patches, and more from Microsoft and third parties. This week's browser updates include a fresh Dev Channel update for Microsoft Edge and secure password deployment in Edge for organizations. The latter arrived in the Stable Channel on June 13 with version 137.0.3296.83. There was also a minor update for Firefox. The latter received version 139.0.4, which addressed several issues with the browser freezing when switching apps, failing to save wallpapers with proper names, and more. In addition to the update, Mozilla announced that Deepfake Detector is shutting down. The service will go dark on June 26, 2025. Moving to Office updates, we have some changes to the new Outlook, which will block more files and allow you to perform more tasks when offline. OneDrive for Mac now supports external disks, Clipchamp lets you trim videos by cutting out parts of the transcript, and OneNote now supports Copilot Notebooks. Microsoft also announced an update on the removal of Exchange Online Basic Authentication in Office 365. Here are other updates and releases you may find interesting: Rufus received an update to version 4.8 with performance improvements for Windows images. Microsoft is committing to upskilling 1 million UK workers in AI this year. Here are the latest drivers and firmware updates released this week: Intel 32.0.101.6881 WHQL graphics driver with a single fix for Overwatch 2. AMD 25.6.2 non-WHQL with support for FBC: Firebreak, The Alters, and more. On the gaming side Learn about upcoming game releases, Xbox rumors, new hardware, software updates, freebies, deals, discounts, and more. A lot happened on the gaming side this week. At the Sunday Game Showcase, Microsoft and ASUS announced two Xbox handhelds: the ROG Xbox Ally and the ROG Xbox Ally X. These portable consoles are a big deal for the world of handheld devices, as they run a special version of Windows, which was optimized for portable gaming consoles with fewer processes running in the background. As such, they offer much better battery life and performance. You can read more about how Microsoft optimized Windows 11 for handhelds in a separate article. Next, we have plenty of new games and DLCs announced at the showcase; here is a recap: Indiana Jones and the Great Circle received a new DLC called The Order of Giants. It will be available on all supported platforms this September. Call of Duty: Black Ops 7 made a surprise appearance at the showcase. Activision released a teaser trailer where the game takes players to a futuristic experience set in 2035. Grounded 2 was announced. The sequel of the game for people with arachnophobia is coming next month, offering gamers a new miniaturized survival adventure. Obsidian Entertainment revealed the release date of The Outer Worlds 2 and details about companions. At Fate's End by Spiritfarer was announced, a new action game about fighting family. It is coming to consoles and PC somewhere in 2026. Skybound Games revealed Invincible VS, a brutal 3v3 tag fighting game by former Killer Instinct developers. Anno 117: Pax Romana received a November release date. Ubisoft also unveiled a special Governor's Edition. Nvidia announced new games for its cloud-streaming gaming service, GeForce NOW. If you own one of the following games, you can play them on Nvidia's cloud. The new additions include Frosthaven Demo, Dune: Awakening, MindsEye, The Alters, Kingdom Two Crowns, and more. Mojang finally has a release date for Vibrant Visuals and Chase the Skies updates. On June 17, Minecraft will get its long-anticipated visual overhaul, new features, fresh mobs, and more. Deals and freebies Steam is running a new Next Fest, during which gamers can try hundreds of games for free. The event ends on June 16, 2025. The Epic Games Store is giving away Two Point Hospital, a humorous hospital builder simulator. As usual, more deals are available in this week's Weekend PC Games Deals article. Other gaming news includes the following: GOG store introduced the One-Click Mods feature with support for Fallout: London and others. Valve announced new accessibility details for game listings on Steam. Steam finally has a native client for Apple Silicon. To finish this week's gaming section, here is an editorial from Paul Hill exploring the new $80 cost frontier in modern gaming. Great deals to check Every week, we cover many deals on different hardware and software. The following discounts are still available, so check them out. You might find something you want or need. JBL Bar 1000 and 700 sound bars Ring Floodlight Cameras Geekom Mini IT12 mini PC - $499 | $200 off Amazon Kindle Scribe (16GB) - $299.99 | 25% off LG gram Pro 16" Copilot+ PCs - $1,499.99 | 25% off GameSir Super Nova Wireless Controller for PC and mobile - $44.99 | 25% off Intel Core Ultra 7 Desktop Processor 265K 5.5 GHz - $259.99 | $144 off 12TB Seagate IronWolf Pro HDD - $218.49 | 13% off Polk Audio React 7" Wireless Subwoofer - $99.99 | 50% off StreamMaster Plus2 4K Gaming Projector - $1,699 | 15% off AMD Ryzen 5 9600X - $179.99 | 35% off Sony BRAVIA 5 65 Inch TV Mini LED - $1,298 | 13% off This link will take you to other issues of the Microsoft Weekly series. You can also support Neowin by registering a free member account or subscribing for extra member benefits, along with an ad-free tier option. Microsoft Weekly image background by
    • Yea but you cant forget about Windows 7 featuring most of this design too... it was also there in Win7!
    • I don't blame them, just have a load of people stand in front of the cars, they will not or should not move, that will stuff them.
    • Yeah, that would work. I have no problem with the way macOS looks like now, I don't see the point of them changing the look all the time, and that is the same with windows. I realise look have to change sometimes, but macOS is fine as it is, look wise.
  • Recent Achievements

    • Apprentice
      Wireless wookie went up a rank
      Apprentice
    • Week One Done
      bukro earned a badge
      Week One Done
    • One Year In
      Wulle earned a badge
      One Year In
    • One Month Later
      Wulle earned a badge
      One Month Later
    • One Month Later
      Simmo3D earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      593
    2. 2
      ATLien_0
      277
    3. 3
      +FloatingFatMan
      181
    4. 4
      Michael Scrip
      148
    5. 5
      Steven P.
      111
  • Tell a friend

    Love Neowin? Tell a friend!