Re: [cryptopp-users] Cannot install the library

2022-09-11 Thread The Vinh Luong
That works, thanks Jeff!

On Sun, Sep 11, 2022 at 1:59 AM Jeffrey Walton  wrote:

> On Sat, Sep 10, 2022 at 12:22 PM The Vinh Luong
>  wrote:
> >
> > Thank you. After some research, I realized that running
> `GNUmakefile-cross` with sudo make it cannot read the env variabls which
> were exported when running `setenv-ios.sh`. This leads to the above error.
> The solution is to run 'GNUmakefile-cross' without sudo.
>
> You should use `sudo -E` if you need the sudo user's environment.
>
> Jeff
>
> > On Wed, Sep 7, 2022 at 7:09 AM Jeffrey Walton 
> wrote:
> >>
> >> On Tue, Sep 6, 2022 at 2:08 PM The Vinh Luong
> >>  wrote:
> >> >
> >> > Hi, I tried to install the library with `make -f GNUmakefile-cross
> install PREFIX=/Users/luongvinh/cryptopp/ios-i386` on macOS Monterey 12.5.1
> after succeeded in building the library for ios-i386 but ends up with the
> following error
> >> > ```
> >> > Using testing flags: -DNDEBUG -g2 -O3 -fPIC -pipe
> >> > c++ -DNDEBUG -g2 -O3 -fPIC -pipe -c aria_simd.cpp
> >> > In file included from aria_simd.cpp:9:
> >> > In file included from ./pch.h:14:
> >> > In file included from ./config.h:22:
> >> > In file included from ./config_align.h:27:
> >> > In file included from ./config_cxx.h:37:
> >> > In file included from
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:506:
> >> > In file included from
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string_view:175:
> >> > In file included from
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__string:57:
> >> > In file included from
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:641:
> >> > In file included from
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:60:
> >> >
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h:60:15:
> fatal error: 'string.h' file not found
> >> > #include_next 
> >> >   ^~
> >> > 1 error generated.
> >> > make: *** [aria_simd.o] Error 1
> >> > ```
> >> > Could you guys help me out? Thanks!
> >>
> >> It looks like the compiler cannot find its C++ header files.
> >>
> >> You may want to take a look at
> >> https://www.cryptopp.com/wiki/IOS_(Command_Line)  .
> >>
> >> Jeff
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Crypto++ Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/cryptopp-users/p2WpV0IH2gU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> cryptopp-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/cryptopp-users/CAH8yC8ms9%2BedxWZKkZdxOkvXzXmkucTt8zVKbva22fcHts2KHQ%40mail.gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/cryptopp-users/CAFJBr_u3oDysO4BMJXJ4qGY_FeZ1r-B_LtZ_G%3DYHHbZkrq9wQA%40mail.gmail.com.


Re: [cryptopp-users] Cannot install the library

2022-09-10 Thread Jeffrey Walton
On Sat, Sep 10, 2022 at 12:22 PM The Vinh Luong
 wrote:
>
> Thank you. After some research, I realized that running `GNUmakefile-cross` 
> with sudo make it cannot read the env variabls which were exported when 
> running `setenv-ios.sh`. This leads to the above error. The solution is to 
> run 'GNUmakefile-cross' without sudo.

You should use `sudo -E` if you need the sudo user's environment.

Jeff

