Skip to content

trying to build but failing on ubuntu #2

@adamcandy

Description

@adamcandy

From @francispoulin on April 15, 2017 13:28

Thanks for putting this together. I am very keen to try it out but I am still at the first phase of trying to installing it.

I believe I have installed the required libraries. One difference is I installed python-gdal on ubuntu and I have to import it using "import gdal" instead of "import GDAL" and I believe you have in the code. Not sure if that is a problem or not.

I downloaded your code and tried to build it but didn't get very far. Do you have any advice as to what I should do?


$ python setup.py build
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'library_dirs'
  warnings.warn(msg)
running build
running build_py
running egg_info
writing shingle.egg-info/PKG-INFO
writing top-level names to shingle.egg-info/top_level.txt
writing dependency_links to shingle.egg-info/dependency_links.txt
writing entry points to shingle.egg-info/entry_points.txt
reading manifest file 'shingle.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'MANIFEST'
warning: no files found matching '*.py' under directory 'shingle/'
warning: no files found matching '*.so' under directory 'shingle/'
warning: no files found matching '*.h' under directory 'spud/include/'
no previously-included directories found matching 'dataset'
warning: no previously-included files matching '*' found under directory 'dataset/'
writing manifest file 'shingle.egg-info/SOURCES.txt'
running build_ext
building 'libspud' extension
gcc -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-lMBuS3/python2.7-2.7.12=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/home/fpoulin/software/Shingle/spud/include -I/home/fpoulin/software/Shingle/spud/include -I/usr/include/python2.7 -c spud/python/libspud.c -o build/temp.linux-x86_64-2.7/spud/python/libspud.o
In file included from spud/python/libspud.c:3:0:
/home/fpoulin/software/Shingle/spud/include/spud.h:38:3: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
   void spud_clear_options();
   ^~~~
/home/fpoulin/software/Shingle/spud/include/spud.h:39:3: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
   void* spud_get_manager();
   ^~~~
/home/fpoulin/software/Shingle/spud/include/spud.h:70:3: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
   void spud_print_options();
   ^~~~
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-lMBuS3/python2.7-2.7.12=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-lMBuS3/python2.7-2.7.12=. -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/spud/python/libspud.o -L/home/fpoulin/software/Shingle/spud -lspud -o build/lib.linux-x86_64-2.7/libspud.so -flat_namespace -lstdc++
x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-flat_namespace’; did you mean ‘-Wnamespaces’?
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Copied from original issue: adamcandy/Shingle#3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions