[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cybop-developers] CMake Errors
From: |
Christian Heller |
Subject: |
Re: [cybop-developers] CMake Errors |
Date: |
Mon, 06 Mar 2017 15:08 +0100 |
User-agent: |
KMail/4.14.1 (Linux/3.16.0-4-amd64; KDE/4.14.2; x86_64; ; ) |
Hi Enrico,
I received and cleaned up two errors in CYBOI source code:
Error 1:
/home/project/cybop/src/controller/../controller/../controller/globaliser/../../controller/globaliser/symbolic_name/address_family_socket_symbolic_name_globaliser.c:171:51:
error: ‘AF_DECNET’ undeclared (first use in this function)
*DECNET_ADDRESS_FAMILY_SOCKET_SYMBOLIC_NAME = AF_DECNET; // 12 Reserved
for DECnet project
^
Error 2:
/home/project/cybop/src/controller/../controller/../controller/../controller/../controller/checker/../../controller/checker/../../controller/../controller/handler/../../applicator/command/../../executor/commander/move_file_commander.c:
In function ‘command_move_file’:
/home/project/cybop/src/controller/../controller/../controller/../controller/../controller/checker/../../controller/checker/../../controller/../controller/handler/../../applicator/command/../../executor/commander/move_file_commander.c:148:50:
error: ‘INTERACTIVE_MOVE_FILE_WIN32_COMMAND_OPTION_NAME’ undeclared (first use
in this function)
append_item_element(arg, (void*)
INTERACTIVE_MOVE_FILE_WIN32_COMMAND_OPTION_NAME, (void*)
WIDE_CHARACTER_TEXT_STATE_CYBOI_TYPE, (void*)
INTERACTIVE_MOVE_FILE_WIN32_COMMAND_OPTION_NAME_COUNT, (void*)
NUMBER_0_INTEGER_STATE_CYBOI_MODEL);
^
/home/project/cybop/src/controller/../controller/../controller/../controller/../controller/checker/../../controller/checker/../../controller/../controller/handler/../../applicator/command/../../executor/commander/move_file_commander.c:148:0:
error: ‘INTERACTIVE_MOVE_FILE_WIN32_COMMAND_OPTION_NAME_COUNT’ undeclared
(first use in this function)
append_item_element(arg, (void*)
INTERACTIVE_MOVE_FILE_WIN32_COMMAND_OPTION_NAME, (void*)
WIDE_CHARACTER_TEXT_STATE_CYBOI_TYPE, (void*)
INTERACTIVE_MOVE_FILE_WIN32_COMMAND_OPTION_NAME_COUNT, (void*)
NUMBER_0_INTEGER_STATE_CYBOI_MODEL);
^
However, the linker is reporting an error due to missing XCB.
Could you please include it (XCB) as dependency in CMake?
For necessary dependencies, see also the INSTALL file in project root.
It mentions software (and Debian packages) needed for compilation.
Here are the error messages:
address@hidden:/home/project/cybop$ make
Scanning dependencies of target cyboi
[100%] Building C object CMakeFiles/cyboi.dir/src/controller/cyboi.c.o
Linking C executable src/controller/cyboi
CMakeFiles/cyboi.dir/src/controller/cyboi.c.o: In function `interrupt_thread':
cyboi.c:(.text+0x653b): undefined reference to `pthread_kill'
cyboi.c:(.text+0x6557): undefined reference to `pthread_join'
CMakeFiles/cyboi.dir/src/controller/cyboi.c.o: In function
`shutdown_x_window_system':
cyboi.c:(.text+0x6802): undefined reference to `xcb_destroy_window'
cyboi.c:(.text+0x6848): undefined reference to `xcb_disconnect'
CMakeFiles/cyboi.dir/src/controller/cyboi.c.o: In function `sense_xcb':
cyboi.c:(.text+0xc5b7): undefined reference to `xcb_poll_for_event'
CMakeFiles/cyboi.dir/src/controller/cyboi.c.o: In function
`deserialise_cybol_complex_polar_coordinates':
cyboi.c:(.text+0x3a0e4): undefined reference to `cos'
cyboi.c:(.text+0x3a127): undefined reference to `sin'
CMakeFiles/cyboi.dir/src/controller/cyboi.c.o: In function
`calculate_double_floor':
cyboi.c:(.text+0x3a6be): undefined reference to `floor'
CMakeFiles/cyboi.dir/src/controller/cyboi.c.o: In function
`serialise_cybol_complex_polar_coordinates':
cyboi.c:(.text+0x7b9c0): undefined reference to `sqrt'
cyboi.c:(.text+0x7b9f5): undefined reference to `atan'
CMakeFiles/cyboi.dir/src/controller/cyboi.c.o: In function
`serialise_x_window_system_context_cleanup':
cyboi.c:(.text+0x80f96): undefined reference to `xcb_close_font'
CMakeFiles/cyboi.dir/src/controller/cyboi.c.o: In function
`serialise_x_window_system_context':
cyboi.c:(.text+0x82af5): undefined reference to `xcb_alloc_color'
cyboi.c:(.text+0x82b19): undefined reference to `xcb_alloc_color'
cyboi.c:(.text+0x82b3a): undefined reference to `xcb_alloc_color_reply'
cyboi.c:(.text+0x82b59): undefined reference to `xcb_alloc_color_reply'
cyboi.c:(.text+0x82c24): undefined reference to `xcb_open_font'
cyboi.c:(.text+0x82d15): undefined reference to `xcb_change_gc'
CMakeFiles/cyboi.dir/src/controller/cyboi.c.o: In function
`serialise_x_window_system_rectangle':
cyboi.c:(.text+0x82fa6): undefined reference to `xcb_poly_rectangle'
CMakeFiles/cyboi.dir/src/controller/cyboi.c.o: In function
`serialise_x_window_system_text':
cyboi.c:(.text+0x83676): undefined reference to `xcb_image_text_8'
CMakeFiles/cyboi.dir/src/controller/cyboi.c.o: In function
`serialise_x_window_system_window':
cyboi.c:(.text+0x83e12): undefined reference to `xcb_change_property'
cyboi.c:(.text+0x83e5b): undefined reference to `xcb_change_property'
cyboi.c:(.text+0x83e7b): undefined reference to `xcb_configure_window'
CMakeFiles/cyboi.dir/src/controller/cyboi.c.o: In function `write_xcb':
cyboi.c:(.text+0x94f7e): undefined reference to `xcb_map_window'
cyboi.c:(.text+0x94f8a): undefined reference to `xcb_flush'
CMakeFiles/cyboi.dir/src/controller/cyboi.c.o: In function `sense_message':
cyboi.c:(.text+0x985f1): undefined reference to `pthread_create'
CMakeFiles/cyboi.dir/src/controller/cyboi.c.o: In function
`startup_x_window_system':
cyboi.c:(.text+0x9ab9c): undefined reference to `xcb_connect'
cyboi.c:(.text+0x9abe0): undefined reference to `xcb_get_setup'
cyboi.c:(.text+0x9ac04): undefined reference to `xcb_setup_roots_iterator'
cyboi.c:(.text+0x9ad0e): undefined reference to `xcb_generate_id'
cyboi.c:(.text+0x9ad20): undefined reference to `xcb_generate_id'
cyboi.c:(.text+0x9ad32): undefined reference to `xcb_generate_id'
cyboi.c:(.text+0x9ad86): undefined reference to `xcb_create_window'
cyboi.c:(.text+0x9adb4): undefined reference to `xcb_create_gc'
collect2: error: ld returned 1 exit status
CMakeFiles/cyboi.dir/build.make:85: recipe for target 'src/controller/cyboi'
failed
make[2]: *** [src/controller/cyboi] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/cyboi.dir/all' failed
make[1]: *** [CMakeFiles/cyboi.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
Christian
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [cybop-developers] CMake Errors,
Christian Heller <=