|
From: | Enrico Gallus |
Subject: | Re: [cybop-developers] CMake Linking |
Date: | Thu, 9 Mar 2017 13:58:27 +0900 |
Hi Christian,
This is just a warning and normally doesn’t hurt. It was used in the XCB-find algorithm i found in the net. i commented it out, hopefully the xcb can still be found. (if not please remove the # in the library i added recently) Hm, this sounds really weird. Everything works on my computer. I already tested some examples before committing it the first time. I don’t think so. The build is done on your system and has absolutely nothing todo with the architecture where the cmake files have been created.
Enricos-MBP:examples enrico$ ../src/controller/cyboi counter/run.cybol 1 2 3 4 5 6 7 8 9 10 Information: Exit cyboi normally. The example works on my system. The api.generator works also exactly like before when still using the makefiles. Ah, after checking the source code i think i already figured out what the problem raised. The utf8encoder has no else case for the wcsnrtombs So looks like the GNU_LINUX_OPERATING_SYSTEM flag is not set correctly. The n is -1 and will process the else block and print the error message that you can see. I tried to set this in the cmake script by using the following lines, but i’m not sure if this works! IF (UNIX AND NOT APPLE) add_definitions(-DGNU_LINUX_OPERATING_SYSTEM) ENDIF() But two be honest i think 1. it would be correct to use the official preprocessor macros (if I read this correctly it should be __linux) You can check this by using the following command gcc -dM -E -x c /dev/null if linux is by default among the macros? 2. we should fix the place where the else is missing (utf_8_encoder.c line 299 is one of it) Hope this helps. Sure.
This is nice to check the configuration, but i somehow prefer to work on the console sometimes. Greetings Enrico |
[Prev in Thread] | Current Thread | [Next in Thread] |