This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Unable to build,install Kate ktexteditor_bracesane extension

Tags: None
(comma "," separated)
tleedavidson
Registered Member
Posts
9
Karma
0
In response to bug report "Autobracket plugin does not replicate all the functionality of the built in function", a new (replacement) plugin was attached in that thread that addresses the issue.

I am having difficulty successfully building and installing that plugin, and finding the newly built,installed plugin within Kate:: Settings > Configure Kate > Extensions.

With bracesane_build as a sister directory to bracesane (the source), I am configuring with:
Code: Select all
bracesane_build# cmake ../bracesane -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
The configuration process reports C/CXX compiler version GNU 4.7.2, and no errors (other than rightly failing the _OFFT_IS_64BIT test and a few 'not found's: Q_WS_WIN, Q_WS_QWS, Q_WS_MAC, pthread_create).

The make process also appears to complete with no errors:
Code: Select all
# Scanning dependencies of target ktexteditor_bracesane_automoc
# Generating bracesane_config.moc
# Generating bracesane.moc
# [  0%] Built target ktexteditor_bracesane_automoc
# Scanning dependencies of target ktexteditor_bracesane
# [ 33%] Building CXX object CMakeFiles/ktexteditor_bracesane.dir/ktexteditor_bracesane_automoc.o
# [ 66%] Building CXX object CMakeFiles/ktexteditor_bracesane.dir/bracesane.o
# [100%] Building CXX object CMakeFiles/ktexteditor_bracesane.dir/bracesane_config.o
# Linking CXX shared module lib/ktexteditor_bracesane.so
# [100%] Built target ktexteditor_bracesane

However, make install does not install the actual application which should go into /usr/share/apps/ktexteditor_bracesane/ as intimated in this comment:
Code: Select all
# [  0%] Built target ktexteditor_bracesane_automoc
# [100%] Built target ktexteditor_bracesane
# Install the project...
# -- Install configuration: "RelWithDebInfo"
# -- Installing: /usr/lib/kde4/ktexteditor_bracesane.so
# -- Installing: /usr/share/kde4/services/ktexteditor_bracesane.desktop
# -- Installing: /usr/share/kde4/services/ktexteditor_bracesane_config.desktop
(I am wondering about that "RelWithDebInfo" as I am not using a Debian-based system. I am using a Fedora-based system, Mageia 3, with KDE v4.10.5)

And, launching Kate gives me no new extension to choose from.

The content of CMakeLists.txt in ../bracesane (the source) is:
Code: Select all
find_package(KDE4 REQUIRED)
include (KDE4Defaults)
include_directories(${KDE4_INCLUDES})

kde4_add_plugin(ktexteditor_bracesane bracesane.cpp bracesane_config.cpp)
# kde4_add_plugin(ktexteditor_bracesane bracesane.cpp)

target_link_libraries(ktexteditor_bracesane ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} ktexteditor)

install(TARGETS ktexteditor_bracesane DESTINATION ${PLUGIN_INSTALL_DIR})

install(FILES ktexteditor_bracesane.desktop ktexteditor_bracesane_config.desktop DESTINATION ${SERVICES_INSTALL_DIR})
# install(FILES ktexteditor_bracesane.desktop DESTINATION ${SERVICES_INSTALL_DIR})


#install(FILES bracesaneui.rc DESTINATION ${DATA_INSTALL_DIR}/ktexteditor_bracesane)
Is this content missing something? Or is the problem perhaps something else that I am clueless about?

I appreciate any help on this as I really miss the lost functionality of the current autobrace extension.

Thank you.

T. Lee

Last edited by tleedavidson on Sun Nov 03, 2013 12:40 am, edited 2 times in total.
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
This all looks fine. Did you run kbuildsycoca after finishing the installation? Did you look under "Extension" (not "Plugins") for the new plugin?

"RelWithDebInfo" expands to "ReleaseWithDebugInfo". ;)

Greetings,
Sven


I'm working on the KDevelop IDE.
tleedavidson
Registered Member
Posts
9
Karma
0
Thanks Sven!

I appreciate you setting me straight about "RelWithDebInfo".

I did not find kbuildsycoca on my system. A bit of searching and querying package provides revealed that it is kbuildsycoca4. After running that, the extension showed up in Kate, and, much more importantly, it works :-D

Thanks again, Sven.

T.Lee


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell