MarkFontenot / cpp-library-project-template

Automatically exported from code.google.com/p/cpp-library-project-template
Other
0 stars 0 forks source link

APPLICATION_VERSION_MAJOR undefined #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. On a Mac, with no tools other than the Xcode 4 distribution stuff,
2. Download the C++ library project template
3. Run "make", and satisfy all the (too many) dependencies by running 
4. "sudo port install XXX" whenever a dependency fails.
5. Eventually, when no more dependencies remain, run "make" again to build the 
project.

I expected a successful build (with no source code of mine, there is only your 
template stuff to compile).

Instead, I got this:
{{{
~/Sources/close/compiler$ ./configure
--     includedir: /opt/local/include
--     librarydir: /opt/local/lib
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/austin/Sources/close/compiler/build
~/Sources/close/compiler$ make
"/Applications/CMake 2.8-5.app/Contents/bin/cmake" 
-H/Users/austin/Sources/close/compiler 
-B/Users/austin/Sources/close/compiler/build --check-build-system 
CMakeFiles/Makefile.cmake 0
"/Applications/CMake 2.8-5.app/Contents/bin/cmake" -E cmake_progress_start 
/Users/austin/Sources/close/compiler/build/CMakeFiles 
/Users/austin/Sources/close/compiler/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make -f source/CMakeFiles/sharedlib.dir/build.make 
source/CMakeFiles/sharedlib.dir/depend
cd /Users/austin/Sources/close/compiler/build && "/Applications/CMake 
2.8-5.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" 
/Users/austin/Sources/close/compiler 
/Users/austin/Sources/close/compiler/source 
/Users/austin/Sources/close/compiler/build 
/Users/austin/Sources/close/compiler/build/source 
/Users/austin/Sources/close/compiler/build/source/CMakeFiles/sharedlib.dir/Depen
dInfo.cmake --color=
make -f source/CMakeFiles/sharedlib.dir/build.make 
source/CMakeFiles/sharedlib.dir/build
"/Applications/CMake 2.8-5.app/Contents/bin/cmake" -E cmake_progress_report 
/Users/austin/Sources/close/compiler/build/CMakeFiles 9
[ 14%] Building CXX object source/CMakeFiles/sharedlib.dir/version.cpp.o
cd /Users/austin/Sources/close/compiler/build/source && /usr/bin/c++   
-Dsharedlib_EXPORTS -fPIC -I/Users/austin/Sources/close/compiler/include 
-I/opt/local/include    -o CMakeFiles/sharedlib.dir/version.cpp.o -c 
/Users/austin/Sources/close/compiler/source/version.cpp
/Users/austin/Sources/close/compiler/source/version.cpp: In function ‘int 
projectname_version_major()’:
/Users/austin/Sources/close/compiler/source/version.cpp:6: error: 
‘APPLICATION_VERSION_MAJOR’ was not declared in this scope
make[3]: *** [source/CMakeFiles/sharedlib.dir/version.cpp.o] Error 1
make[2]: *** [source/CMakeFiles/sharedlib.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

}}}

Original issue reported on code.google.com by austin_h...@yahoo.com on 21 Jul 2011 at 10:52

GoogleCodeExporter commented 8 years ago
libraryinfo.h.in.cmake has an error.

The ifndef of APPLICATION_VERSION_MAJOR has a typo and it is not set properly. 
I attach a patch which solves it.

Original comment by francesc...@gmail.com on 3 Jan 2013 at 10:47

Attachments: