New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on Ubuntu 12.04 #1

Closed
magnet opened this Issue May 2, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@magnet

magnet commented May 2, 2012

I'm trying to build CppMicroServices very naively. Here's the full log with error:

make clean && make
[ 1%] Building CXX object src/CMakeFiles/CppMicroServices.dir/util/usAny.cpp.o
[ 3%] Building CXX object src/CMakeFiles/CppMicroServices.dir/util/usThreads.cpp.o
[ 5%] Building CXX object src/CMakeFiles/CppMicroServices.dir/util/usUtils.cpp.o
[ 7%] Building CXX object src/CMakeFiles/CppMicroServices.dir/service/usLDAPExpr.cpp.o
[ 9%] Building CXX object src/CMakeFiles/CppMicroServices.dir/service/usLDAPFilter.cpp.o
[ 11%] Building CXX object src/CMakeFiles/CppMicroServices.dir/service/usServiceException.cpp.o
[ 13%] Building CXX object src/CMakeFiles/CppMicroServices.dir/service/usServiceEvent.cpp.o
[ 15%] Building CXX object src/CMakeFiles/CppMicroServices.dir/service/usServiceListenerEntry.cpp.o
[ 17%] Building CXX object src/CMakeFiles/CppMicroServices.dir/service/usServiceListeners.cpp.o
[ 19%] Building CXX object src/CMakeFiles/CppMicroServices.dir/service/usServiceProperties.cpp.o
[ 21%] Building CXX object src/CMakeFiles/CppMicroServices.dir/service/usServiceReference.cpp.o
[ 23%] Building CXX object src/CMakeFiles/CppMicroServices.dir/service/usServiceReferencePrivate.cpp.o
[ 25%] Building CXX object src/CMakeFiles/CppMicroServices.dir/service/usServiceRegistration.cpp.o
[ 27%] Building CXX object src/CMakeFiles/CppMicroServices.dir/service/usServiceRegistrationPrivate.cpp.o
[ 29%] Building CXX object src/CMakeFiles/CppMicroServices.dir/service/usServiceRegistry.cpp.o
[ 31%] Building CXX object src/CMakeFiles/CppMicroServices.dir/module/usCoreModuleContext.cpp.o
[ 33%] Building CXX object src/CMakeFiles/CppMicroServices.dir/module/usModuleContext.cpp.o
[ 35%] Building CXX object src/CMakeFiles/CppMicroServices.dir/module/usModule.cpp.o
[ 37%] Building CXX object src/CMakeFiles/CppMicroServices.dir/module/usModuleEvent.cpp.o
[ 39%] Building CXX object src/CMakeFiles/CppMicroServices.dir/module/usModuleInfo.cpp.o
[ 41%] Building CXX object src/CMakeFiles/CppMicroServices.dir/module/usModulePrivate.cpp.o
[ 43%] Building CXX object src/CMakeFiles/CppMicroServices.dir/module/usModuleRegistry.cpp.o
[ 45%] Building CXX object src/CMakeFiles/CppMicroServices.dir/module/usModuleUtils.cpp.o
[ 47%] Building CXX object src/CMakeFiles/CppMicroServices.dir/module/usModuleVersion.cpp.o
[ 49%] Building CXX object src/CMakeFiles/CppMicroServices.dir/CppMicroServices_init.cpp.o
Linking CXX shared library ../lib/libCppMicroServices.so
[ 49%] Built target CppMicroServices
[ 50%] Building CXX object test/modules/libA/CMakeFiles/TestModuleA.dir/usTestModuleA.cpp.o
In file included from /home/simon/Workspace/Misc/CppMicroServices/include/usSharedData.h:32:0,
from /home/simon/Workspace/Misc/CppMicroServices/include/usServiceEvent.h:25,
from /home/simon/Workspace/Misc/CppMicroServices/include/usUtils_p.h:90,
from /home/simon/Workspace/Misc/CppMicroServices/include/usModuleContext.h:25,
from /home/simon/Workspace/Misc/CppMicroServices/test/modules/libA/usTestModuleA.cpp:25:
/home/simon/Workspace/Misc/CppMicroServices/include/usAtomicInt_p.h:27:25: erreur fatale: usThreads_p.h : Aucun fichier ou dossier de ce type
compilation terminée.
make[2]: *** [test/modules/libA/CMakeFiles/TestModuleA.dir/usTestModuleA.cpp.o] Erreur 1
make[1]: *** [test/modules/libA/CMakeFiles/TestModuleA.dir/all] Erreur 2
make: *** [all] Erreur 2

Fails on: usThreads_p.h: No such file or folder.

The file is in src/util/ and properly found at earlier stages of the build, but not found when trying to build the TestModule.

I'm using CMake 2.8.7 and G++ 4.6.3.

@magnet

This comment has been minimized.

Show comment
Hide comment
@magnet

magnet May 2, 2012

Simple fix:

mv src/util/usThreads_p.h include/

I don't think it's worth a pull request :-)

magnet commented May 2, 2012

Simple fix:

mv src/util/usThreads_p.h include/

I don't think it's worth a pull request :-)

@saschazelzer

This comment has been minimized.

Show comment
Hide comment
@saschazelzer

saschazelzer May 2, 2012

Member

Thanks a lot for the report. The header files are copied (eventually renamed) into the <binary_dir>/include folder. This step was missing for the usThreads_p.h file.

Member

saschazelzer commented May 2, 2012

Thanks a lot for the report. The header files are copied (eventually renamed) into the <binary_dir>/include folder. This step was missing for the usThreads_p.h file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment