Build produces no objects or library
Posted: Mon Jul 11, 2011 5:26 pm
I have a very simple C project for building a shared (*.so) library.
I configure the projects similar to other CodeLite projects I have on the same system (but different workspace).
I click on build and see the following:
gcc -c "/home/brian/Projects/LibUsbAdapter/LibUsbDriver.c" -g -fPIC -o ./Debug/LibUsbAdapter_LibUsbDriver.o -I. -I. -I../include
gcc -c "/home/brian/Projects/LibUsbAdapter/LibUsbAdapter.c" -g -fPIC -o ./Debug/LibUsbAdapter_LibUsbAdapter.o -I. -I. -I../include
But I look in the Debug directory and there is nothing there.
So clearly the following happens as the build attempts to continue:
g++ -shared -fPIC -o ./Debug/LibUsbAdapter.so ./Debug/LibUsbAdapter_LibUsbAdapter.o ./Debug/LibUsbAdapter_LibUsbDriver.o -L. -l-rt -l-udev -l-usb
g++: error: ./Debug/LibUsbAdapter_LibUsbAdapter.o: No such file or directory
g++: error: ./Debug/LibUsbAdapter_LibUsbDriver.o: No such file or directory
make[1]: *** [Debug/LibUsbAdapter.so] Error 1
make[1]: Leaving directory `/home/brian/Projects/LibUsbAdapter/LibUsbAdapter'
For a test I make an obvious syntax error in the C source code.
I run rebuild (also repeated with just compile!)
No error reported (but the file is saved) and output window looks fine.
I have configured about 6 CodeLite C and C++ projects on Linux and I have done this exact project on other Linux systems and they work fine.
What stupid gaff could I possibly be doing that makes it so the build looks prefect in the output window but not even a syntax error is detected?
Clearly no build is getting executed.
I configure the projects similar to other CodeLite projects I have on the same system (but different workspace).
I click on build and see the following:
gcc -c "/home/brian/Projects/LibUsbAdapter/LibUsbDriver.c" -g -fPIC -o ./Debug/LibUsbAdapter_LibUsbDriver.o -I. -I. -I../include
gcc -c "/home/brian/Projects/LibUsbAdapter/LibUsbAdapter.c" -g -fPIC -o ./Debug/LibUsbAdapter_LibUsbAdapter.o -I. -I. -I../include
But I look in the Debug directory and there is nothing there.
So clearly the following happens as the build attempts to continue:
g++ -shared -fPIC -o ./Debug/LibUsbAdapter.so ./Debug/LibUsbAdapter_LibUsbAdapter.o ./Debug/LibUsbAdapter_LibUsbDriver.o -L. -l-rt -l-udev -l-usb
g++: error: ./Debug/LibUsbAdapter_LibUsbAdapter.o: No such file or directory
g++: error: ./Debug/LibUsbAdapter_LibUsbDriver.o: No such file or directory
make[1]: *** [Debug/LibUsbAdapter.so] Error 1
make[1]: Leaving directory `/home/brian/Projects/LibUsbAdapter/LibUsbAdapter'
For a test I make an obvious syntax error in the C source code.
I run rebuild (also repeated with just compile!)
No error reported (but the file is saved) and output window looks fine.
I have configured about 6 CodeLite C and C++ projects on Linux and I have done this exact project on other Linux systems and they work fine.
What stupid gaff could I possibly be doing that makes it so the build looks prefect in the output window but not even a syntax error is detected?
Clearly no build is getting executed.