Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHow to use manage system library project?
Hi All,
Few days back i wrote one thread about software code protection.After studying some more depth in NIOS IDE i am getting 1) managed system library 2) system library project. Now the first project just build the library.It will never ask for the *.ptf file.Means it is totaly independent from target hardware. I created that one. Now the issue is that i developed a code and that i want to protect from out side.Now this code also contain some use of NIOS HAL.ok. To build this library i assign the path of that NIOS HAL and get successfully build of my library. Now,my library contain *c and *.h file and it also use some NIOS HAL,that i already mentioned above. Now i made simple C/C++ application in another workspace and give the path in linker option for created library. Now when i build the programe NIOS IDE auto generate alt_sys_init.c file and that contain INSTANCE and INIT function of our device HAL driver.OK.Now i get the entry of my HAL driver in that.So it means thats perfectly work.But now waht happen the function inside my library(HAL driver function) will not call from this c/c++ application project.and give the error that the functions are undefined. If any one having any idea about that then help me ASAP. Best Regards, slsnios.....4 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by slsnios@Jun 28 2006, 06:59 AM now when i build the programe nios ide auto generate alt_sys_init.c file and that contain instance and init function of our device hal driver.ok.now i get the entry of my hal driver in that.so it means thats perfectly work.but now waht happen the function inside my library(hal driver function) will not call from this c/c++ application project.and give the error that the functions are undefined.<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16454)
--- quote end ---
--- Quote End --- did you checked if in the application project you have the library listed in the linker command? --> try remove the "-s" parameter from the make command (e.g., you can run it from the Nios II SDK shell) to get the output of the commands run. bye Paolo
- Altera_Forum
Honored Contributor
Hi paolo.gai
I really thanx to you.U are giving me every time reply related on Library. I managed for that C++ library but for my HAL i coudnt manage that thing. I already include *.h file of HAL in my C/C++ application and import the library through linker option that gave by NIOS IDE.ok But as u know when i build the project it will generate alt_sys_init.c file and in that it will make entry of all device driver with its INSTANCE and INIT. right. So i already got my INSTANCE and INIT in that but as u knw our INSTANCE and INIT contain some function and that i couldnt get in my project. Paolo ifyou are not getting me then plz ask me that thing becoz from last some days i m not getting to solve this thing and want to over it.I hope u will give me good support as like befor. Really thankfull to you. Best Regards, slsnios - Altera_Forum
Honored Contributor
--- Quote Start --- --- Quote Start --- try remove the "-s" parameter from the make command (e.g., you can run it from the Nios II SDK shell) to get the output of the commands run. bye Paolo <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16455)</div> --- Quote End --- I am not getting you paolo. Best Regards, slsnios - Altera_Forum
Honored Contributor
Hi...
sorry for the delay, I was out of town last week... - the "-s" parameter is used automatically by the IDE to remove the command lines of the command it executes... I was saying that because in that way you get the commands executed to compile the system and you can understand what's is going on. - the reason why I'm always giving you replies on libraries is because we implemented it that way for ERIKA Enterprise. Did you take a look at the Demo version of ERIKA Enterprise? we distribute our kernel with a binary library... - as an alternative, you can compile your code, and ask your customers to put the .o/.h files inside the project, and then to add the right commands inside the project properties... bye Paolo