pincrush icon indicating copy to clipboard operation
pincrush copied to clipboard

Error when compiling

Open Nosskirneh opened this issue 7 years ago • 1 comments

I see that you were active here a few days ago, so I hope you will see this too!

At first it complain about not finding g++, so I made a symlink. A little later it crashes during compiling. Do you have any idea what might be wrong?

~/Dropbox/Developer/iOS/pincrush(master) » sudo ln -s /usr/bin/g++ /usr/bin/g++-4.2      andeh@A-MBP
------------------------------------------------------------
~/Dropbox/Developer/iOS/pincrush(master) » make target=native                            andeh@A-MBP
Making all in subprojects of tool pincrush...
Making all for subproject png...
 Compiling png.c...
png.c:548:12: error: explicitly assigning value of variable of type 'png_structp'
      (aka 'struct png_struct_def *') to itself [-Werror,-Wself-assign]
   png_ptr = png_ptr;  /* Silence compiler warning about unused png_ptr */
   ~~~~~~~ ^ ~~~~~~~
png.c:580:12: error: explicitly assigning value of variable of type 'png_structp'
      (aka 'struct png_struct_def *') to itself [-Werror,-Wself-assign]
   png_ptr = png_ptr;  /* Silence compiler warning about unused png_ptr */
   ~~~~~~~ ^ ~~~~~~~
png.c:588:12: error: explicitly assigning value of variable of type 'png_structp'
      (aka 'struct png_struct_def *') to itself [-Werror,-Wself-assign]
   png_ptr = png_ptr;  /* Silence compiler warning about unused png_ptr */
   ~~~~~~~ ^ ~~~~~~~
png.c:596:12: error: explicitly assigning value of variable of type 'png_structp'
      (aka 'struct png_struct_def *') to itself [-Werror,-Wself-assign]
   png_ptr = png_ptr;  /* Silence compiler warning about unused png_ptr */
   ~~~~~~~ ^ ~~~~~~~
4 errors generated.
make[3]: *** [obj/macosx/png.c.o] Error 1
make[2]: *** [internal-subproject-all_] Error 2
make[1]: *** [png.all.subproject.variables] Error 2
make: *** [pincrush.all.tool.variables] Error 2

Nosskirneh avatar Mar 06 '17 23:03 Nosskirneh

@Nosskirneh If you’re still interested in installing, you can grab it via homebrew: Bl4Cc4t/other

Bl4Cc4t avatar Aug 19 '18 19:08 Bl4Cc4t