Since I install rmagick gem, I am getting this list of warnings after each rails or rake command :
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:44: warning: already initialized constant PercentGeometry
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:45: warning: already initialized constant AspectGeometry
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:46: warning: already initialized constant LessGeometry
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:47: warning: already initialized constant GreaterGeometry
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:48: warning: already initialized constant AreaGeometry
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:49: warning: already initialized constant MinimumGeometry
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:52: warning: already initialized constant FLAGS
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:53: warning: already initialized constant RFLAGS
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:92: warning: already initialized constant W
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:93: warning: already initialized constant H
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:94: warning: already initialized constant X
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:95: warning: already initialized constant Y
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:96: warning: already initialized constant RE
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:147: warning: already initialized constant ALIGN_TYPE_NAMES
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:152: warning: already initialized constant ANCHOR_TYPE_NAMES
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:157: warning: already initialized constant DECORATION_TYPE_NAMES
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:163: warning: already initialized constant FONT_WEIGHT_NAMES
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:170: warning: already initialized constant GRAVITY_NAMES
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:181: warning: already initialized constant PAINT_METHOD_NAMES
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:188: warning: already initialized constant STRETCH_TYPE_NAMES
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:200: warning: already initialized constant STYLE_TYPE_NAMES
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:673: warning: already initialized constant Model_Version
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:674: warning: already initialized constant Destination
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:675: warning: already initialized constant File_Format
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:676: warning: already initialized constant File_Format_Version
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:677: warning: already initialized constant Service_Identifier
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:678: warning: already initialized constant Envelope_Number
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:679: warning: already initialized constant Product_ID
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:680: warning: already initialized constant Envelope_Priority
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:681: warning: already initialized constant Date_Sent
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:682: warning: already initialized constant Time_Sent
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:683: warning: already initialized constant Coded_Character_Set
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:684: warning: already initialized constant UNO
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:685: warning: already initialized constant Unique_Name_of_Object
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:686: warning: already initialized constant ARM_Identifier
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:687: warning: already initialized constant ARM_Version
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:691: warning: already initialized constant Record_Version
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:692: warning: already initialized constant Object_Type_Reference
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:693: warning: already initialized constant Object_Name
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:694: warning: already initialized constant Title
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:695: warning: already initialized constant Edit_Status
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:696: warning: already initialized constant Editorial_Update
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:697: warning: already initialized constant Urgency
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:698: warning: already initialized constant Subject_Reference
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:699: warning: already initialized constant Category
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:700: warning: already initialized constant Supplemental_Category
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:701: warning: already initialized constant Fixture_Identifier
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:702: warning: already initialized constant Keywords
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:703: warning: already initialized constant Content_Location_Code
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:704: warning: already initialized constant Content_Location_Name
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:705: warning: already initialized constant Release_Date
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:706: warning: already initialized constant Release_Time
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:707: warning: already initialized constant Expiration_Date
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:708: warning: already initialized constant Expiration_Time
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:709: warning: already initialized constant Special_Instructions
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:710: warning: already initialized constant Action_Advised
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:711: warning: already initialized constant Reference_Service
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:712: warning: already initialized constant Reference_Date
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:713: warning: already initialized constant Reference_Number
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:714: warning: already initialized constant Date_Created
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:715: warning: already initialized constant Time_Created
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:716: warning: already initialized constant Digital_Creation_Date
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:717: warning: already initialized constant Digital_Creation_Time
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:718: warning: already initialized constant Originating_Program
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:719: warning: already initialized constant Program_Version
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:720: warning: already initialized constant Object_Cycle
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:721: warning: already initialized constant By_Line
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:722: warning: already initialized constant Author
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:723: warning: already initialized constant By_Line_Title
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:724: warning: already initialized constant Author_Position
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:725: warning: already initialized constant City
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:726: warning: already initialized constant Sub_Location
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:727: warning: already initialized constant Province
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:728: warning: already initialized constant State
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:729: warning: already initialized constant Country_Primary_Location_Code
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:730: warning: already initialized constant Country_Primary_Location_Name
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:731: warning: already initialized constant Original_Transmission_Reference
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:732: warning: already initialized constant Headline
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:733: warning: already initialized constant Credit
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:734: warning: already initialized constant Source
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:735: warning: already initialized constant Copyright_Notice
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:736: warning: already initialized constant Contact
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:737: warning: already initialized constant Abstract
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:738: warning: already initialized constant Caption
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:739: warning: already initialized constant Editor
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:740: warning: already initialized constant Caption_Writer
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:741: warning: already initialized constant Rasterized_Caption
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:742: warning: already initialized constant Image_Type
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:743: warning: already initialized constant Image_Orientation
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:744: warning: already initialized constant Language_Identifier
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:745: warning: already initialized constant Audio_Type
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:746: warning: already initialized constant Audio_Sampling_Rate
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:747: warning: already initialized constant Audio_Sampling_Resolution
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:748: warning: already initialized constant Audio_Duration
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:749: warning: already initialized constant Audio_Outcue
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:750: warning: already initialized constant ObjectData_Preview_File_Format
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:751: warning: already initialized constant ObjectData_Preview_File_Format_Version
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:752: warning: already initialized constant ObjectData_Preview_Data
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:756: warning: already initialized constant Size_Mode
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:757: warning: already initialized constant Max_Subfile_Size
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:758: warning: already initialized constant ObjectData_Size_Announced
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:759: warning: already initialized constant Maximum_ObjectData_Size
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:763: warning: already initialized constant Subfile
/Users/joel/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-2.13.1/lib/RMagick.rb:767: warning: already initialized constant Confirmed_ObjectData_Size
Any leads on this?
UPDATE
My Gem file:
gem "rmagick", "~> 2.13.1"
gem 'link_thumbnailer'
Instead of removing the rmagick gem in your Gemfile, you can replace the corresponding line with:
gem 'rmagick', require: false
The reason constants are being reinitialized is likely because the rmagick gem is being loaded twice: once as a dependency of link_thumbnailer (in your Gemfile), and once because you are listing 'rmagick' as a Gemfile requirement explicitly.
Try removing the rmagick entry from your Gemfile, which will be loaded anyhow as long as you are using link_thumbnailer
Related
Can I only define functions in Modules?
I load some of the Table inside the Module, for example,
Bar_1m = loadTable bar_1m
"the DFS: // Kline", "bar_1m" , but in the use of this module, when I references after bar_1m, the system will complain Variable'bar_1m' is not initialized yet.
In the module file, only encapsulated function definitions are allowed, and other non-function definition codes will be ignored
What is the list of valid #SuppressWarnings warning names in Gosu?
The bit that comes in between the ("") in #SuppressWarnings("").
There is already an SO answer for Java but I'm interested in suppressing the warning that my variable type can be inferred (passing an inferred block variable as a function parameter does not compile so I'm using an explicitly typed variable).
Java answer: What is the list of valid #SuppressWarnings warning names in Java?
When i Compile my UWP App in Debug mode all work good.
When i Compile in Release version i received an error
'File name already declared with a different GUID and checksum value'
in x86
1>------ Build started: Project: JSI_W10, Configuration: Release x86 ------
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\Login_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\Maschera_Test.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\Registration_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\ResetForgot_Password.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\Send_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\The_Brochure_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\The_Home_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\The_Image_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\The_Video_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x86\Release\The_Home_Page.g.vb(44,21): error BC30456: 'Lbl_Search' is not a member of 'The_Home_Page'.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Package: 0 succeeded, 1 failed ===========
========== App Bundle: 0 succeeded, 1 failed ===========
in x64
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\Login_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\Maschera_Test.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\Registration_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\ResetForgot_Password.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\Send_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Brochure_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Global_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Home_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Image_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Video_Page.g.vb(1,1): warning BC42034: File name already declared with a different GUID and checksum value.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Home_Page.g.vb(44,21): error BC30456: 'Lbl_Search' is not a member of 'The_Home_Page'.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\The_Global_Page.xaml(201,107): error BC30456: 'Image_Tapped' is not a member of 'The_Global_Page'.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\The_Global_Page.xaml(202,111): error BC30456: 'TextBlock_Tapped' is not a member of 'The_Global_Page'.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Global_Page.g.vb(777,21): error BC30456: 'Lbl_Search' is not a member of 'The_Global_Page'.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Global_Page.g.vb(783,38): error BC30311: Value of type 'ToggleButton' cannot be converted to 'Button'.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Global_Page.g.vb(786,35): error BC30311: Value of type 'ToggleButton' cannot be converted to 'Button'.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Global_Page.g.vb(789,38): error BC30311: Value of type 'ToggleButton' cannot be converted to 'Button'.
1>C:\Sorgenti\JSI_W10\JSI_W10\JSI_W10\obj\x64\Release\The_Global_Page.g.vb(792,33): error BC30311: Value of type 'ToggleButton' cannot be converted to 'Button'.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Package: 0 succeeded, 1 failed ===========
Pay Attenction the TOGGLE Button was in an OLD release... now i haven't like Image_tapped and TextBlock_tapped event....
I can remove them beacause i can't SEE Them !!!!!
Anyone have an idea ??
Thanks
Try below steps.
Clean the solution.
In your source folder, you will have bin and obj directories. Delete them completely.
Now try to build the solution and see if it works.
I'm having an issue linking my shared library against an OpenDDS (v3.9) static library because I am unable to find where this method signature is located.
Here's the error.
[exec] libs/mylib/ABTypeSupportImpl.cpp:74: error: undefined reference to 'OpenDDS::DCPS::operator<<(OpenDDS::DCPS::Serializer&, short)'
[exec] collect2: error: ld returned 1 exit status
[exec] make: *** [/tmp/mybuild/lib_ab/obj/local/armeabi-v7a/lib_ab.so] Error 1
ABTypeSupportImpl.cpp is auto generated from compiling the IDL. More of the same errors follow. Because of the namespace (OpenDDS::DCPS), I would think this would be found within the library libOpenDDS_Dcps.a, but using nm on this lib and then grep'ing for "operator" or "<<", produces no results. Could it be that name mangling is a bit stranger for overloaded operators? I ran this on every library file within $DDS_ROOT/lib, but found nothing.
And if I recompile the IDL and remove member fields of structs with datatypes such as short or long, then there are no errors and everything links fine.
Anyone know what library this method signature might be located?
These operators are declared in 'dds/DCPS/Serializer.h' but implemented inline in Serializer.inl. Probably you compile OpenDDS with inlining enabled (its default) but when you compile your application you compile with inlining disabled.
I'm trying to port some existing code that uses boost into native-client.
I compiled boost according to the instructions here: https://code.google.com/p/naclports/wiki/InstallingSDL (with boost instead of sdl), and tried injecting some boost code into one of the examples.
I was successfully able to use a boost::shared_ptr by editing examples/api/socket/socket.cc by including the header and adding a simple test method:
#include <boost/shared_ptr.hpp>
The test method:
void ExampleInstance::test_shared_ptr() {
boost::shared_ptr<std::string> test_ptr(new std::string("hi"));
PostMessage(test_ptr->c_str());
}
Invoking this method from the constructor results in a "hi" appearing on the console when loading the page you can reach by running "make serve".
Although I'm deeply impressed that this much works, my app uses boost::thread and boost::asio, and there I ran into trouble. In pepper_34, if I add:
#include <boost/threads.hpp>
I get these compilation errors, just by including that file:
~/nacl_sdk/pepper_34/examples/api/socket$ make
CHROME_PATH is undefined, and google-chrome not found in PATH, nor /usr/bin/google-chrome.
CXX newlib/Release/socket_x86_32.o
In file included from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/thread/thread_only.hpp:17,
from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/thread/thread.hpp:12,
from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/thread.hpp:13,
from socket.cc:25:
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/thread/pthread/thread_data.hpp: In member function 'size_t boost::thread_attributes::get_stack_size() const':
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/thread/pthread/thread_data.hpp:63: error: invalid conversion from 'const pthread_attr_t*' to 'pthread_attr_t*'
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/thread/pthread/thread_data.hpp:63: error: initializing argument 1 of 'int pthread_attr_getstacksize(pthread_attr_t*, size_t*)'
make: *** [newlib/Release/socket_x86_32.o] Error 1
Likewise, if I try to include any of the basic asio elements, for instance:
#include <boost/asio/io_service.hpp>
I get these compilation errors after adding that #include line:
~/nacl_sdk/pepper_34/examples/api/socket$ make
CHROME_PATH is undefined, and google-chrome not found in PATH, nor /usr/bin/google-chrome.
CXX newlib/Release/socket_x86_32.o
In file included from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/posix_fd_set_adapter.hpp:26,
from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/fd_set_adapter.hpp:22,
from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/select_reactor.hpp:27,
from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/reactor.hpp:29,
from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/task_io_service.ipp:24,
from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/task_io_service.hpp:203,
from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/impl/io_service.hpp:71,
from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/io_service.hpp:767,
from socket.cc:25:
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/socket_types.hpp:283: error: 'IF_NAMESIZE' was not declared in this scope
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/socket_types.hpp:304: error: 'sockaddr_un' does not name a type
In file included from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/socket_ops.hpp:326,
from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/select_reactor.ipp:30,
from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/select_reactor.hpp:212,
from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/reactor.hpp:29,
from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/task_io_service.ipp:24,
from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/task_io_service.hpp:203,
from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/impl/io_service.hpp:71,
from /home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/io_service.hpp:767,
from socket.cc:25:
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp: In function 'int boost::asio::detail::socket_ops::close(boost::asio::detail::socket_type, boost::asio::detail::socket_ops::state_type&, bool, boost::system::error_code&)':
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp:342: error: 'FIONBIO' was not declared in this scope
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp: In function 'bool boost::asio::detail::socket_ops::set_user_non_blocking(boost::asio::detail::socket_type, boost::asio::detail::socket_ops::state_type&, bool, boost::system::error_code&)':
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp:384: error: 'FIONBIO' was not declared in this scope
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp: In function 'bool boost::asio::detail::socket_ops::set_internal_non_blocking(boost::asio::detail::socket_type, boost::asio::detail::socket_ops::state_type&, bool, boost::system::error_code&)':
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp:437: error: 'FIONBIO' was not declared in this scope
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp: In function 'bool boost::asio::detail::socket_ops::sockatmark(boost::asio::detail::socket_type, boost::system::error_code&)':
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp:617: error: '::sockatmark' has not been declared
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp: In function 'size_t boost::asio::detail::socket_ops::available(boost::asio::detail::socket_type, boost::system::error_code&)':
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp:637: error: 'FIONREAD' was not declared in this scope
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp: In function 'void boost::asio::detail::socket_ops::init_buf(boost::asio::detail::socket_ops::buf&, void*, size_t)':
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp:687: error: invalid use of incomplete type 'struct iovec'
/home/jholland/nacl_sdk/pepper_34/include/newlib/sys/socket.h:304: error: forward declaration of 'struct iovec'
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp:688: error: invalid use of incomplete type 'struct iovec'
/home/jholland/nacl_sdk/pepper_34/include/newlib/sys/socket.h:304: error: forward declaration of 'struct iovec'
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp: In function 'void boost::asio::detail::socket_ops::init_buf(boost::asio::detail::socket_ops::buf&, const void*, size_t)':
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp:698: error: invalid use of incomplete type 'struct iovec'
/home/jholland/nacl_sdk/pepper_34/include/newlib/sys/socket.h:304: error: forward declaration of 'struct iovec'
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp:699: error: invalid use of incomplete type 'struct iovec'
/home/jholland/nacl_sdk/pepper_34/include/newlib/sys/socket.h:304: error: forward declaration of 'struct iovec'
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp: In function 'int boost::asio::detail::socket_ops::ioctl(boost::asio::detail::socket_type, boost::asio::detail::socket_ops::state_type&, int, boost::asio::detail::ioctl_arg_type*, boost::system::error_code&)':
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp:1689: error: 'FIONBIO' was not declared in this scope
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp: In function 'const char* boost::asio::detail::socket_ops::inet_ntop(int, const void*, char*, size_t, long unsigned int, boost::system::error_code&)':
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp:1974: error: 'IF_NAMESIZE' was not declared in this scope
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp:1979: error: 'if_name' was not declared in this scope
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp:1979: error: 'if_indextoname' was not declared in this scope
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp:1981: error: 'if_name' was not declared in this scope
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp: In function 'int boost::asio::detail::socket_ops::inet_pton(int, const char*, void*, long unsigned int*, boost::system::error_code&)':
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp:2209: error: 'if_nametoindex' was not declared in this scope
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp: In function 'int boost::asio::detail::socket_ops::gethostname(char*, int, boost::system::error_code&)':
/home/jholland/nacl_sdk/pepper_34/toolchain/linux_x86_newlib/i686-nacl/usr/include/boost/asio/detail/impl/socket_ops.ipp:2251: error: '::gethostname' has not been declared
make: *** [newlib/Release/socket_x86_32.o] Error 1
(Side Note: I don't think the CHROME_PATH warning at the top is causing these errors, since I get the same warning for the examples even without my edits, but the examples still work. I imagine it's because I'm building on a vm without chrome installed (or a window manager in which to run it), since I had to use linux to build boost according to the error message the boost build process gave when I tried building it on OSX. The error messages suggest this interferes with "make run_package", but otherwise the examples run properly under "make serve", and can be tested from a different machine, using chrome to access the pages. I'm writing this question while waiting for chromium-browser to install, in hopes I can confirm that theory.)
In case it matters, I'm running Ubuntu 12.04.
My questions:
Is there a previous pepper version in which somebody has successfully used boost::asio and/or boost::threads?
Has anyone encountered this problem and discovered a workaround?
Try building the glibc build of boost instead of newlib. You can do this by running:
TOOLCHAIN=glibc make boost
from the naclports directory.
It seems that the newlib build of boost doesn't support many boost libraries:
Component configuration:
- atomic : not building
- chrono : not building
- context : not building
- coroutine : not building
- date_time : building
- exception : not building
- filesystem : not building
- graph : not building
- graph_parallel : not building
- iostreams : not building
- locale : not building
- log : not building
- math : not building
- mpi : not building
- program_options : building
- python : not building
- random : not building
- regex : not building
- serialization : not building
- signals : not building
- system : not building
- test : not building
- thread : not building
- timer : not building
- wave : not building
The glibc build seems to support many more libraries:
Component configuration:
- atomic : building
- chrono : building
- context : not building
- coroutine : not building
- date_time : building
- exception : building
- filesystem : building
- graph : building
- graph_parallel : building
- iostreams : building
- locale : building
- log : building
- math : building
- mpi : not building
- program_options : building
- python : not building
- random : building
- regex : building
- serialization : building
- signals : not building
- system : building
- test : building
- thread : building
- timer : building
- wave : building