Skip to content
Advertisement

Building symbolic link shared library in a shared folder of VirtualBox

I am now building a C++ library in Windows and Linux. For windows I am now using Visual Studio for development, and for Linux I am now using Ubuntu via Virtual Box. In order to make develop much easier, I shared the folder of the project in Windows with Linux via the shared folder function of Virtual Box. I compile and run the project in Windows first and if it succeeds I will compile it in Linux. This is made possible thanks to CMake. The problem I have is that if the shared library to be built is a symbolic link one it cannot be compiled in Linux as this page suggests. If it is not a symbolic one, it is fine. Then my questions are as follows:

  • Is symbolic link property important for a library in Linux?
  • Are there some solutions that can build the symbolic link library successfully in shared folder?

Advertisement

Answer

Configuring your project outside of shared folder may help.

cd ~
mkdir build
cd build
cmake /path/to/mounted/shared/folder
make
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement