cybop-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cybop-developers] CMake Linking


From: Enrico Gallus
Subject: Re: [cybop-developers] CMake Linking
Date: Thu, 9 Mar 2017 13:58:27 +0900

Hi Christian,

The only remaining thing now seems to be the cmake error:
"Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)”
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)


And one more thing:
I can start the compiled CYBOI and it prints the help message.
But I suddenly cannot run the CYBOL applications. Strange.
Hm, this sounds really weird. Everything works on my computer. I already tested some examples before committing it the first time.
Could it be an Apple Mac issue with line ending characters?
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.

address@hidden:/home/project/cybop/examples$ ../src/controller/cyboi counter/run.cybol
TEST ERROR UNKNOWN errno: 0
Could not read file. The file descriptor is null. f: 0
^C
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.
 

Just use the EXACT formatting of the other entries (copy-paste).
The formatting of "ChangeLog" follows strict recommendations:
https://www.st-andrews.ac.uk/~iam/docs/tutorial.html
https://www.gnu.org/prep/standards/

One more wish:
Once everything with CMake works fine, could you please add
and describe the necessary steps in the INSTALL file?
Sure.

BTW, I discovered that there are GUI tool Debian packages
for CMake, which you probably already know about:
cmake-qt-gui
cmake-curses-gui
This is nice to check the configuration, but i somehow prefer to work on the console sometimes.

Greetings
Enrico


reply via email to

[Prev in Thread] Current Thread [Next in Thread]