Opened 3 years ago

Closed 3 years ago

#697 closed defect (fixed)

.deps/insertppm.Po: No such file or directory

Reported by: fxavier Owned by: fxavier
Priority: minor Milestone: 9.0.x
Component: applications Version: development
Keywords: Cc:
Complexity: Medium

Description (last modified by fxavier)

So, after installing rasdaman from the latest version of GIT repo (and most likely from other sources too), and after having RASDAMAN running, you have some example applications you can run (C++, Java, ...). However, by trying to compile the source C++ application files, one gets the following error, after doing make on the makefile under

$RASHOME/share/rasdaman/examples/c++/ :

$ make
Makefile:345: .deps/insertppm.Po: No such file or directory
Makefile:346: .deps/query.Po: No such file or directory
make: * No rule to make target `.deps/query.Po'. Stop.

Attachments (1)

error.png (840.4 KB) - added by fxavier 3 years ago.
error

Download all attachments as: .zip

Change History (10)

Changed 3 years ago by fxavier

error

comment:1 Changed 3 years ago by fxavier

  • Description modified (diff)

comment:2 Changed 3 years ago by dmisev

That is in the install dir, there should be no Makefile actually.

comment:3 Changed 3 years ago by fxavier

Not according to Peter, no. And quite honestly, it makes NO SENSE, having to go for the GIT repo and look for the examples there. You install something, and if it comes with example source files, you run them with the installation folder, and not in the source files (yet to be installed). In case you install rasdaman from a package or other source other than GIT, you erase those files right after installation, for a clean OS.

xavier

comment:4 Changed 3 years ago by dmisev

Ok then you'll probably need to manually write a Makefile that will be distributed with those examples, i.e. you can't rely on the one generated from the Makefile.am for this.

comment:6 Changed 3 years ago by fxavier

Problem Solved. I created a Makefile that is automatically installed with the main "make install" (in the root folder, completely transparent to the user). It is installed in the

$(instalation_folder)/shared/rasdaman/examples/c++

Where the C++ source example files are also installed, and by doing MAKE in this location, both examples are compiled at once (query and insertppm), in the same Makefile.

You can run the examples in the installation folder from now on, completely disregarding, in this way, the repository source.

comment:7 Changed 3 years ago by fxavier

  • Resolution set to fixed
  • Status changed from new to closed

comment:8 Changed 3 years ago by dmisev

  • Resolution fixed deleted
  • Status changed from closed to reopened

Problem not quite solved, sometimes the install fails because $(instalation_folder)/shared/rasdaman/examples/c++ directory does not exist. Patch submitted.

comment:9 Changed 3 years ago by dmisev

  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.