I am now using the ASIO networking library with CS.
I used to be able to build my application by going to my CS directory and
typing: jam simpmap
Now that I am using ASIO, I need to add some extra include directories
Namely:
/home/jim/Desktop/asio/include
/home/jim/Desktop/boost2
I tried editing the Jamfile in the CS directory by changing the beginning to
look like this:
-----------------------------------------------
TOP ?= "." ;
BUILDTOP ?= "." ;
SubDir TOP ;
# Common include directories.
IncludeDir ;
IncludeDir $(BUILDTOP) include : : literal transient ;
IncludeDir "include" ;
#I added these two lines:
IncludeDir "/home/jim/Desktop/asio/include";
IncludeDir "/home/jim/Desktop/boost2";
-----------------------------------------------
When I type: jam simpmap
I still get errors that my includes cannot be found.
I can compile my project in one big G++ command:
g++ -I /home/jim/Desktop/asio/include -I/home/jim/Desktop/boost2 -I
/home/jim/Desktop/CS/include -g -O2 -L
/home/jim/Desktop/CS/out/linuxx86/optimize/libs -lpthread -lcrystalspace-1.3
-lcrystalspace_opengl-1.3 -ldl simpmap.cpp anim.cpp anim_mon.cpp attack.cpp
doors.cpp hit_anim.cpp iFileHelper.cpp iImageHelper.cpp keys.cpp monster.cpp
netcode.cpp netcode2.cpp player.cpp popup_awt.cpp popup_guts.cpp popup_hud.cpp
random.cpp TextHelper.cpp universals.cpp universals2.cpp walkcd.cpp
xyz_anim.cpp xyz_hash.cpp -lcrystalspace-1.3 -lcrystalspace_opengl-1.3
-lpthread -ldl
The big problem is that it takes several minutes instead of a few seconds of
compiling only the changed object files.
I would like to know how I should edit the Jamfile in the root CS directory, or
if I should make a Makefile or something. I'm fairly clueless and yahoo.com
searches didn't dredge up enough info for me. Any information you could give
me might help me solve this problem.
Thanks,
Jim (CrazyJim on forums)
---------------------------------
Got a little couch potato?
Check out fun summer activities for kids.-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]