Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 14 22:20
    gkze starred boostorg/gil
  • Sep 14 09:30
    solosuper starred boostorg/gil
  • Sep 11 09:37
    JonasMuehlmann starred boostorg/gil
  • Sep 09 06:07
  • Sep 02 23:23
    codecov[bot] commented #659
  • Sep 02 22:50
    codecov[bot] commented #659
  • Sep 02 22:50
    striezel synchronize #659
  • Sep 01 17:49
    codecov[bot] commented #659
  • Sep 01 17:45
    striezel commented #659
  • Sep 01 17:39
    codecov[bot] commented #659
  • Sep 01 17:38
    striezel synchronize #659
  • Aug 25 08:35
    mloskot commented #718
  • Aug 25 08:34
    mloskot commented #718
  • Aug 25 08:34
    mloskot labeled #718
  • Aug 25 08:34
    mloskot milestoned #718
  • Aug 25 08:34
    mloskot demilestoned #718
  • Aug 25 08:33
    mloskot milestoned #718
  • Aug 25 08:33
    mloskot closed #718
  • Aug 25 08:33
    mloskot commented #718
  • Aug 25 05:12
    aleck099 commented #718
Mateusz Łoskot
@mloskot
@ArbitCode well, good news is this one has nothing to do with Boost or GIL, but is about knowing how to use compiler you've chosen to use. I'm not offering compile support,but this should be easy exercise: look at the
Command line part starting with g++ and at the error and try to think what the compiler may be missing
Then Google, stackoverflow, whatever to learn how to feed the compiler with whatever it needs
Good luck
Raja Ram Sharma
@ArbitCode
okay
thank you, i had to add the library folder path using -I command
Pranam Lashkari
@lpranam
@simmplecoder can you add the list of algorithms implemented by you here: https://github.com/boostorg/gil/wiki/Image-Processing-Algorithms
parthsarthiprasad
@parthsarthiprasad
I've been trying to compile one test but I'm not able to understand the error , can anyone explain
image.png
I tried to find some reference online but is this because of simple linking issue ?
Raja Ram Sharma
@ArbitCode
@parthsarthiprasad see preprocessor directive tutorial, after #if there should be a constant expression.
Olzhas Zhumabek
@simmplecoder
@lpranam, sure, will do that on this week. If I forget, you can just open GH issue and assign me
parthsarthiprasad
@parthsarthiprasad
@ArbitCode but I'm just running the code that is given in test cases , I've changed nothing myself in this code , I don't think it's the preprocessor directive issue .
Mateusz Łoskot
@mloskot
Go to https://www.boost.org/libs/mp11/ and read the very first sentence of the very first paragraph. It contains the hint to solve the compilation error.
Mateusz Łoskot
@mloskot
@parthsarthiprasad :point_up: does not quite apply to that particular error you are getting, I didn't read it carefully, but it may apply soon after you solve that initial hurdle
@parthsarthiprasad Here are two hints
  1. How does your compiler is supposed to know where to include the Boost headers from ?
  2. How does your compiler is supposed to know that you are building a code that clearly states is C++11 code, so it requires C++11 compilation mode?
    The compilers don't read docs, unfortunately.
