Comments (12)
The patch for @openSUSE is slightly different as we use shared libs instead:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7ff9079..b92ed20 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,8 +11,6 @@ pkg_search_module(CAPSTONE REQUIRED capstone)
find_package(OpenGL REQUIRED)
find_package(LLVM REQUIRED CONFIG)
-llvm_map_components_to_libnames(demangler)
-
include_directories(include ${GLFW_INCLUDE_DIRS} ${CAPSTONE_INCLUDE_DIRS} ${LLVM_INCLUDE_DIRS} libs/ImGui/include libs/glad/include)
SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -DIMGUI_IMPL_OPENGL_LOADER_GLAD")
@@ -65,10 +63,12 @@ add_executable(ImHex
resource.rc
)
+target_link_directories(ImHex PRIVATE ${LLVM_LIBRARY_DIR})
+
if (WIN32)
- target_link_libraries(ImHex libglfw3.a libgcc.a libstdc++.a libmagic.a libgnurx.a libtre.a libintl.a libiconv.a shlwapi.lib libcrypto.a libwinpthread.a libcapstone.a libLLVMDemangle.a)
+ target_link_libraries(ImHex libglfw3.a libgcc.a libstdc++.a libmagic.a libgnurx.a libtre.a libintl.a libiconv.a shlwapi.lib libcrypto.a libwinpthread.a libcapstone.a libLLVM.a)
endif (WIN32)
if (UNIX)
- target_link_libraries(ImHex libglfw.so libmagic.so libcrypto.so libdl.so libcapstone.so libLLVMDemangle.so)
-endif (UNIX)
\ No newline at end of file
+ target_link_libraries(ImHex libglfw.so libmagic.so libcrypto.so libdl.so libcapstone.so libLLVM.so)
+endif (UNIX)
--
2.26.2
from imhex.
@Mailaender As of 9b85335, you don't need a patch anymore π
from imhex.
Hi!
It's absolutely not deprecated, in fact it's still being further improved as seen here https://github.com/llvm/llvm-project/tree/master/llvm/include/llvm/Demangle.
ImHex in itself does have a lot of dependencies already. And I know not all of them can be available on absolutely every distribution. Therefore, if I start making one dependency optional, lots of other people will come asking for capstone or python or libmagic to be made optional. I feel like ImHex is going to lose lots of what it is when having different features available on different architectures because prebuilt libraries aren't available there. In my opinion you should rather try to get these libraries be available on those distros as well instead of ripping them out of projects. That will help other people too that use these libraries.
from imhex.
I have exactly the same issue as @Mailaender (I'm on openSUSE as well), can't find the dependency anywhere.
from imhex.
I understand. https://build.opensuse.org/package/show/devel:tools:compiler/llvm has it disabled somehow which seems to be the default.
Are you sure it is available for @archlinux? It isn't packaged for https://www.archlinux.org/packages/extra/x86_64/llvm-libs/ as you linked in the ReadMe and https://www.archlinux.org/packages/extra/x86_64/llvm/ only contains headers and a statically linked library.
from imhex.
We believe it is part of libLLVM itself already.
from imhex.
β / find /usr | grep libLLVM
...
/usr/lib/libLLVMDemangle.a
Definitely available on my Arch Linux setup.
I have llvm 11.0.0-1
and llvm-libs 11.0.0-1
installed.
from imhex.
Oh I just noticed the title, sorry. Me writing libLLVMDemangle.so in the cmake script was actually an error. It was fixed today to use the correct file. It's very much possible that that's the reason nothing came up for you. Sorry about that
from imhex.
Even with #35 applied it can't find the library.
https://build.opensuse.org/package/view_file/devel:tools:compiler/llvm11/llvm-do-not-install-static-libraries.patch is probably the culprit here so nothing on your end.
from imhex.
https://build.opensuse.org/package/show/home:Mailaender:branches:editors/imhex builds.
from imhex.
Thanks alot for this patch, gentoo is working now too :)
imhex-1.5.0.ebuild
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{7..9} )
inherit desktop xdg-utils python-single-r1 cmake-utils llvm
DESCRIPTION="A Hex Editor for Reverse Engineers, Programmers and people that value their eye sight when working at 3 AM."
HOMEPAGE="https://github.com/WerWolv/ImHex"
SRC_URI="https://github.com/WerWolv/ImHex/archive/v${PV}.tar.gz"
S="${WORKDIR}/ImHex-${PV}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="
${PYTHON_DEPS}
sys-devel/llvm:=
media-libs/glfw
media-libs/glm
sys-apps/file
dev-libs/openssl
dev-libs/capstone
sys-devel/llvm
dev-cpp/nlohmann_json
dev-lang/python
"
RDEPEND="${DEPEND}"
BDEPEND="
dev-util/cmake
"
src_install() {
# Install executable
exeinto /opt/${PN}
doexe ${BUILD_DIR}/ImHex
fperms +x /opt/${PN}/ImHex
# Symlink executable
dodir /opt/bin
dosym ../${PN}/ImHex /opt/bin/ImHex
# Install auxiliary files
insinto /opt/${PN}
doins ${S}/icon.ico
doins -r ${S}/python_libs/lib/.
make_desktop_entry /opt/bin/ImHex "ImHex" /opt/${PN}/icon.ico "Editor"
einstalldocs
}
pkg_postinst() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
from imhex.
Yaay! That's great, thanksππ»ππ
from imhex.
Related Issues (20)
- [Bug] Denying server contact in initial wizard still keeps crash reports uploads enabled HOT 1
- [Bug] Setting base address causes Data Inspector and copying issues
- [Bug] Ctrl+G results selection lost after closing GoTo window with Escape
- [Bug] Export selection to file processes for ever at full CPU load.
- [Bug] Why can't I JUMP to a FUCKING address
- [Bug] The "parent" keyword isn't always parsed in patterns HOT 4
- [Bug] no longer works on Sway (wlroots) HOT 5
- [Bug] Pattern placed in section doesn't appear in Pattern Data HOT 1
- [Feature] Better Unicode display when using default font.
- [Bug] Goto parses input address as decimal instead of hex HOT 1
- Infinite recursion while opening a View over an Intel Hex file HOT 1
- [Crash] SIGSEGV when pattern evaluation tries to raise some errors. HOT 6
- [Bug] v1.33.2 fails to launch on windows - Failed to create GLFW window: [65542] WGL: The driver does not appear to support OpenGL. HOT 1
- [Bug] HOT 2
- Windows Releases 4x larger since version 1.33.0 HOT 2
- [Bug] CJK glyphs are display in wrong size (larger then ascii characters) when using fractional scaling (1.5x etc.) HOT 3
- [Bug] Diffing shows the start address for both start and end
- [Bug] #pragma pattern_limit is bugged HOT 5
- [Bug] Export selection to file omits last byte
- [Feature] Cross-file data references HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imhex.