From: Brad T. <bto...@ho...> - 2007-07-24 21:30:46
|
wow... boy do I feel stupid. Thank you so much. That would have been a huge time killer. So if you haven't figured out by now I am new at this...this question will reveal it. I am using the command g++ $(SO_LDFLAGS) hellodriver.o and it appears to be working no errors. Now after I have compiled this there is no .so file in my folder and the make file will keep compiling it. So my next question is the so compiled every time and put into the main executable file, or is the .so file stored some where else on the computer. Here is a copy of my new makefile CXX = g++ CLIENT_INC=-I/usr/include -I/usr/include/player-2.0 CLIENT_LDFLAGS=-L/usr/lib -Wall -lplayerc++ -lcxcore -lcv -lhighgui -lcvaux PLAYERCORE_INC=-I/usr/local/include -I/usr/include/player-2.0 PLAYERCORE_LDFLAGS=-Wall -fPIC `pkg-config --cflags playercore` -L/usr/local/lib -lcxcore -lcv -lhighgui -lcvaux -lplayercore SO_LDFLAGS=-shared -nostartfiles all: test hellodriver.so test.out: test.cpp vec.cpp vec.h g++ -o test `pkg-config --cflags playerc++` test.cpp `pkg-config --libs playerc++` vec.cpp hellodriver.so: hellodriver.o g++ $(SO_LDFLAGS) hellodriver.o #rm *.o hellodriver.o: hellodriver.cpp $(CXX) -g3 -fPIC $(PLAYERCORE_INC) $(PLAYER_LDFLAGS) -c hellodriver.cpp clean: rm test *.o *.so Thanks again. Brad Towle Brian Gerkey wrote: > > This may seem obvious, but did you make clean or otherwise remove > your .o first? Just changing the Makefile wouldn't cause the .cc to > be recompiled. > > brian. > -- View this message in context: http://www.nabble.com/Driver-dilemma-tf4138128.html#a11772222 Sent from the playerstage-users mailing list archive at Nabble.com. |