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 ATSPI SWIG interface file and cmake instructions for SWIG python #8

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

spectranaut
Copy link
Collaborator

@spectranaut spectranaut commented Oct 31, 2023

closes #5

I did some renaming because SWIG uses the word "wrapper" for it's intermediary c++ files.

So now it is "atspi" node, and the library I renamed to "atspi_inspect".

This does not build however, I'm getting the error:

spectranaut:~/repos/AXAccess/build$ make
[ 12%] Building CXX object lib/atspi/CMakeFiles/atspi_inspect.dir/atspi_node.cc.o
[ 25%] Building CXX object lib/atspi/CMakeFiles/atspi_inspect.dir/linux_utils.cc.o
[ 37%] Linking CXX static library libatspi_inspect.a
[ 37%] Built target atspi_inspect
[ 50%] Building CXX object lib/atspi/CMakeFiles/dump_tree_atspi.dir/dump_tree_atspi.cc.o
[ 62%] Linking CXX executable dump_tree_atspi
[ 62%] Built target dump_tree_atspi
[ 75%] Swig compile atspi_inspect.i for python
[ 75%] Built target atspi_python_inspect_swig_compilation
[ 87%] Building CXX object lib/atspi/CMakeFiles/atspi_python_inspect.dir/CMakeFiles/atspi_python_inspect.dir/atspi_inspectPYTHON_wrap.cxx.o
[100%] Linking CXX shared module _atspi_python_inspect.so
/usr/bin/ld: libatspi_inspect.a(linux_utils.cc.o): warning: relocation against `_ZSt4cerr@@GLIBCXX_3.4' in read-only section `.text'
/usr/bin/ld: libatspi_inspect.a(atspi_node.cc.o): relocation R_X86_64_PC32 against symbol `_ZSt4cerr@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [lib/atspi/CMakeFiles/atspi_python_inspect.dir/build.make:99: lib/atspi/_atspi_python_inspect.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:172: lib/atspi/CMakeFiles/atspi_python_inspect.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Update: error fixed, I need to make the atspi_inspect library a shared library

@spectranaut spectranaut changed the title Add ATSPI SWIG interface file and cmake instructions for SWIG python DRAFT: Add ATSPI SWIG interface file and cmake instructions for SWIG python Oct 31, 2023
@spectranaut spectranaut merged commit 28ecf34 into main Nov 1, 2023
@spectranaut spectranaut deleted the interface-linux branch November 1, 2023 20:10
@spectranaut spectranaut changed the title DRAFT: Add ATSPI SWIG interface file and cmake instructions for SWIG python Add ATSPI SWIG interface file and cmake instructions for SWIG python Nov 2, 2023
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.

SWIG interface + cmake instructions for linux hello world
1 participant