I'm fairly certain that if you solve the 1. and 2. the compilation of that test will pass
parthsarthiprasad
@parthsarthiprasad
ah yeah , it was just linker settings , tsk, thanks
Mateusz Łoskot
@mloskot
Well, to be precise, -I (capital i) is compiler setting necessary before linking phase. Good you've found the way
Mateusz Łoskot
@mloskot
@parthsarthiprasad If you want to reach me more effectively, head to the slack channel. I'm spending time on gitter here less and less
Tony Reix
@trex58
Test pixel_iterator fails on AIX within Boost 1.69. This seems to be due to BigEndian. Is this "gil" code aware of Big/Little Endian ? Do you think it has been fixed with version 1.72 ?
Mateusz Łoskot
@mloskot
@trex58 I'm not aware of any big-endian fixes during last ~2 years (since I started maintaining GIL).
@trex58 See https://lists.boost.org/Archives/boost/2010/09/170446.php
So, unless someone with big-endian machine has been keen in GIL, she must have been shy or kept it a secret :-)
Tony Reix
@trex58
Looking at https://lists.boost.org/Archives/boost/2010/09/170446.php and then, it is exactly my issue. We have worked on it, understanding what is wrong at the end, but still unable to figure out where the root issue exactly is.
I have: Assertion failed: v1 == 6, file ../libs/gil/test/pixel_iterator.cpp, line 137
This appears to be due to: at ../boost/gil/channel.hpp:368 : return ret; and ret=46701 = 0xb66d : d/16 = 13/10 = 1101/2 : 3 last bits: 101/2 = 5 !!!
The expected correct value (as seen on Fedora/x86_64): ret=28086 = 0x6db6 : 6/16 = 6/10 = 0110/2 : 3 last bits: 110/2 = 6 !!!
On AIX, bytes are inverted : b6 6d instead of: 6d b6. However, where is the part of code to be made endianess-aware ??
? gil/bit_aligned_pixel_reference.hpp : bit_range& operator++() { ... } ?
? gil/channel.hpp : struct static_copy_bytes { ... } ?
? gil/channel.hpp : integer_t get() const { ... }
That is unclear.
Tony Reix
@trex58
p1:
AIX: (gdb) p p1
$68 = {static bit_size = 3, static is_mutable = <optimized out>, _bit_range = {_current_byte = 0x110022510 "\266m\333", _bit_offset = 0}}
x 0x110022510 :: 0xb66ddb00
Linux: (gdb) p p1
$21 = {static bit_size = 3, static is_mutable = <optimized out>, _bit_range = {_current_byte = 0x41beb0 "\266", <incomplete sequence \333>, _bit_offset = 0}}
(gdb) x 0x41beb0 :: 0x00db6db6
Mateusz Łoskot
@mloskot
@trex58 since this is getting detailed and this space is quite non-persistent (or at least hard to search through), I'd suggest you to open an issue on GitHub and describe the details there. I'll look when I have a moment
Tony Reix
@trex58
OK. Thanks. I think I have other issues with "gil" dealing with endianess.
Mateusz Łoskot
@mloskot
@trex58 issues qualify for opening Issues.
It does not guarantee a prompt fix, but will at least save all the details (ideally with MWE to useful to reproduce) in the public archive making it accessible for anyone who can deal with it now or in future. Gitter room is volatile. The Slack channel is better (has searchable archive), still not the best place for detailed bug reports
Tony Reix
@trex58
Thanks. I'll open the bug report very soon. Do not hesitate to ask for more data if needed. I'm not a C++ expert at all, and this code is very complex for me.
Mateusz Łoskot
@mloskot
Thanks. I will post any questions as comments to the issue
@trex58 I've taken liberty to add Markdown markup to clearly format code blocks

Assertion failed: v1 == 6, file ../libs/gil/test/pixel_iterator.cpp, line 137

I'm actually glad to see this :-) It means the efforts adding new tests are worthy!

Not long time ago we only had the smoke ones https://github.com/boostorg/gil/tree/develop/test/legacy
@trex58 Okey, I'll try to look into that over the weekend
Nedjima Belgacem
@NEDJIMAbelgacem
Hello everyone
I am Nedjima Belgacem. A student at ESi-Algiers (Algeria). I'm interested in working on Boost.GIL project during this year's Google Summer of Code. I have decent C++ knowledge and worked on hobby graphics projects before (mainly opengl). I will start getting familiar with Boost code base, so I'll be posting questions concerning Boost libraries and GSoC program also. I hope I make good contributions to the community :)
Mateusz Łoskot
@mloskot
@NEDJIMAbelgacem FYI, we've recently opened Slack channel (I prefer that one) https://github.com/boostorg/gil/blob/develop/README.md#community
@NEDJIMAbelgacem I'd suggest you to check answers to GSoC questions other student have been posting to Boost dev mailing list during last 2-3 months (2019/12, 2020/01, 2020/02) - https://lists.boost.org/Archives/boost/
There re also some posts on the GIL lists https://lists.boost.org/boost-gil/
In those answers, you will find lots of pointers and links, what to read, what to think about, how to get started, etc.
Mateusz Łoskot
@mloskot
@NEDJIMAbelgacem Regardung readung the list archives, I mean any GSoC related posts, not just those about GIL . Whatever applies to Boost GSoC, it applies to Boost.GIL GSoC too :)
Nedjima Belgacem
@NEDJIMAbelgacem
@mloskot Thank your for your reply
Sorry for my ignorance, I'm not experienced with Slack, It seems like I have to get an invite to access the channels. Am I wrong somewhere ?
Mateusz Łoskot
@mloskot
If you aim to participate in Boost development, the only obligatory communication channel is the Boost mailing list
You don't have to use any of Gitter, Slack
For GIL specifically, I'd suggest to use the dedicated boost-gil list
Yes, for Slack you need an invite. Do you see the topic line of this room? There should be links
I should have stick one in the README.md
Pull requests are welcome :-)