> On Wed, Sep 7, 2022 at 7:09 AM Jeffrey Walton  wrote:
>>
>> On Tue, Sep 6, 2022 at 2:08 PM The Vinh Luong
>>  wrote:
>> >
>> > Hi, I tried to install the library with `make -f GNUmakefile-cross install 
>> > PREFIX=/Users/luongvinh/cryptopp/ios-i386` on macOS Monterey 12.5.1 after 
>> > succeeded in building the library for ios-i386 but ends up with the 
>> > following error
>> > ```
>> > Using testing flags: -DNDEBUG -g2 -O3 -fPIC -pipe
>> > c++ -DNDEBUG -g2 -O3 -fPIC -pipe -c aria_simd.cpp
>> > In file included from aria_simd.cpp:9:
>> > In file included from ./pch.h:14:
>> > In file included from ./config.h:22:
>> > In file included from ./config_align.h:27:
>> > In file included from ./config_cxx.h:37:
>> > In file included from 
>> > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:506:
>> > In file included from 
>> > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string_view:175:
>> > In file included from 
>> > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__string:57:
>> > In file included from 
>> > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:641:
>> > In file included from 
>> > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:60:
>> > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h:60:15:
>> >  fatal error: 'string.h' file not found
>> > #include_next 
>> >   ^~
>> > 1 error generated.
>> > make: *** [aria_simd.o] Error 1
>> > ```
>> > Could you guys help me out? Thanks!
>>
>> It looks like the compiler cannot find its C++ header files.
>>
>> You may want to take a look at
>> https://www.cryptopp.com/wiki/IOS_(Command_Line)  .
>>
>> Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/cryptopp-users/CAH8yC8ms9%2BedxWZKkZdxOkvXzXmkucTt8zVKbva22fcHts2KHQ%40mail.gmail.com.


Re: [cryptopp-users] Cannot install the library

2022-09-10 Thread The Vinh Luong
That's why I think the wiki need to change (
https://www.cryptopp.com/wiki/IOS_(Command_Line)), since the `make install`
in there is using sudo.

On Sat, Sep 10, 2022 at 11:21 PM The Vinh Luong 
wrote:

> Thank you. After some research, I realized that running
> `GNUmakefile-cross` with sudo make it cannot read the env variabls which
> were exported when running `setenv-ios.sh`. This leads to the above error.
> The solution is to run 'GNUmakefile-cross' without sudo.
>
> On Wed, Sep 7, 2022 at 7:09 AM Jeffrey Walton  wrote:
>
>> On Tue, Sep 6, 2022 at 2:08 PM The Vinh Luong
>>  wrote:
>> >
>> > Hi, I tried to install the library with `make -f GNUmakefile-cross
>> install PREFIX=/Users/luongvinh/cryptopp/ios-i386` on macOS Monterey 12.5.1
>> after succeeded in building the library for ios-i386 but ends up with the
>> following error
>> > ```
>> > Using testing flags: -DNDEBUG -g2 -O3 -fPIC -pipe
>> > c++ -DNDEBUG -g2 -O3 -fPIC -pipe -c aria_simd.cpp
>> > In file included from aria_simd.cpp:9:
>> > In file included from ./pch.h:14:
>> > In file included from ./config.h:22:
>> > In file included from ./config_align.h:27:
>> > In file included from ./config_cxx.h:37:
>> > In file included from
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:506:
>> > In file included from
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string_view:175:
>> > In file included from
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__string:57:
>> > In file included from
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:641:
>> > In file included from
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:60:
>> >
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h:60:15:
>> fatal error: 'string.h' file not found
>> > #include_next 
>> >   ^~
>> > 1 error generated.
>> > make: *** [aria_simd.o] Error 1
>> > ```
>> > Could you guys help me out? Thanks!
>>
>> It looks like the compiler cannot find its C++ header files.
>>
>> You may want to take a look at
>> https://www.cryptopp.com/wiki/IOS_(Command_Line)  .
>>
>> Jeff
>> Jeff
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Crypto++ Users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/cryptopp-users/p2WpV0IH2gU/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> cryptopp-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/cryptopp-users/CAH8yC8nHsPhgS0ERgrEXcZo1FAzXcPKL1YLAbgVPhOqaNJw%2B%2Bw%40mail.gmail.com
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/cryptopp-users/CAFJBr_uugnZ1f%2B2YsN2x%2BUbGz%3Dx2gcFsFRrKSxL%2BDx0-trg-rw%40mail.gmail.com.


