resilar / sqleet

SQLite3 encryption that sucks less
The Unlicense
375 stars 55 forks source link

compilation issue #46

Closed subu1979 closed 2 years ago

subu1979 commented 2 years ago

image

subu1979 commented 2 years ago

We can use the below way to compile & link the library

sysadmin@sysadmin-VirtualBox:~/sqleet/v0.31.1/sqleet-0.31.1$ cmake -S . -B build/Debug -D CMAKE_BUILD_TYPE=Release -- The C compiler identification is GNU 11.2.0 -- The CXX compiler identification is GNU 11.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done


-- Compiler: GNU -- Compiler version: 11.2.0 -- Build type: Release


-- Configuring done -- Generating done -- Build files have been written to: /home/sysadmin/sqleet/v0.31.1/sqleet-0.31.1/build/Debug sysadmin@sysadmin-VirtualBox:~/sqleet/v0.31.1/sqleet-0.31.1$ make -- The C compiler identification is GNU 11.2.0 -- The CXX compiler identification is GNU 11.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done


-- Compiler: GNU -- Compiler version: 11.2.0 -- Build type: RELEASE


-- Configuring done -- Generating done -- Build files have been written to: /home/sysadmin/sqleet/v0.31.1/sqleet-0.31.1 Scanning dependencies of target sqleet [ 50%] Building C object CMakeFiles/sqleet.dir/sqleet.c.o In file included from /home/sysadmin/sqleet/v0.31.1/sqleet-0.31.1/sqleet.c:7: /home/sysadmin/sqleet/v0.31.1/sqleet-0.31.1/sqlite3.c: In function ‘sqlite3SelectNew’: /home/sysadmin/sqleet/v0.31.1/sqleet-0.31.1/sqlite3.c:128048:10: warning: function may return address of local variable [-Wreturn-local-addr] 128048 | return pNew; | ^~~~ /home/sysadmin/sqleet/v0.31.1/sqleet-0.31.1/sqlite3.c:128008:10: note: declared here 128008 | Select standin; | ^~~ [100%] Linking C static library libsqleet.a [100%] Built target sqleet sysadmin@sysadmin-VirtualBox:~/sqleet/v0.31.1/sqleet-0.31.1$