ImHex icon indicating copy to clipboard operation
ImHex copied to clipboard

Add ability to paste hex bytes with 0x

Open Diadlo opened this issue 3 years ago • 4 comments

Sometimes you may have string in the following format: 0xaa 0x1 0xbb 0x2. It's useful to have an ability to paste them as is, without editing

Diadlo avatar Jul 15 '22 10:07 Diadlo

Fixed But to be honest, I didn't test it. That's because after dropping clang support ImHex become uncompilable on my Mac.

  1. It doesn't check if compiler is GCC and silently stop working with clang
  2. After installing and specifying GCC12 as a compiler I have a lot of issues in some macOS internals

FYI error.log

Diadlo avatar Aug 20 '22 05:08 Diadlo

@Diadlo Thanks for the changes!

Your compile issues seem to mostly stem from objc files being compiled with gcc. We only compile C and C++ code with gcc, everything else that's apple specific still is using clang.

This here is the build command the CI uses which works fine there:

CC=$(brew --prefix gcc@12)/bin/gcc-12      \
CXX=$(brew --prefix gcc@12)/bin/g++-12  \
OBJC=$(brew --prefix llvm)/bin/clang           \
OBJCXX=$(brew --prefix llvm)/bin/clang++  \
cmake .. 

Basically we tell cmake to use gcc as C and C++ compiler and llvm clang as ObjC and ObjC++ compiler. It should work fine after that. If you need any more help with getting it to work, feel free to ask!

WerWolv avatar Aug 20 '22 08:08 WerWolv

@WerWolv It works. Thanks!

Now PR is tested and one issue is fixed

Diadlo avatar Aug 20 '22 08:08 Diadlo

@WerWolv Is there anything else that should be done?

Diadlo avatar Sep 01 '22 11:09 Diadlo