oatpp / oatpp-starter

Oatpp simple-API starter project
https://oatpp.io/
Apache License 2.0
72 stars 35 forks source link

Ubuntu utility installation #10

Closed brunomerod closed 4 years ago

brunomerod commented 4 years ago

Problem using the install utility.

CMake Error at src/cmake_install.cmake

Permission problems for:

/usr/local/lib/oatpp-1.1.0 /usr/local/include/oatpp-1.1.0 /usr/local/lib/cmake/oatpp-1.1.0

Solution

sudo mkdir [folders] sudo chmod 777 [folders]

Suggestion

Maybe all the modules could be installed on specific oatpp config folder, such as

/home/[user]/.oatpp/lib /home/[user]/.oatpp/include etc...

lganzzzo commented 4 years ago

Hello @brunomerod ,

You can also try to use cmake's -DCMAKE_INSTALL_PREFIX option.

Install oatpp:

cmake -DCMAKE_INSTALL_PREFIX=/my/custom/path ..
make install

Regards, Leonid

brunomerod commented 4 years ago

Thank you very much, Leonid. I'm new to this C/C++.

Regards, Bruno