Re: [cryptopp-users] Cannot install the library

2022-09-10 Thread The Vinh Luong
Thank you. After some research, I realized that running `GNUmakefile-cross`
with sudo make it cannot read the env variabls which were exported when
running `setenv-ios.sh`. This leads to the above error. The solution is to
run 'GNUmakefile-cross' without sudo.

On Wed, Sep 7, 2022 at 7:09 AM Jeffrey Walton  wrote:

> On Tue, Sep 6, 2022 at 2:08 PM The Vinh Luong
>  wrote:
> >
> > Hi, I tried to install the library with `make -f GNUmakefile-cross
> install PREFIX=/Users/luongvinh/cryptopp/ios-i386` on macOS Monterey 12.5.1
> after succeeded in building the library for ios-i386 but ends up with the
> following error
> > ```
> > Using testing flags: -DNDEBUG -g2 -O3 -fPIC -pipe
> > c++ -DNDEBUG -g2 -O3 -fPIC -pipe -c aria_simd.cpp
> > In file included from aria_simd.cpp:9:
> > In file included from ./pch.h:14:
> > In file included from ./config.h:22:
> > In file included from ./config_align.h:27:
> > In file included from ./config_cxx.h:37:
> > In file included from
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:506:
> > In file included from
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string_view:175:
> > In file included from
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__string:57:
> > In file included from
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:641:
> > In file included from
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:60:
> >
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h:60:15:
> fatal error: 'string.h' file not found
> > #include_next 
> >   ^~
> > 1 error generated.
> > make: *** [aria_simd.o] Error 1
> > ```
> > Could you guys help me out? Thanks!
>
> It looks like the compiler cannot find its C++ header files.
>
> You may want to take a look at
> https://www.cryptopp.com/wiki/IOS_(Command_Line)  .
>
> Jeff
> Jeff
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Crypto++ Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/cryptopp-users/p2WpV0IH2gU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> cryptopp-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/cryptopp-users/CAH8yC8nHsPhgS0ERgrEXcZo1FAzXcPKL1YLAbgVPhOqaNJw%2B%2Bw%40mail.gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/cryptopp-users/CAFJBr_u6xCq4EtWW7BRkf447T0QxoWkF20Bf0J%3DFbbP%2Brp3nMA%40mail.gmail.com.


Re: [cryptopp-users] Cannot install the library

2022-09-06 Thread Jeffrey Walton
On Tue, Sep 6, 2022 at 2:08 PM The Vinh Luong
 wrote:
>
> Hi, I tried to install the library with `make -f GNUmakefile-cross install 
> PREFIX=/Users/luongvinh/cryptopp/ios-i386` on macOS Monterey 12.5.1 after 
> succeeded in building the library for ios-i386 but ends up with the following 
> error
> ```
> Using testing flags: -DNDEBUG -g2 -O3 -fPIC -pipe
> c++ -DNDEBUG -g2 -O3 -fPIC -pipe -c aria_simd.cpp
> In file included from aria_simd.cpp:9:
> In file included from ./pch.h:14:
> In file included from ./config.h:22:
> In file included from ./config_align.h:27:
> In file included from ./config_cxx.h:37:
> In file included from 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:506:
> In file included from 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string_view:175:
> In file included from 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__string:57:
> In file included from 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:641:
> In file included from 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:60:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h:60:15:
>  fatal error: 'string.h' file not found
> #include_next 
>   ^~
> 1 error generated.
> make: *** [aria_simd.o] Error 1
> ```
> Could you guys help me out? Thanks!

It looks like the compiler cannot find its C++ header files.

You may want to take a look at
https://www.cryptopp.com/wiki/IOS_(Command_Line)  .

Jeff
Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/cryptopp-users/CAH8yC8nHsPhgS0ERgrEXcZo1FAzXcPKL1YLAbgVPhOqaNJw%2B%2Bw%40mail.gmail.com.