Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CMake, reformat README.md, rename examples and remove relative include paths #46

Closed
wants to merge 9 commits into from

Conversation

jopadan
Copy link

@jopadan jopadan commented Mar 11, 2022

No description provided.

@jopadan jopadan changed the title Add CMake, reformat README.md and base examples/include paths Add CMake, reformat README.md, rename examples and remove relative include paths Mar 11, 2022
Copy link
Member

@dotted dotted left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't able to build.

Running cmake . && cmake --build . in the root directory I get:

[ 63%] Linking C executable puttrain
/usr/bin/ld: libadikted/libadikted.so: undefined reference to `ceil'
/usr/bin/ld: libadikted/libadikted.so: undefined reference to `acos'
/usr/bin/ld: libadikted/libadikted.so: undefined reference to `sin'
/usr/bin/ld: libadikted/libadikted.so: undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/puttrain.dir/build.make:87: puttrain] Error 1
make[1]: *** [CMakeFiles/Makefile2:177: CMakeFiles/puttrain.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

When I run it in the libadikted folder it builds and links just fine.

Trying to tun the command from the mapslang folder gives me:

-- The C compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for one of the modules 'slang'
-- Checking for one of the modules 'libadikted'
CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:707 (message):
  None of the required 'libadikted' found
Call Stack (most recent call first):
  CMakeLists.txt:27 (pkg_search_module)


-- Configuring incomplete, errors occurred!
See also "/home/dotted/ADiKtEd/mapslang/CMakeFiles/CMakeOutput.log".

CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
@jopadan
Copy link
Author

jopadan commented Mar 12, 2022

I've added extra standard C libs to the root directory now.
Running cmake . && make install seems to work but I don't have the BuildTools cmake --build . available.
You need a compiled/installed libadikted for mapslang.

@dotted
Copy link
Member

dotted commented Mar 28, 2022

Continued in #48

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants