Tattoofreak Posted March 14, 2019 Share #1 Posted March 14, 2019 As it was driving me nuts not to find anything about how to compile open-vm-tools so that we can always have the latest version for our xpenology systems I decided to give it a shot by myself. Now this is where I am stuck into. It was a pain in the ass and a lot of reading until now but I don't want to give this up as I know many others asked for this too. Once it's done I will create a step-by-step tutorial about that and post it here. So guys...any help is very appreciated! Quote Link to comment Share on other sites More sharing options...
Olegin Posted March 14, 2019 Share #2 Posted March 14, 2019 All working without latest version, be happy. 😉 Quote Link to comment Share on other sites More sharing options...
Tattoofreak Posted January 25, 2021 Author Share #3 Posted January 25, 2021 (edited) I finally did it: https://github.com/NeverEatYellowSwissSnow/synology-dsm-open-vm-tools/releases Edited January 25, 2021 by Tattoofreak 1 Quote Link to comment Share on other sites More sharing options...
Orphée Posted January 25, 2021 Share #4 Posted January 25, 2021 Hi, trying to build it for bromolow : meson.build:1:0: ERROR: 'c' compiler binary not defined in cross or native file Do you have any suggestion ? Thanks Quote Link to comment Share on other sites More sharing options...
Tattoofreak Posted January 26, 2021 Author Share #5 Posted January 26, 2021 10 hours ago, Orphée said: Hi, trying to build it for bromolow : meson.build:1:0: ERROR: 'c' compiler binary not defined in cross or native file Do you have any suggestion ? Thanks No, I'm actually not a compiling expert, I'm still learning from what I've currently done. But I'll try my best to help you out with this. I will try to compile for Bromolow myself. For which DSM version would you need it? Quote Link to comment Share on other sites More sharing options...
Orphée Posted January 26, 2021 Share #6 Posted January 26, 2021 >6.1 for DSM 6.2.3 latest release Quote Link to comment Share on other sites More sharing options...
Tattoofreak Posted January 27, 2021 Author Share #7 Posted January 27, 2021 On 1/26/2021 at 10:29 AM, Orphée said: >6.1 for DSM 6.2.3 latest release Compiled it. Please download, test and report back if it works. 1 Quote Link to comment Share on other sites More sharing options...
Orphée Posted January 27, 2021 Share #8 Posted January 27, 2021 It works, Did you have to fix or set anything in your build environment ? Thanks Quote Link to comment Share on other sites More sharing options...
Tattoofreak Posted January 27, 2021 Author Share #9 Posted January 27, 2021 1 hour ago, Orphée said: It works, Did you have to fix or set anything in your build environment ? Thanks I'm working on a reliable description on Github, please be patient. 1 Quote Link to comment Share on other sites More sharing options...
Tattoofreak Posted January 27, 2021 Author Share #10 Posted January 27, 2021 3 hours ago, Orphée said: It works, Did you have to fix or set anything in your build environment ? Thanks It's online now on Github. You should be able to compile it by yourself now. I hope everything is much more clear now. 1 Quote Link to comment Share on other sites More sharing options...
Orphée Posted January 28, 2021 Share #11 Posted January 28, 2021 Thank you ! Just a remark about : mv: cannot stat '/spksrc/spk/open-vm-tools/work-apollolake-6.2/install/var/packages/open-vm-tools/target/etc/vmware-tools/vm-support': No such file or directory Simply execute the following command... mkdir -p /spksrc/spk/open-vm-tools/work-apollolake-6.2/install/var/packages/open-vm-tools/target/etc/vmware-tools/vm-support ...and repeat the make command (don't worry, it will continue where it last stopped and does not start from beginning again): I think it is not a folder but a file, it exists in scripts/common/ from open-vm-tools tar. Maybe I'm wrong ? I guess something has to be fixed with this missing file in the build project... ? 1 Quote Link to comment Share on other sites More sharing options...
Tattoofreak Posted January 28, 2021 Author Share #12 Posted January 28, 2021 (edited) 41 minutes ago, Orphée said: I guess something has to be fixed with this missing file in the build project... ? Yes I think you're right. I was not able yet to dive deeper into it and I will try my best to resolve this. My first goal was to compile open-vm-tools by myself and as I did not find ANYTHING about it on how to reach this goal it really took me months of work to find out. There are a few people who already compiled the open-vm-tools for DSM in the past but unfortunately none of them have posted anything about a how-to neither did anyone of them anwer a single question I asked. That being said I wanted to share as much as possible what I have found out and I am thankful for anyone contributing and improving to this. Like I already mentioned, I am not a compiling expert and I am still learning about it and I am willing to learn. The more people contributing to this the more reliable this will work in the future with newer versions of open-vm-tools. Edited January 28, 2021 by Tattoofreak 1 Quote Link to comment Share on other sites More sharing options...
Orphée Posted January 28, 2021 Share #13 Posted January 28, 2021 (edited) @Tattoofreak In spksrc/cross/open-vm-tools/Makefile last line : mv $(STAGING_INSTALL_PREFIX)/etc/vmware-tools/vm-support $(STAGING_INSTALL_PREFIX)/bin/ You may just need to remove this line, or if you think vm-support file is really needed then take it from elsewere : find ./ |grep vm-support ./work-bromolow-6.2/install/var/packages/open-vm-tools/target/usr/bin/vm-support ./work-bromolow-6.2/open-vm-tools-11.2.5-17337674/scripts/common/vm-support This should work : mv $(STAGING_INSTALL_PREFIX)/usr/bin/vm-support $(STAGING_INSTALL_PREFIX)/bin/ But is just move it from /usr/bin to /bin Not sure about the real benefit. Edited January 28, 2021 by Orphée 1 Quote Link to comment Share on other sites More sharing options...
Tattoofreak Posted January 29, 2021 Author Share #14 Posted January 29, 2021 (edited) 16 hours ago, Orphée said: @Tattoofreak This should work : mv $(STAGING_INSTALL_PREFIX)/usr/bin/vm-support $(STAGING_INSTALL_PREFIX)/bin/ But is just move it from /usr/bin to /bin Not sure about the real benefit. Not sure why the error is thrown while compiling. Also not sure whether the file is meant to be insde /usr/bin or just /bin. With your patch applied, after compiling and installing the package on DSM, you will find the vm-support file here: /volume1/@appstore/open-vm-tools/bin The thing is that on DSM the path /volume1/@appstore/open-vm-tools/etc/vmware-tools actually does exist so maybe it's really meant to be there or it's just a mistake in the post-installation part of the script because something has changed in the past. I obvioulsly do not fully understand this yet. I will have a look on this as soon as I can find some time. Anyway, it seems the file is just for collecting log information. When executig manually it generates a .tar.gz file inside the same folder. I'm not sure if the script is meant to be called by some automation process which would be dependent on this script but for now I will apply your patch on Github. Thank you for potentially fixing this mate! Edited January 29, 2021 by Tattoofreak Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.