Ok, are we sure we're using the right version of odoors?
And here I thought odoors would be better then some other broken doorkit.
I've tried building the example doors, and only the voting one works sort of right. I know I've seen the ski one working, but it doesn't run now. >:(
Maybe we've got a broken version of it?
Adding the example doors to odoors, in CMakeLists.txt:
```
add_executable(ex-chat ex_chat.c)
target_link_libraries(ex-chat odoors)
add_executable(ex-diag ex_diag.c)
target_link_libraries(ex-diag odoors)
add_executable(ex-hello ex_hello.c)
target_link_libraries(ex-hello odoors)
add_executable(ex-ski ex_ski.c)
target_link_libraries(ex-ski odoors)
add_executable(ex-vote ex_vote.c)
target_link_libraries(ex-vote odoors)
```
In ex_ski.c:
```c
// #include "genwrap.h"
#ifdef __linux__
#define msclock clock
#define MSCLOCKS_PER_SEC CLOCKS_PER_SEC
#endif
```
in ex_vote.c:
```c
// #include "genwrap.h"
#ifdef __linux__
#define stricmp strcasecmp
#endif
```
Yup that was it... we are now using this stevet's opendoors...
Looks like the examples work...
I did have to change and add in the above changes that you did to the 2 examples.... but all the examples work instead of just 1 somewhat working.
the ski example seems slow... but not sure if that's my environment or not.
Yup that was it... we are now using this stevet's opendoors...
Looks like the examples work...
I did have to change and add in the above changes that you did to the 2 examples.... but all the examples work instead of just 1 somewhat working.
the ski example seems slow... but not sure if that's my environment or not.
Watch out if you ever need to edit the opendoors source files!
Codium likes to "help" you by sorting the include files -- which screws up the build process.
The #include "OpenDoor.h" needs to be before the other files, else you get pages of compiler errors about BYTE and BOOL types being undefined.
Watch out if you ever need to edit the opendoors source files!
Codium likes to "help" you by sorting the include files -- which screws up the build process.
The #include "OpenDoor.h" needs to be before the other files, else you get pages of compiler errors about BYTE and BOOL types being undefined.
Ok, are we sure we're using the right version of odoors?
And here I thought odoors would be better then some other broken doorkit.
I've tried building the example doors, and only the voting one works sort of right. I know I've seen the ski one working, but it doesn't run now. >:(
Maybe we've got a broken version of it?
Adding the example doors to odoors, in CMakeLists.txt:
In ex_ski.c:
in ex_vote.c:
Yup that was it... we are now using this stevet's opendoors...
Looks like the examples work...
I did have to change and add in the above changes that you did to the 2 examples.... but all the examples work instead of just 1 somewhat working.
the ski example seems slow... but not sure if that's my environment or not.
The CMakeLists.txt file for in opendoors
This is expecting that you simply
git clone ssh://gitgreen/stevet/opendoors.git
Watch out if you ever need to edit the opendoors source files!
Codium likes to "help" you by sorting the include files -- which screws up the build process.
The #include "OpenDoor.h" needs to be before the other files, else you get pages of compiler errors about BYTE and BOOL types being undefined.