Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing libraries when building #102

Open
jsosulski opened this issue Aug 8, 2019 · 4 comments
Open

Missing libraries when building #102

jsosulski opened this issue Aug 8, 2019 · 4 comments

Comments

@jsosulski
Copy link

I think in commit dced645 a lib prjfwas introduced but it is missing from this repository (see CMakeLists.txt ). Did you forget to include it in the repository or is the error on my end?

For reference, the error I get:

CMake Error at CMakeLists.txt:59 (add_library):
  Cannot find source file:

    /home/pi/software/console-client/pCloudCC/lib/prjf/pRJF.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


CMake Error: CMake can not determine linker language for target: pcloudcc_lib
CMake Error: Cannot determine link language for target "pcloudcc_lib".

Thanks!

@pqr
Copy link

pqr commented Aug 9, 2019

I have exactly this error! So, how to fix it?

@jsosulski
Copy link
Author

There is apparently a pull request (#94) which compiles. However, I did not test it. I want to wait for the official fix, if there is one coming.

@Tuxie
Copy link

Tuxie commented Aug 16, 2019

Please add the missing prjf library to Git!

@brabes
Copy link

brabes commented Aug 23, 2019

It doesn't seem to actually need that file, so you can just delete the reference to pRJF.c from CMakeLists.txt or create an empty file—although I also had to apply the patches in 5f1479a for it to then build properly.

mkdir pCloudCC/lib/prjf
touch pCloudCC/lib/prjf/pRJF.c

or

diff --git a/pCloudCC/CMakeLists.txt b/pCloudCC/CMakeLists.txt                                                                                                
index c50c8bc..bffedd9 100644
--- a/pCloudCC/CMakeLists.txt
+++ b/pCloudCC/CMakeLists.txt
@@ -56,7 +56,7 @@ include_directories(${OVERLAY_CLENT_PATH})
 add_library(sqlite3 STATIC ${SQLITE3_PATH}/sqlite3.c)
 target_link_libraries(sqlite3 z dl)
  
-add_library(pcloudcc_lib SHARED pclsync_lib_c.cpp pclsync_lib.cpp control_tools.cpp ${OVERLAY_CLENT_PATH}/overlay_client.c ${OVERLAY_CLENT_PATH}/debug.c ${PRJF_PATH}/pRJF.c)
+add_library(pcloudcc_lib SHARED pclsync_lib_c.cpp pclsync_lib.cpp control_tools.cpp ${OVERLAY_CLENT_PATH}/overlay_client.c ${OVERLAY_CLENT_PATH}/debug.c) 
 target_link_libraries(pcloudcc_lib ${PCLSYNC_PATH}/psynclib.a  ${MBEDTLS_PATH}/library/libmbedtls.a fuse pthread sqlite3 udev)
  
 file(GLOB_RECURSE INC_ALL "*.h" "*.hpp")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants