Fix build

This commit is contained in:
2023-08-17 11:50:17 +03:00
parent e49a3aec81
commit 571f2232d0
3 changed files with 11 additions and 8 deletions

View File

@@ -15,6 +15,9 @@ include(cmake/variables.cmake)
# ---- Declare library ----
find_package(ethercat REQUIRED)
link_libraries(ethercat)
add_library(
ec-controller_lib OBJECT
source/lib.cpp

14
flake.lock generated
View File

@@ -6,11 +6,11 @@
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1692168099,
"narHash": "sha256-XE9lIQI0aJLZueguR3nYcfe1g839o1xF4MGfPxmdW6M=",
"lastModified": 1692255291,
"narHash": "sha256-JB3M8OvT5QXqbAjVSGOWKm+X7SCxsk7sbAPVQNdlMJo=",
"ref": "refs/heads/master",
"rev": "d70c3d00e9d28f0f3816a61779e2454ea3219529",
"revCount": 5,
"rev": "ec418a9f2fb9094be93f2d6870113a388cd62a06",
"revCount": 7,
"type": "git",
"url": "https://git.dripco.eu/nic/etherlab-nix"
},
@@ -72,11 +72,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1691950488,
"narHash": "sha256-iUNEeudc4dGjx+HsHccnGiuZUVE/nhjXuQ1DVCsHIUY=",
"lastModified": 1692134936,
"narHash": "sha256-Z68O969cioC6I3k/AFBxsuEwpJwt4l9fzwuAMUhCCs0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "720e61ed8de116eec48d6baea1d54469b536b985",
"rev": "bfd953b2c6de4f550f75461bcc5768b6f966be10",
"type": "github"
},
"original": {

View File

@@ -254,7 +254,7 @@ void stack_prefault(void)
/****************************************************************************/
//int main(int argc, char **argv)
int main_loop(int argc, char **argv)
int main_loop()
{
ec_slave_config_t *sc;
struct timespec wakeup_time;