LANDIS-II-Foundation / Extension-Biomass-Harvest

LANDIS extension for simulating the effects of forest management.
https://sites.google.com/site/landismodel/extensions/biomass-harvest
Apache License 2.0
0 stars 10 forks source link

Compilation issue on Linux : The type or namespace name 'IntPixel' could not be found #63

Open Klemet opened 1 week ago

Klemet commented 1 week ago

When trying to compile on Linux, I get the following error :

2.142 BiomassMaps.cs(43,34): error CS0246: The type or namespace name 'IntPixel' could not be found (are you missing a using directive or an assembly reference?) [/usr/bin/LANDIS_Linux/Extension-Biomass-Harvest/src/biomass-harvest-ext.csproj]
2.142 BiomassMaps.cs(43,89): error CS0246: The type or namespace name 'IntPixel' could not be found (are you missing a using directive or an assembly reference?) [/usr/bin/LANDIS_Linux/Extension-Biomass-Harvest/src/biomass-harvest-ext.csproj]
2.142 BiomassMaps.cs(45,17): error CS0246: The type or namespace name 'IntPixel' could not be found (are you missing a using directive or an assembly reference?) [/usr/bin/LANDIS_Linux/Extension-Biomass-Harvest/src/biomass-harvest-ext.csp

All .dll libraries seem to be correctly referenced (no errors about libraries not found).

I've tried adding some using ...; corresponding to others extensions in the beginning of BiomassMaps.cs, but it didn't work.

I had to add the following code (from library spatial) to BiomassMaps.cs for the compiling to work.

Klemet commented 1 week ago

I think I found it; a file named IntPixel.cs was present but disappears after commit ec0474ac5ded459d8df66a6d2aef9e2728fb488f . As such, the previous commit (c588c94590dcd1ec5e39790a46f7cbe9a7aa41d6) compiles without issues.